Skip to content
Python library for interactive topic model visualization. Port of the R LDAvis package.
Jupyter Notebook JavaScript Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs adds basic gensim helper functions May 29, 2015
notebooks docs: fix typos and dead link (#130) Aug 5, 2018
pyLDAvis fixed formatting aand addind sorted_terms functionality to PrepareData Mar 30, 2019
tests fixed formatting aand addind sorted_terms functionality to PrepareData Mar 30, 2019
.flake8 fixed formatting aand addind sorted_terms functionality to PrepareData Mar 30, 2019
.gitignore pinned pandas to avoid performance degradation and added a conda envi… Mar 30, 2019
.travis.yml pinned pandas to avoid performance degradation and added a conda envi… Mar 30, 2019
AUTHORS.rst misc doc updates May 28, 2015
CONTRIBUTING.rst misc doc updates May 28, 2015
HISTORY.rst releases v2.1.2 Feb 6, 2018
LICENSE init cookiecutter project Apr 6, 2015
MANIFEST.in include requirements.txt in the MANIFEST Feb 1, 2016
Makefile fixes Makefile to run on osx Jun 4, 2015
README.rst docs: fix typos and dead link (#130) Aug 5, 2018
environment-test.yml pinned pandas to avoid performance degradation and added a conda envi… Mar 30, 2019
requirements.txt pinned pandas to avoid performance degradation and added a conda envi… Mar 30, 2019
rtd_reqs.txt [gensim] adapted code to handle HDP model from gensim along with lda … May 18, 2016
setup.cfg init cookiecutter project Apr 6, 2015
setup.py bumped version, build test Mar 30, 2019
tox.ini removes 2.6 for tox since 2.6 is supported by all deps May 28, 2015

README.rst

pyLDAvis

Python library for interactive topic model visualization. This is a port of the fabulous R package by Carson Sievert and Kenny Shirley.

LDAvis icon

pyLDAvis is designed to help users interpret the topics in a topic model that has been fit to a corpus of text data. The package extracts information from a fitted LDA topic model to inform an interactive web-based visualization.

The visualization is intended to be used within an IPython notebook but can also be saved to a stand-alone HTML file for easy sharing.

version status build status docs

Installation

  • Stable version using pip:
pip install pyldavis
  • Development version on GitHub

Clone the repository and run python setup.py

Usage

The best way to learn how to use pyLDAvis is to see it in action. Check out this notebook for an overview. Refer to the documentation for details.

For a concise explanation of the visualization see this vignette from the LDAvis R package.

Video demos

Ben Mabey walked through the visualization in this short talk using a Hacker News corpus:

Carson Sievert created a video demoing the R package. The visualization is the same and so it applies equally to pyLDAvis:

More documentation

To read about the methodology behind pyLDAvis, see the original paper, which was presented at the 2014 ACL Workshop on Interactive Language Learning, Visualization, and Interfaces in Baltimore on June 27, 2014.

You can’t perform that action at this time.