Biterm Topic Model : modeling topics in short texts
Biterm Topic Model
Bitermplus implements Biterm topic model for short texts introduced by Xiaohui Yan, Jiafeng Guo, Yanyan Lan, and Xueqi Cheng. Actually, it is a cythonized version of BTM. This package is also capable of computing perplexity and semantic coherence metrics.
Development
Please note that bitermplus is actively improved.
Refer to documentation to stay up to date.
Requirements
- cython
- numpy
- pandas
- scipy
- scikit-learn
- tqdm
Setup
Linux and Windows
There should be no issues with installing bitermplus under these OSes. You can install the package directly from PyPi.
pip install bitermplus
Or from this repo:
pip install git+https://github.com/maximtrp/bitermplus.git
Mac OS
First, you need to install XCode CLT and Homebrew.
Then, install libomp
using brew
:
xcode-select --install