10000 New L2 normalization in TF-IDF document aligner by lpla · Pull Request #252 · bitextor/bitextor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

New L2 normalization in TF-IDF document aligner #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 6, 2023
Merged

Conversation

lpla
Copy link
Member
@lpla lpla commented Feb 28, 2023

Before, we were not taking into account any infrequent or very frequent n-gram for the L2 normalization in the document score calculation. Now we follow these rules:
— If the n-gram is in df, we use the normal TF-IDF.
— If the n-gram is not in df, calculate the TF-IDF assuming a document frequency of 1.
— If the n-gram is not in df, but it is a frequent one (as defined by the parameter max_count), then do not use the calculated TF-IDF and ignore the n-gram.

lpla and others added 15 commits January 9, 2023 12:17
Before, we were not taking into account any infrequent or very frequent n-gram for the L2 normalization in the document score calculation. Now we follow these rules:
- If the n-gram is in `df`, we use the normal TF-IDF.
- If the n-gram is not in `df`, calculate the TF-IDF assuming a document frequency of 1.
- If the n-gram is not in `df`, but it is a frequent one (as defined by the parameter `max_count`), then do not use the calculated TF-IDF and ignore the n-gram.
Before, we were not taking into account any infrequent or very frequent n-gram for the L2 normalization in the document score calculation. Now we follow these rules:
- If the n-gram is in `df`, we use the normal TF-IDF.
- If the n-gram is not in `df`, calculate the TF-IDF assuming a document frequency of 1.
- If the n-gram is not in `df`, but it is a frequent one (as defined by the parameter `max_count`), then do not use the calculated TF-IDF and ignore the n-gram.
@lpla lpla merged commit 55dd373 into master Mar 6, 2023
@lpla lpla deleted the docalign_new_score branch March 6, 2023 09:12
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
0