Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"no module named utility" #3

Open
annaRichImperial opened this issue Jul 4, 2019 · 2 comments
Open

"no module named utility" #3

annaRichImperial opened this issue Jul 4, 2019 · 2 comments

Comments

@annaRichImperial
Copy link

Hi

I have installed biterm on pycharm, and have the following imports in my code:

import numpy as np
import pyLDAvis
from biterm.cbtm import oBTM
from sklearn.feature_extraction.text import CountVectorizer
from biterm.utility import vec_to_biterms, topic_summuary

however i get the error:
/homes/ahr18/PycharmProjects/biterm/Source/transformation.py/bin/python /homes/ahr18/PycharmProjects/biterm/Source/biterm.py
Traceback (most recent call last):
File "/homes/ahr18/PycharmProjects/biterm/Source/biterm.py", line 3, in
from biterm.cbtm import oBTM
File "/homes/ahr18/PycharmProjects/biterm/Source/biterm.py", line 3, in
from biterm.cbtm import oBTM
ImportError: No module named cbtm

Process finished with exit code 1

any idea how i can fix this?

Thanks !

@XinYue2019
Copy link

annaRichImperial, I've come across the same issue. Have you fixed it yet?

@markoarnauto
Copy link
Owner

Try from biterm.btm import oBTM instead of from biterm.cbtm import oBTM. If you want to use the cythonic version (cbtm) you have to first compile it yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants