I found a bug regarding the greek stemmer package, while using sumy on greek texts. For certain words that are not found in its dictionary, it returns an empty stem, which makes the statement in line 33 to yield a string index out of range exception.
Therefore, line 33 in stemmers/greek.py should have an extra check for the empty string case thus becoming:
if stemmed and stemmed[-1].upper() in _CONSONANTS:
Should I open a pull request for this issue or would you like to integrate it?
Greetings,
I found a bug regarding the greek stemmer package, while using sumy on greek texts. For certain words that are not found in its dictionary, it returns an empty stem, which makes the statement in line 33 to yield a string index out of range exception. Therefore, line 33 in stemmers/greek.py should have an extra check for the empty string case thus becoming:
Should I open a pull request for this issue or would you like to integrate it?
Thank you for your time.