Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wesslen/topic-modeling-workshop-with-r
A workshop on analyzing topic modeling (LDA, CTM, STM) using R
https://github.com/wesslen/topic-modeling-workshop-with-r
lda r stm topic-modeling
Last synced: 2 days ago
JSON representation
A workshop on analyzing topic modeling (LDA, CTM, STM) using R
- Host: GitHub
- URL: https://github.com/wesslen/topic-modeling-workshop-with-r
- Owner: wesslen
- Created: 2017-02-09T19:06:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-01T06:14:00.000Z (almost 7 years ago)
- Last Synced: 2024-10-28T03:39:55.800Z (4 months ago)
- Topics: lda, r, stm, topic-modeling
- Language: HTML
- Size: 26 MB
- Stars: 51
- Watchers: 7
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Set up
1. Download the materials in this repository using the "Clone or download" button and click the "Download ZIP" link. Unzip the file locally.
2. Ensure you have [R](http://archive.linux.duke.edu/cran/) and [R Studio](https://www.rstudio.com/products/rstudio/download/) installed on your machine. Use the links and follow the instructions to download each locally.
Alternatively, you can use [RollApp](https://www.rollapp.com/) to create a free account and run R and R Studio on a cloud service. This option has more issues with saving so this is only an option if you want to avoid downloading R/R Studio locally.
Open R Studio and run the following command to ensure you have all of the R libraries:
```{r}
packages <- c("quanteda","tidyverse","topicmodels","stm","RColorBrewer","servr",
"LDAvis", "RJSONIO", "igraph","visNetwork")lapply(packages, install.packages(packages), character.only = TRUE)
```## Code
| Part | Subject | | |
| ---- | --------------------------------- | ------ | --------- |
| 1 | Latent Dirichlet Allocation (LDA) | [code](/part1-lda.Rmd) | [HTML output](https://htmlpreview.github.io/?https://github.com/wesslen/Topic-Modeling-Workshop-with-R/blob/master/part1-lda.html) |
| 2 | Correlated Topic Model (CTM) | [code](/part2-ctm.Rmd) | [HTML output](https://rawgit.com/wesslen/Topic-Modeling-Workshop-with-R/master/part2-ctm.html) |
| 3 | Structured Topic Model (STM) | [code](/part3-stm.Rmd) | [HTML output](https://htmlpreview.github.io/?https://github.com/wesslen/Topic-Modeling-Workshop-with-R/blob/master/part3-stm.html) |For users interested in large-scale LDA on Spark (not available yet for CTM or STM), see [this code](https://github.com/wesslen/Code-Tutorials-for-SOPHI/blob/master/code/Scala-LDA.md).
Users interested in Structural Topic Modeling should read [www.structuraltopicmodel.com](http://www.structuraltopicmodel.com/). This site provides multiple papers that have employed STM as well as references on STM including the `stm` R package.