largelymfs / topical_word_embeddings Goto Github PK
View Code? Open in Web Editor NEWA demo code for topical word embedding
License: MIT License
A demo code for topical word embedding
License: MIT License
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.
topical_word_embeddings/TWE-1/gensim/models/word2vec.py", line 901
NameError: global name 'train_sentence_topic' is not defined
请问在用TWE-1代码得到word_vector.txt和topic_vector.txt文件后,如何计算得到topical word embeddings?
python train.py wordmap tassign topic_number
/topical_word_embeddings-master/TWE-1/gensim/models/word2vec.py:405: UserWarning: Cython compilation failed, training will be slow. Do you have Cython installed? pip install cython
warnings.warn("Cython compilation failed, training will be slow. Do you have Cython installed? `pip install cython
but i have installed the cython, anything else should I do ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.