I want to do sentiment analysis on urdu
sentences. I searched a python package Polyglot
having URDU POS tagger in it. But on installing, it prompts error;
Any way out?
I want to do sentiment analysis on urdu
sentences. I searched a python package Polyglot
having URDU POS tagger in it. But on installing, it prompts error;
Any way out?
You need to install PyICU before running pip install polyglot
.
You can follow PyICU Installation for Windows from https://pypi.org/project/PyICU/
Even I struggled with this error for a long time.
Follow these steps to install polyglot on Windows:
The README.rst file throws codecs error. Replace the 2 lines with the following:
import codecs
with codecs.open('README.rst', 'r', encoding='utf-8') as readme_file:
readme = readme_file.read()
I just made sure that the 'utf-8' UnicodeDecodeError is handled while reading file.
Hope this helps!!!