When trying to preprocess some text using "porter" as a language, the program threw an exception:
>>> from summa.summarizer import summarize
>>> summarize(text, language='porter')
...
File "/home/fede/summa/textrank/summa/preprocessing/snowball.py", line 121, in __init__
_LanguageSpecificStemmer.__init__(self)
File "/home/fede/summa/textrank/summa/preprocessing/snowball.py", line 96, in __init__
language = type(self).__name__.lower()
RecursionError: maximum recursion depth exceeded while calling a Python object
This fixes this bug and also introduces minor style changes.
When trying to preprocess some text using "porter" as a language, the program threw an exception:
This fixes this bug and also introduces minor style changes.