You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I use this implementation of Lexrank for summarizing a single document?
Attempting this produces the following error -
ValueError: documents are not informative
Thanks in advance
Alka Khurana
The text was updated successfully, but these errors were encountered:
The issue is not the single document. The issue is that the code is old and using old python lib. you can fix summarizer.py using ntlk tokenization by replacing lines 117-119 with the following:
for sentence in sent_tokenize(doc):
words = word_tokenize(sentence)
doc_words.update(words)
and do not forget to include sent_tokenize and word_tokenize from ntlk
How can I use this implementation of Lexrank for summarizing a single document?
Attempting this produces the following error -
ValueError: documents are not informative
Thanks in advance
Alka Khurana
The text was updated successfully, but these errors were encountered: