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.08k stars 1.13k forks source link

Removing ctypes dependency. #354

Closed casatir closed 3 years ago

casatir commented 3 years ago

Importing TextBlob in Pyodide fails because ctypes is not supported there.

For now, I am stuck with old version 0.11.0, the last without ctypes dependency.

Looking at the code, it seems pretty easy to get rid of this dependency, doing unit32 and int32 casting in pure Python. See the PR.

Python 3 tests are OK but I can't test with Python 2.7 since nltkno longer supports it.

sloria commented 3 years ago

Thank you! Can you add yourself to AUTHORS.rst?