polyglot icon indicating copy to clipboard operation
polyglot copied to clipboard

Multilingual text (NLP) processing toolkit

Results 113 polyglot issues
Sort by recently updated
recently updated
newest added

In the help thing it says to open the file to install it or whatever, but what exactly am I opening? Please help.

## Description As described [at docs](https://polyglot.readthedocs.io/en/latest/Sentiment.html), "for each entity we identified, we can calculate the strength of the positive or negative sentiment it has on a scale from 0-1" However,...

I've added the quite parameter: ``` detector = Detector(string, quiet=True) ``` Still I get this printed out: ``` Detector is not able to detect the language reliably. ``` Is there...

i'm interested to get some latest fixes, but latest release on pypi is pretty old ... Any chance to push a new release soon ? Thanks !

I tried to run the demo on Mac and got a error, how can I fix it? ``` from polyglot.text import Text, Word words = ["preprocessing", "processor", "invaluable", "thankful", "crossed"]...

Transliteration from polyglot.transliteration import Transliterator transliterator = Transliterator(source_lang="en", target_lang="ru") print(transliterator.transliterate(u"preprocessing")) _препрокессинг_ **препроцессинг**

I want to increase the detection speed. I used multi-threading, but found that the speed is slower. How to increase the speed? Or how to properly parallelize the detection text

I get the following warning in python 3.8: polyglot/detect/base.py:84: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats reliable, index, top_3_choices = cld2.detect(t, bestEffort=False) Any ideas how to fix it?

Fixes below warning by using https://github.com/asottile/pyupgrade/ ``` find . -iname '*.py' | grep -vE 'example|docs' | xargs -P 4 -I{} python3.8 -Wall -m py_compile {} ./polyglot/text.py:218: DeprecationWarning: invalid escape sequence...

Great library by the way! I frequently get this error: File "/usr/local/lib/python3.5/dist-packages/polyglot/text.py", line 96, in polarity return sum(scores) / float(len(scores)) ZeroDivisionError: float division by zero Locally I have replaced the...