{"id":16569601,"url":"https://github.com/cpsievert/ldavis","last_synced_at":"2025-04-08T10:26:18.816Z","repository":{"id":14709624,"uuid":"17429998","full_name":"cpsievert/LDAvis","owner":"cpsievert","description":"R package for web-based interactive topic model visualization.","archived":false,"fork":false,"pushed_at":"2024-02-06T16:21:59.000Z","size":25195,"stargazers_count":559,"open_issues_count":35,"forks_count":132,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-01T09:21:18.621Z","etag":null,"topics":["javascript","r","text-mining","topic-modeling","visualization"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cpsievert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-03-05T06:17:16.000Z","updated_at":"2025-03-31T10:04:09.000Z","dependencies_parsed_at":"2022-09-21T11:11:55.551Z","dependency_job_id":"f4c65a05-dfaf-4277-ad63-68348d7639b9","html_url":"https://github.com/cpsievert/LDAvis","commit_stats":{"total_commits":266,"total_committers":11,"mean_commits":"24.181818181818183","dds":0.4022556390977443,"last_synced_commit":"5067f7b847caa3de4eabc61346a0bfe88834b892"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpsievert%2FLDAvis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpsievert%2FLDAvis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpsievert%2FLDAvis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpsievert%2FLDAvis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpsievert","download_url":"https://codeload.github.com/cpsievert/LDAvis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247822323,"owners_count":21001844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","r","text-mining","topic-modeling","visualization"],"created_at":"2024-10-11T21:13:55.593Z","updated_at":"2025-04-08T10:26:18.791Z","avatar_url":"https://github.com/cpsievert.png","language":"JavaScript","readme":"## LDAvis\n\n[![Build Status](https://travis-ci.org/cpsievert/LDAvis.png?branch=master)](https://travis-ci.org/cpsievert/LDAvis)\n\nR package for interactive topic model visualization.\n\n![LDAvis icon](http://www.kennyshirley.com/figures/ldavis-pic.png)\n\n**LDAvis** 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\n### Installing the package\n\n* Stable version on CRAN:\n\n```r\ninstall.packages(\"LDAvis\")\n```\n\n* Development version on GitHub (with [devtools](https://cran.r-project.org/package=devtools)):\n\n```r\ndevtools::install_github(\"cpsievert/LDAvis\")\n```\n\n### Getting started\n\nOnce installed, we recommend a visit to the main help page:\n\n```r\nlibrary(LDAvis)\nhelp(createJSON, package = \"LDAvis\")\n```\n\nThe documentation and example on the bottom of that page should provide a quick sense of how to create (and share) your own visualizations. If you want more details about the technical specifications of the visualization, see the vignette:\n\n```r\nvignette(\"details\", package = \"LDAvis\")\n```\n\nNote that **LDAvis** itself does not provide facilities for *fitting* the model (only *visualizing* a fitted model). If you want to perform LDA in R, there are several packages, including [mallet](https://cran.r-project.org/package=mallet), [lda](https://cran.r-project.org/package=lda), and [topicmodels](https://cran.r-project.org/package=topicmodels).\n\nIf you want to perform LDA with the R package **lda** and visualize the result with **LDAvis**, our example of a [20-topic model fit to 2,000 movie reviews](https://ldavis.cpsievert.me/reviews/reviews.html) may be helpful.\n\n**LDAvis** does not limit you to topic modeling facilities in R. If you use other tools ([MALLET](http://mallet.cs.umass.edu/) and [gensim](https://radimrehurek.com/gensim/) are popular), we recommend that you visit our [Twenty Newsgroups](https://ldavis.cpsievert.me/newsgroup/newsgroup.html) example to help quickly understand what components **LDAvis** will need.\n\n### Sharing a Visualization\n\nTo share a visualization that you created using **LDAvis**, you can encode the state of the visualization into the URL by appending a string of the form:\n\n\"#topic=k\u0026lambda=l\u0026term=s\"\n\nto the end of the URL, where \"k\", \"l\", and \"s\" are strings indicating the desired values of the selected topic, the value of lambda, and the selected term, respectively. For more details, see the last section of our [Movie Reviews example](https://ldavis.cpsievert.me/reviews/reviews.html), or for a quick example, see the link here:\n\n\u003chttps://ldavis.cpsievert.me/reviews/vis/#topic=3\u0026lambda=0.6\u0026term=cop\u003e\n\n### Video demos\n\n* [Visualizing \u0026 Exploring the Twenty Newsgroup Data](http://stat-graphics.org/movies/ldavis.html)\n* [Visualizing Topic Models demo with Hacker News Corpus](https://www.youtube.com/watch?v=tGxW2BzC_DU)\n  * [Notebook w/Visualization](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### More documentation\n\nTo read about the methodology behind LDAvis, see [our paper](http://nlp.stanford.edu/events/illvi2014/papers/sievert-illvi2014.pdf), which we 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.\n\n### Additional data\n\nWe included one data set in LDAvis, 'TwentyNewsgroups', which consists of a list with 5 elements:\n- phi, a matrix with the topic-term distributions\n- theta, a matrix with the document-topic distributions\n- doc.length, a numeric vector with token counts for each document\n- vocab, a character vector containing the terms\n- term.frequency, a numeric vector of observed term frequencies\n\nWe also created a second data-only package called [LDAvisData](https://github.com/cpsievert/LDAvisData) to hold additional example data sets. Currently there are three more examples available there:\n- Movie Reviews (a 20-topic model fit to 2,000 movie reviews)\n- AP (a 40-topic model fit to approximately 2,246 news articles)\n- Jeopardy (a 100-topic model fit to approximately 20,000 Jeopardy questions)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpsievert%2Fldavis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpsievert%2Fldavis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpsievert%2Fldavis/lists"}