Skip to content

fix issue 39: Score is 0 when a token is in exactly 50% of the documents.#40

Open
danerlt wants to merge 2 commits intodorianbrown:masterfrom
danerlt:master
Open

fix issue 39: Score is 0 when a token is in exactly 50% of the documents.#40
danerlt wants to merge 2 commits intodorianbrown:masterfrom
danerlt:master

Conversation

@danerlt
Copy link
Copy Markdown

@danerlt danerlt commented May 24, 2024

image

@danerlt
Copy link
Copy Markdown
Author

danerlt commented May 24, 2024

@dorianbrown Can you help me review the code, please? Thank you.

@dorianbrown
Copy link
Copy Markdown
Owner

dorianbrown commented May 25, 2024

@danerlt Sure thing, I'll have time to take a look sometime in the next week. Looking forward to it 👍

@dorianbrown
Copy link
Copy Markdown
Owner

I think this is a problem that needs addressing, and from what I can tell there are two ways to go (see this PR for some of the thoughts I just shared), so either fix the epsilon approach and keep the IDF as is, or remove that negativity checking, and go for this "smoothed" IDF function.

I'm not working on this topic as intensively as before, but do you know if there's a reason to prefer one of the two from a ranking perspective? Computationally the changed IDF function seems preferable.

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.

2 participants