You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the python package for topic modelling on twitter data and has my code set up based on your example on medium as follows:
from gdtm.models import TND # Set these paths to the path where you saved the Mallet implementation of each model, plus bin/mallet tnd_path = 'C:/Users/sadick/Downloads/topic-noise-models-source-main.zip/mallet-tnd/bin/mallet'
# We pass in the paths to the java code along with the data set and whatever parameters we want to set model = TND(dataset=dataset, mallet_path=tnd_path, k=30, beta1=25, top_words=20)
Please let us know whether that works. There is also a common issue of permissions when calling Mallet-based models through a python script, which requires one to reassign the permissions of the Mallet source code wherever it lives on your computer. My bet is that your problem is the former.
Hello Team,
Thank you for this repo and the python package.
I am using the python package for topic modelling on twitter data and has my code set up based on your example on medium as follows:
from gdtm.models import TND
# Set these paths to the path where you saved the Mallet implementation of each model, plus bin/mallet
tnd_path = 'C:/Users/sadick/Downloads/topic-noise-models-source-main.zip/mallet-tnd/bin/mallet'
# We pass in the paths to the java code along with the data set and whatever parameters we want to set
model = TND(dataset=dataset, mallet_path=tnd_path, k=30, beta1=25, top_words=20)
topics = model.get_topics()
noise = model.get_noise_distribution()
When I run the code, I get the traceback below:
I will be grateful if you would have a look and provide some guidance regarding this issue.
Regards
Sadick
The text was updated successfully, but these errors were encountered: