Skip to content

Enhance term weight calculation logic - #4293

Open
caolvchong123456 wants to merge 1 commit into
ModelEngine-Group:developfrom
caolvchong123456:develop
Open

caolvchong123456 wants to merge 1 commit into
ModelEngine-Group:developfrom
caolvchong123456:develop

Conversation

@caolvchong123456

Copy link
Copy Markdown

[Added a check to return an empty dictionary if total weight is zero and adjusted normalization for meaningful terms.](fix: guard against ZeroDivisionError in calculate_term_weights)

Added a check to return an empty dictionary if total weight is zero and adjusted normalization for meaningful terms.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant