-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
ZeroDivisionError: division by zero in _calc_discounted_normalised_rank #213
Labels
Projects
Comments
Hi @sumitkumarjethani, thank you for this report. Let's get it fixed! Could you please provide:
Many thanks! |
Yeah sure!
""" def getTextRankEntities(doc):
""" def runTextRankEntities(content):
Any other requirements please let me know and I will try to respond as soon as possible. Thank you very much |
ceteri
added
help wanted
good first issue
items that are good as starting points for new contributors
labels
Jul 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Hi,
I use this library together with spacy for the extraction of the most important words. However, when using the catalan model of spacy, the algorithm gives the following error:
`File "/code/app.py", line 20, in getNlpEntities
File "/code/nlp/textRankEntities.py", line 51, in runTextRankEntities
File "/usr/local/lib/python3.9/site-packages/spacy/language.py", line 1022, in call
File "/usr/local/lib/python3.9/site-packages/spacy/util.py", line 1617, in raise_error
File "/usr/local/lib/python3.9/site-packages/spacy/language.py", line 1017, in call
File "/usr/local/lib/python3.9/site-packages/pytextrank/base.py", line 253, in call
File "/usr/local/lib/python3.9/site-packages/pytextrank/base.py", line 363, in calc_textrank
File "/usr/local/lib/python3.9/site-packages/pytextrank/base.py", line 548, in _collect_phrases
File "/usr/local/lib/python3.9/site-packages/pytextrank/base.py", line 549, in
File "/usr/local/lib/python3.9/site-packages/pytextrank/base.py", line 592, in _calc_discounted_normalised_rank
ZeroDivisionError: division by zero`
The text was updated successfully, but these errors were encountered: