Skip to content

Commit

Permalink
deps updated
Browse files Browse the repository at this point in the history
  • Loading branch information
maximtrp committed Jul 1, 2021
1 parent a04de59 commit b1d87e3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Refer to [documentation](https://bitermplus.readthedocs.io) to stay up to date.
* pandas
* scipy
* scikit-learn
* tmplot
* tqdm

## Setup

Expand Down Expand Up @@ -85,7 +85,9 @@ perplexity = model.perplexity_
coherence = model.coherence_

# RESULTS VISUALIZATION
btm.plot_model(model=model, docs=texts)
# You need to install tmplot first
import tmplot as tmp
tmp.report(model=model, docs=texts)
```

![Report interface](images/topics_terms_plots.png)
Expand Down
11 changes: 6 additions & 5 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
bitermplus
==========

*Bitermplus* implements `Biterm topic model <https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.402.4032&rep=rep1&type=pdf>`_
for short texts introduced by Xiaohui Yan, Jiafeng Guo, Yanyan Lan, and Xueqi Cheng.
Actually, it is a cythonized version of `BTM <https://github.com/xiaohuiyan/BTM>`_.
This package is also capable of computing *perplexity* and *semantic coherence* metrics.
*Bitermplus* implements `Biterm topic model
<https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.402.4032&rep=rep1&type=pdf>`_
for short texts introduced by Xiaohui Yan, Jiafeng Guo, Yanyan Lan, and Xueqi
Cheng. Actually, it is a cythonized version of `BTM
<https://github.com/xiaohuiyan/BTM>`_. This package is also capable of computing
*perplexity* and *semantic coherence* metrics.

.. toctree::
:maxdepth: 2
Expand All @@ -21,5 +23,4 @@ This package is also capable of computing *perplexity* and *semantic coherence*

Model <bitermplus>
Metrics <bitermplus.metrics>
Plotting functions <bitermplus.plot>
Utility functions <bitermplus.util>
2 changes: 1 addition & 1 deletion docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ Requirements
* pandas
* scipy
* scikit-learn
* tmplot
* tqdm
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ install_requires =
pandas
scipy
scikit-learn
tmplot
tqdm

[options.packages.find]
Expand Down
4 changes: 2 additions & 2 deletions src/bitermplus/_plot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__all__ = ['plot_model']
from tmplot import report as plot_model
#__all__ = ['plot_model']
#from tmplot import report as plot_model

# def vis_prepare_model(
# ttd: np.ndarray,
Expand Down

0 comments on commit b1d87e3

Please sign in to comment.