Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.92 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.92 KB

lda2vec: Tools for interpreting natural language

Fork of cemoody/lda2vec with support Python 3 and above.

The lda2vec model tries to mix the best parts of word2vec and LDA into a single framework. word2vec captures powerful relationships between words, but the resulting vectors are largely uninterpretable and don't represent documents. LDA on the other hand is quite interpretable by humans, but doesn't model local word relationships like word2vec. We build a model that builds both word and document topics, makes them interpreable, makes topics over clients, times, and documents, and makes them supervised topics.

Warning: this code is a big series of experiments. It's research software, and we've tried to make it simple to modify lda2vec and to play around with your own custom topic models. However, it's still research software. I wouldn't run this in production.

Installation

pip install -e git+https://github.com/v1shwa/lda2vec#egg=lda2vec

Resources

Minimum Requirements

  • Python 3.2+
  • NumPy 1.10+
  • Chainer 1.5.1+
  • spaCy 0.9+
  • scikit-learn 0.19.0+
  • pyxdameraulevenshtein 1.4.1+
  • pytest (optional. required for testing)