largelymfs / topical_word_embeddings

A demo code for topical word embedding
MIT License
315 stars 145 forks source link

Cannot reproduce the result due to exceptions and what is the parameter setting? #4

Open zzks opened 7 years ago

zzks commented 7 years ago

hi all, I tried this code, got many problems: 1, What is the parameter setting of GibbsLDA to reproduce paper's result? 2, UserWarning: Cython compilation failed, training will be slow. Do you have Cython installed? pip install cython 3, File "/home/sbai/Downloads/topical_word_embeddings-master/TWE-1/gensim/models/word2vec.py", line 901, in job_words = sum(train_sentence_topic(self, sentence, alpha, work) for sentence in job) NameError: global name 'train_sentence_topic' is not defined

environment: ubuntu14.04 python2.7 64bit.

Hellokitty8 commented 7 years ago

The same error as I got.