pyLDAvis


NamepyLDAvis JSON
Version 3.4.1 PyPI version JSON
download
home_pagehttps://github.com/bmabey/pyLDAvis
SummaryInteractive topic model visualization. Port of the R package.
upload_time2023-04-23 23:54:15
maintainer
docs_urlNone
authorBen Mabey
requires_python>=3.9
licenseBSD-3-Clause
keywords data science visualization
VCS
bugtrack_url
requirements numpy scipy pandas joblib jinja2 numexpr funcy scikit-learn gensim setuptools
Travis-CI
coveralls test coverage No coveralls.
            pyLDAvis
========

Python library for interactive topic model visualization.
This is a port of the fabulous `R package <https://github.com/cpsievert/LDAvis>`_ by `Carson Sievert <https://cpsievert.me/>`__ and `Kenny Shirley <http://www.kennyshirley.com/>`__.

.. 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 <https://en.wikipedia.org/wiki/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 <http://nbviewer.ipython.org/github/bmabey/pyLDAvis/blob/master/notebooks/pyLDAvis_overview.ipynb>`__.
Refer to the `documentation <https://pyLDAvis.readthedocs.org>`__ for details.

For a concise explanation of the visualization see this
`vignette <http://cran.r-project.org/web/packages/LDAvis/vignettes/details.pdf>`__ 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 <https://www.youtube.com/watch?v=tGxW2BzC_DU&index=4&list=PLykRMO7ZuHwP5cWnbEmP_mUIVgzd5DZgH>`__
-  `Notebook and visualization used in the demo <http://nbviewer.ipython.org/github/bmabey/hacker_news_topic_modelling/blob/master/HN%20Topic%20Model%20Talk.ipynb>`__
-  `Slide deck <https://speakerdeck.com/bmabey/visualizing-topic-models>`__


`Carson Sievert <https://cpsievert.me/>`__ 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 <http://stat-graphics.org/movies/ldavis.html>`__

More documentation
~~~~~~~~~~~~~~~~~~

To read about the methodology behind pyLDAvis, see `the original
paper <http://nlp.stanford.edu/events/illvi2014/papers/sievert-illvi2014.pdf>`__,
which was presented at the `2014 ACL Workshop on Interactive Language
Learning, Visualization, and
Interfaces <http://nlp.stanford.edu/events/illvi2014/>`__ 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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bmabey/pyLDAvis",
    "name": "pyLDAvis",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "data science,visualization",
    "author": "Ben Mabey",
    "author_email": "ben@benmabey.com",
    "download_url": "https://files.pythonhosted.org/packages/08/62/e1b3e350f9a5e97a730cd93c2a0ed30f21443c8906c8ef025c94dc595bfa/pyLDAvis-3.4.1.tar.gz",
    "platform": null,
    "description": "pyLDAvis\n========\n\nPython library for interactive topic model visualization.\nThis is a port of the fabulous `R package <https://github.com/cpsievert/LDAvis>`_ by `Carson Sievert <https://cpsievert.me/>`__ and `Kenny Shirley <http://www.kennyshirley.com/>`__.\n\n.. figure:: http://www.kennyshirley.com/figures/ldavis-pic.png\n   :alt: LDAvis icon\n\n**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.\n\nThe visualization is intended to be used within an IPython notebook but can also be saved to a stand-alone HTML file for easy sharing.\n\nNote: LDA stands for `latent Dirichlet allocation <https://en.wikipedia.org/wiki/Latent_Dirichlet_allocation>`_.\n\n|version status| |build status| |docs|\n\nInstallation\n~~~~~~~~~~~~~~~~~~~~~~\n\n-  Stable version using pip:\n\n::\n\n    pip install pyldavis\n\n-  Development version on GitHub\n\nClone the repository and run ``python setup.py``\n\nUsage\n~~~~~~~~~~~~~~~~~~~~~~\n\nThe best way to learn how to use **pyLDAvis** is to see it in action.\nCheck out this `notebook for an overview <http://nbviewer.ipython.org/github/bmabey/pyLDAvis/blob/master/notebooks/pyLDAvis_overview.ipynb>`__.\nRefer to the `documentation <https://pyLDAvis.readthedocs.org>`__ for details.\n\nFor a concise explanation of the visualization see this\n`vignette <http://cran.r-project.org/web/packages/LDAvis/vignettes/details.pdf>`__ from the LDAvis R package.\n\nVideo demos\n~~~~~~~~~~~\n\nBen Mabey walked through the visualization in this short talk using a Hacker News corpus:\n\n-  `Visualizing Topic Models <https://www.youtube.com/watch?v=tGxW2BzC_DU&index=4&list=PLykRMO7ZuHwP5cWnbEmP_mUIVgzd5DZgH>`__\n-  `Notebook and visualization used in the demo <http://nbviewer.ipython.org/github/bmabey/hacker_news_topic_modelling/blob/master/HN%20Topic%20Model%20Talk.ipynb>`__\n-  `Slide deck <https://speakerdeck.com/bmabey/visualizing-topic-models>`__\n\n\n`Carson Sievert <https://cpsievert.me/>`__ created a video demoing the R package. The visualization is the same and so it applies equally to pyLDAvis:\n\n-  `Visualizing & Exploring the Twenty Newsgroup Data <http://stat-graphics.org/movies/ldavis.html>`__\n\nMore documentation\n~~~~~~~~~~~~~~~~~~\n\nTo read about the methodology behind pyLDAvis, see `the original\npaper <http://nlp.stanford.edu/events/illvi2014/papers/sievert-illvi2014.pdf>`__,\nwhich was presented at the `2014 ACL Workshop on Interactive Language\nLearning, Visualization, and\nInterfaces <http://nlp.stanford.edu/events/illvi2014/>`__ in Baltimore\non June 27, 2014.\n\n\n\n\n.. |version status| image:: https://img.shields.io/pypi/v/pyLDAvis.svg\n   :target: https://pypi.python.org/pypi/pyLDAvis\n.. |build status| image:: https://travis-ci.org/bmabey/pyLDAvis.png?branch=master\n   :target: https://travis-ci.org/bmabey/pyLDAvis\n.. |docs| image:: https://readthedocs.org/projects/pyldavis/badge/?version=latest\n   :target: https://pyLDAvis.readthedocs.org\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Interactive topic model visualization. Port of the R package.",
    "version": "3.4.1",
    "split_keywords": [
        "data science",
        "visualization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b5a66364c6799f2362bfb9b7100bc1ce6ffcdfe7f17e8d2e85a591bfe427643",
                "md5": "5945842019f3aa4b1f3c5eaa47a1d117",
                "sha256": "8a525b187d2d0fad7304ef66bee8d0f25dfccce6a595f1be675a9017fa4d3c7f"
            },
            "downloads": -1,
            "filename": "pyLDAvis-3.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5945842019f3aa4b1f3c5eaa47a1d117",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 2600909,
            "upload_time": "2023-04-23T23:54:09",
            "upload_time_iso_8601": "2023-04-23T23:54:09.449665Z",
            "url": "https://files.pythonhosted.org/packages/6b/5a/66364c6799f2362bfb9b7100bc1ce6ffcdfe7f17e8d2e85a591bfe427643/pyLDAvis-3.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0862e1b3e350f9a5e97a730cd93c2a0ed30f21443c8906c8ef025c94dc595bfa",
                "md5": "52c1b2d6f71bb350ed0b1c6b27dd18d9",
                "sha256": "501775a4a7b7482e9033c924ef0e84eab3f657efce5c9fdb2ac85b77b60c91bb"
            },
            "downloads": -1,
            "filename": "pyLDAvis-3.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "52c1b2d6f71bb350ed0b1c6b27dd18d9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 3857125,
            "upload_time": "2023-04-23T23:54:15",
            "upload_time_iso_8601": "2023-04-23T23:54:15.166348Z",
            "url": "https://files.pythonhosted.org/packages/08/62/e1b3e350f9a5e97a730cd93c2a0ed30f21443c8906c8ef025c94dc595bfa/pyLDAvis-3.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-23 23:54:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "bmabey",
    "github_project": "pyLDAvis",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.24.2"
                ]
            ]
        },
        {
            "name": "scipy",
            "specs": []
        },
        {
            "name": "pandas",
            "specs": [
                [
                    ">=",
                    "2.0.0"
                ]
            ]
        },
        {
            "name": "joblib",
            "specs": [
                [
                    ">=",
                    "1.2.0"
                ]
            ]
        },
        {
            "name": "jinja2",
            "specs": []
        },
        {
            "name": "numexpr",
            "specs": []
        },
        {
            "name": "funcy",
            "specs": []
        },
        {
            "name": "scikit-learn",
            "specs": [
                [
                    ">=",
                    "1.0.0"
                ]
            ]
        },
        {
            "name": "gensim",
            "specs": []
        },
        {
            "name": "setuptools",
            "specs": []
        }
    ],
    "tox": true,
    "lcname": "pyldavis"
}
        
Elapsed time: 0.05780s