Skip to content
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

Created function to compute gap that never returns 0 (TopicRank et al.) #229

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

ygorg
Copy link
Collaborator

@ygorg ygorg commented Jul 12, 2023

Linked to #207 #176 etc...
This time it should be good. The only missing case was when candidates started at the same offset (that only happen with ngram_selection).
I simplified the function that already worked well, but didn't account for the following 1/gap.

@SrijanSriv
Copy link

Other than refactoring the code, I believe the important change made was to prevent gap from being 0 by simply making it 1. This in turn should assign a unit weight to the edge between that pair of candidates, essentially making it sure that they are chosen together always. I hope that is in the right direction?

Thanks a lot for making this change by the way 🐳

@ygorg ygorg merged commit 69871ff into boudinfl:master Jul 12, 2023
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