Skip to content
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

Removing "porter" as a language #51

Merged
merged 2 commits into from
Oct 23, 2018
Merged

Removing "porter" as a language #51

merged 2 commits into from
Oct 23, 2018

Conversation

fbarrios
Copy link
Contributor

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.

@fedelopez77 fedelopez77 merged commit dde4e1f into master Oct 23, 2018
@fedelopez77 fedelopez77 deleted the fbarrios/fix-porter branch October 23, 2018 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants