pyldavis

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

https://github.com/bmabey/pyldavis

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    4 of 42 committers (9.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.7%) to scientific vocabulary

Keywords from Contributors

gensim topic-modeling word-embeddings word-similarity distribution data-mining word2vec fasttext document-similarity interactive
Last synced: 10 months ago · JSON representation

Repository

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

Basic Info
  • Host: GitHub
  • Owner: bmabey
  • License: bsd-3-clause
  • Language: Jupyter Notebook
  • Default Branch: master
  • Homepage:
  • Size: 6.2 MB
Statistics
  • Stars: 1,832
  • Watchers: 45
  • Forks: 359
  • Open Issues: 80
  • Releases: 4
Created over 11 years ago · Last pushed about 2 years ago
Metadata Files
Readme Changelog Contributing License Authors

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 `__.

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

Owner

  • Name: Ben Mabey
  • Login: bmabey
  • Kind: user
  • Location: Salt Lake City, Utah

GitHub Events

Total
  • Issues event: 2
  • Watch event: 39
  • Issue comment event: 1
  • Pull request event: 1
  • Fork event: 2
Last Year
  • Issues event: 2
  • Watch event: 39
  • Issue comment event: 1
  • Pull request event: 1
  • Fork event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 254
  • Total Committers: 42
  • Avg Commits per committer: 6.048
  • Development Distribution Score (DDS): 0.413
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Ben Mabey b****n@b****m 149
Mark Susol m****l@g****m 33
Matti Lyra m****a@s****k 7
yxtay w****y@g****m 6
Paul English p****l@o****m 4
Rafael Augusto de Oliveira o****a@p****m 4
ed9w2in6 w****6@g****m 4
Christopher Erick Moody c****y@g****m 3
Zechy Wong Z****W 2
Tim Hopper t****r@g****m 2
Beto l****a@c****u 2
Carson Sievert c****1@g****m 2
Maksim Terpilowski m****p@g****m 2
dependabot[bot] 4****] 2
Jan Rygl j****l@g****m 2
Vincent Latrouite v****e@g****m 2
Alex Loosley a****y@r****e 2
jon h****2@g****m 2
Bob Flagg b****b@c****t 1
luis lopez l****z@n****g 1
llopez l****z@n****g 1
greatc0de 9****e 1
bacon i****0@g****m 1
Shubhanshu Mishra s****8@i****u 1
Samuel Lelièvre s****l 1
Riccardo Mastellone r****e@g****m 1
Nicolas Fouqué f****n@o****r 1
Martin Breuss m****n 1
Jonathan Schneider j****r@s****e 1
John Dagdelen j****n 1
and 12 more...

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 83
  • Total pull requests: 42
  • Average time to close issues: about 1 year
  • Average time to close pull requests: about 1 year
  • Total issue authors: 73
  • Total pull request authors: 31
  • Average comments per issue: 3.58
  • Average comments per pull request: 1.69
  • Merged pull requests: 19
  • Bot issues: 0
  • Bot pull requests: 4
Past Year
  • Issues: 2
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 2
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • msusol (4)
  • ed9w2in6 (3)
  • mahdi-1992 (2)
  • LIBeibeihere (2)
  • ooker777 (2)
  • bigbrihh (2)
  • zhijcao (1)
  • lakchchayam (1)
  • zc1018x (1)
  • jonaschn (1)
  • sharmaapeksha960 (1)
  • subratac (1)
  • tirkarthi (1)
  • paulthemagno (1)
  • mike239x (1)
Pull Request Authors
  • msusol (6)
  • dependabot[bot] (5)
  • OliRafa (3)
  • ed9w2in6 (2)
  • graingert (2)
  • betheazdavida (1)
  • mcgowaji (1)
  • phonosync (1)
  • greatc0de (1)
  • santiagxf (1)
  • maximtrp (1)
  • haridas (1)
  • fengqiaogit (1)
  • Partho (1)
  • cpsievert (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (5)

Packages

  • Total packages: 3
  • Total downloads:
    • pypi 106,133 last-month
  • Total docker downloads: 169
  • Total dependent packages: 11
    (may contain duplicates)
  • Total dependent repositories: 141
    (may contain duplicates)
  • Total versions: 32
  • Total maintainers: 2
pypi.org: pyldavis

Interactive topic model visualization. Port of the R package.

  • Versions: 26
  • Dependent Packages: 10
  • Dependent Repositories: 134
  • Downloads: 106,133 Last month
  • Docker Downloads: 169
Rankings
Downloads: 0.6%
Dependent packages count: 0.8%
Dependent repos count: 1.3%
Stargazers count: 1.6%
Average: 1.7%
Forks count: 2.8%
Docker downloads count: 3.2%
Maintainers (2)
Last synced: 10 months ago
proxy.golang.org: github.com/bmabey/pyLDAvis
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 7.0%
Average: 8.2%
Dependent repos count: 9.3%
Last synced: 11 months ago
conda-forge.org: pyldavis

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.

  • Versions: 5
  • Dependent Packages: 1
  • Dependent Repositories: 7
Rankings
Forks count: 9.1%
Stargazers count: 9.7%
Dependent repos count: 12.9%
Average: 15.2%
Dependent packages count: 29.0%
Last synced: 11 months ago

Dependencies

Pipfile pypi
  • pytest >=3.7 develop
  • Jinja2 *
  • funcy *
  • future *
  • gensim *
  • joblib *
  • numexpr *
  • numpy >=1.20.1
  • pandas *
  • pyLDAvis *
  • reproducer *
  • scikit-learn *
  • scipy *
  • sklearn *
Pipfile.lock pypi
  • attrs ==20.3.0 develop
  • iniconfig ==1.1.1 develop
  • packaging ==20.9 develop
  • pluggy ==0.13.1 develop
  • py ==1.10.0 develop
  • pyparsing ==2.4.7 develop
  • pytest ==6.2.2 develop
  • toml ==0.10.2 develop
  • funcy ==1.15
  • future ==0.18.2
  • gensim ==3.8.3
  • jinja2 ==2.11.3
  • joblib ==1.0.1
  • markupsafe ==1.1.1
  • numexpr ==2.7.3
  • numpy ==1.20.1
  • pandas ==1.2.3
  • pyldavis *
  • python-dateutil ==2.8.1
  • pytz ==2021.1
  • reproducer *
  • scikit-learn ==0.24.1
  • scipy ==1.6.1
  • six ==1.15.0
  • sklearn ==0.0
  • smart-open ==4.2.0
  • threadpoolctl ==2.1.0
requirements.txt pypi
  • funcy *
  • future *
  • gensim *
  • jinja2 *
  • joblib *
  • numexpr *
  • numpy >=1.20.0
  • pandas >=1.2.0
  • scikit-learn *
  • scipy *
  • setuptools *
  • sklearn *
pyproject.toml pypi
setup.py pypi