Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bmabey/pyLDAvis

Python library for interactive topic model visualization. Port of the R LDAvis package.
https://github.com/bmabey/pyLDAvis

Last synced: 3 months ago
JSON representation

Python library for interactive topic model visualization. Port of the R LDAvis package.

Awesome Lists containing this project

README

        

pyLDAvis
========

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

.. figure:: http://www.kennyshirley.com/figures/ldavis-pic.png
:alt: 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.

Note: LDA stands for `latent Dirichlet allocation `_.

|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:

- `Visualizing Topic Models `__
- `Notebook and visualization used in the demo `__
- `Slide deck `__

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

- `Visualizing & Exploring the Twenty Newsgroup Data `__

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.

.. |version status| image:: https://img.shields.io/pypi/v/pyLDAvis.svg
:target: https://pypi.python.org/pypi/pyLDAvis
.. |build status| image:: https://travis-ci.org/bmabey/pyLDAvis.png?branch=master
:target: https://travis-ci.org/bmabey/pyLDAvis
.. |docs| image:: https://readthedocs.org/projects/pyldavis/badge/?version=latest
:target: https://pyLDAvis.readthedocs.org