lda2vec icon indicating copy to clipboard operation
lda2vec copied to clipboard

No module named unicode

Open SidrahJunaid opened this issue 7 years ago • 1 comments

Im using python 3.5 and when im trying to run processor.py its showing an error No module named unicode.Can anyone help me how to fix it?

SidrahJunaid avatar Aug 08 '17 19:08 SidrahJunaid

I'm not entirely sure if this is the issue but in the source code there's a spot that converts the cleaned text to unicode. In Python 3, the command unicode() was deprecated and just put into str(). Perhaps you could just edit the source code in the conda files (I installed lda2vec with anaconda). Or you could also run your script in a Python 2 environment.

As a side note, I'd really suggest that the author start writing this module in Python 3 and not 2. My experience in the NLP world is that EVERYONE uses 3 precisely because it handles unicode errors so much easier. In fact if I wasn't so terribly fascinated with NLP I probably wouldn't have transitioned over to Python 3.

blairdev1023 avatar Sep 05 '17 21:09 blairdev1023