sloria / TextBlob

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.
https://textblob.readthedocs.io/
MIT License
9.15k stars 1.15k forks source link

The `correct()` method in Python 3.7 gives "RuntimeError: generator raised StopIteration" #230

Closed vvaezian closed 6 years ago

vvaezian commented 6 years ago

In Python 3.7 the following gives RuntimeError: generator raised StopIteration

>>> b = TextBlob("I havv goood speling!")
>>> print(b.correct())

I believe this SO post describes what needs to be done to address this problem.

Edit: same problem with spellcheck() method.

wolfxana commented 6 years ago

same issue with .correct() Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\textblob_text.py", line 365, in _read raise StopIteration StopIteration