bug in gensim.summarization.mz_entropy.mz_keywords #2523
Labels
bug
Issue described a bug
difficulty easy
Easy issue: required small fix
good first issue
Issue for new contributors (not required gensim understanding + very simple)
Hacktoberfest
Issues marked for hacktoberfest
impact LOW
Low impact on affected users
reach LOW
Affects only niche use-case users
Problem statement:
It seems to be a bug if the text is too short and number of words is lower than blocksize. In my case the values were:
n_words (232.0)
andblocksize (1024)
.Log:
Dirty solution:
Override
blocksize
value from the default1024
to something lower:mz_keywords(text, blocksize=128)
The text was updated successfully, but these errors were encountered: