0

I have problems to work with GSDMM model of topic modelling dedicated for short text. I followed this link to install it: https://towardsdatascience.com/gsdmm-topic-modeling-for-social-media-posts-and-reviews-8726489dc52f. but it didn't work. I also installed the model using the following command: pip install GPyM-TM (https://pypi.org/project/GPyM-TM/) but nothing works. I got the following error: ModuleNotFoundError: No module named 'gsdmm' any help? thank you

gojomo
  • 52,260
  • 14
  • 86
  • 115
  • 1
    I guess you failed to install `gsdmm` from the first post and `GPyM-TM` is a different package to that used by the first post with different classes (`GSDMM` instead of `gsdmm`) and won't be a drop in package. What happened when you ran `python setup.py install` for the `gsdmm` package? What was the output? – SamBob Dec 14 '21 at 19:34
  • Sorry for being late to respond and thank you for your feedback. when I try to excute this command, this is the output: Command 'python' not found, did you mean: command 'python3' from deb python3 command 'python' from deb python-is-python3 – hajar hajar Jan 05 '22 at 17:33
  • If you are using python3, then use that instead of python (https://stackoverflow.com/questions/64801225/python-or-python3-what-is-the-difference) – SamBob Jan 06 '22 at 15:18
  • I used python3 but though it didn't resolve the problem, it shows a message that i do not have write access to this directory. so, I used this instead: python3 setup.py install --user and the package is installed – hajar hajar Jan 11 '22 at 17:07

2 Answers2

0

python3 setup.py install --user

without the "--user", I have a message that says that I do not have write access to this directory and when I add the "--user", the package was installed and it works

0

I had the same issue, this article about GSDMM helped me to resolve the issue. need to install GSDMM using pip install git+https://github.com/rwalk/gsdmm.git