Open enhiko opened 8 years ago
What operating system do you use with lda2vec?
Myself I don't know how could I help you. I can only say that I had a lot of problems like that when I used my computer that runs on Windows. I ended up resorting to expert help in my office because it was too complex for my skill level
Odd, that file is referencing dirichlet_likelihood which resides in the same folder. Maybe something weird is going on with your search path? Try:
import sys
print(sys.path)
And see if it makes sense.
when i run preprocess.py
Traceback (most recent call last):
File "preprocess.py", line 56, in
@chenjun0210 Your issue might be fixed via #46. Apply the changes to corpus.py & also confirm you have the packages mentioned in the PR's first comment.
The problem for this issue, is that (seems you're using python3) in python3 it should be imported using
import lda2vec.dirichlet_likelihood
and not
import dirichlet_likelihood
Uninstalling lda2vec, and making this change for all imported modules in init.py fixed the problem.
In addition to updating the import , I had to append the below to ~./bash_profile:
export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 And then run: $ source ~/.bash_profile
Even I'm facing the same issue I'm installed using setup.py and I'm getting this error
import lda2vec Traceback (most recent call last): File "
", line 1, in File "C:\Users\rkumar3\AppData\Local\Continuum\anaconda3\lib\site-packages\lda2vec-0.1-py3.6.egg\lda2vec__init__.py", line 1, in ModuleNotFoundError: No module named 'dirichlet_likelihood'
In addition to updating the import , I had to append the below to ~./bash_profile:
export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 And then run: $ source ~/.bash_profile
tried this but not working.
hi, I have faced similar problems too, and there were many files missing from lda2vec after installation using pip install. I was able to move the files around from git to local folder where lda2vec has been installed but I am not able to find this one function called 'move'. Can anyone help me from lda2vec.utils import move ImportError: cannot import name 'move' from 'lda2vec.utils' (C:\Users\Sudheera\Anaconda3\lib\site-packages\lda2vec\utils.py
hello i have this error in preprocess.py
but there is no module named 'dirichlet_likehood' in https://pypi.python.org/pypi .