vi3k6i5 / GuidedLDA

semi supervised guided topic model with custom guidedLDA
Mozilla Public License 2.0
497 stars 108 forks source link

How to use one dataset other than the ones already existing in guidelda dataset #45

Open Subhajyotidas opened 4 years ago

Subhajyotidas commented 4 years ago

I am trying to use guidedlda for one of my data set, but to create the variable 'X' while training the model it is giving problems. AttributeError
Traceback (most recent call last)

in () 20 ['price','value','cheap','bill','cost']] 21 ---> 22 X=guidedlda.datasets.load_data(guidedlda.datasets.user_rev_spec_ofc_B002O3W4LE_4398.txt) 23 24 word2id = dict((v, idx) for idx, v in enumerate(vocab)) AttributeError: module 'guidedlda.datasets' has no attribute 'user_rev_spec_ofc_B002O3W4LE_4398' how to process the text file into the dataset.py