All Projects → cschwem2er → Stminsights

cschwem2er / Stminsights

Licence: other
A Shiny Application for Inspecting Structural Topic Models

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Stminsights

topicApp
A simple Shiny App for Topic Modeling in R
Stars: ✭ 40 (-45.95%)
Mutual labels:  shiny, topic-modeling
Gensim
Topic Modelling for Humans
Stars: ✭ 12,763 (+17147.3%)
Mutual labels:  natural-language-processing, topic-modeling
Lda Topic Modeling
A PureScript, browser-based implementation of LDA topic modeling.
Stars: ✭ 91 (+22.97%)
Mutual labels:  natural-language-processing, topic-modeling
Text2vec
Fast vectorization, topic modeling, distances and GloVe word embeddings in R.
Stars: ✭ 715 (+866.22%)
Mutual labels:  natural-language-processing, topic-modeling
Pyshorttextcategorization
Various Algorithms for Short Text Mining
Stars: ✭ 429 (+479.73%)
Mutual labels:  natural-language-processing, topic-modeling
Lda
LDA topic modeling for node.js
Stars: ✭ 262 (+254.05%)
Mutual labels:  natural-language-processing, topic-modeling
Scattertext
Beautiful visualizations of how language differs among document types.
Stars: ✭ 1,722 (+2227.03%)
Mutual labels:  natural-language-processing, topic-modeling
Text mining resources
Resources for learning about Text Mining and Natural Language Processing
Stars: ✭ 358 (+383.78%)
Mutual labels:  natural-language-processing, topic-modeling
Paper Reading
Paper reading list in natural language processing, including dialogue systems and text generation related topics.
Stars: ✭ 508 (+586.49%)
Mutual labels:  natural-language-processing, topic-modeling
How To Mine Newsfeed Data And Extract Interactive Insights In Python
A practical guide to topic mining and interactive visualizations
Stars: ✭ 61 (-17.57%)
Mutual labels:  natural-language-processing, topic-modeling
Ai Writer data2doc
PyTorch Implementation of NBA game summary generator.
Stars: ✭ 69 (-6.76%)
Mutual labels:  natural-language-processing
Get started with deep learning for text with allennlp
Getting started with AllenNLP and PyTorch by training a tweet classifier
Stars: ✭ 69 (-6.76%)
Mutual labels:  natural-language-processing
Sense2vec
🦆 Contextually-keyed word vectors
Stars: ✭ 1,184 (+1500%)
Mutual labels:  natural-language-processing
Startapp
The START App: R Shiny Transcriptome Analysis Resource Tool
Stars: ✭ 73 (-1.35%)
Mutual labels:  shiny
Explore
R package that makes basic data exploration radically simple (interactive data exploration, reproducible data science)
Stars: ✭ 69 (-6.76%)
Mutual labels:  shiny
Absa Pytorch
Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。
Stars: ✭ 1,181 (+1495.95%)
Mutual labels:  natural-language-processing
Touchdown
Cornell Touchdown natural language navigation and spatial reasoning dataset.
Stars: ✭ 69 (-6.76%)
Mutual labels:  natural-language-processing
Hackerrank
This is the Repository where you can find all the solution of the Problems which you solve on competitive platforms mainly HackerRank and HackerEarth
Stars: ✭ 68 (-8.11%)
Mutual labels:  natural-language-processing
Intent classifier
Stars: ✭ 67 (-9.46%)
Mutual labels:  natural-language-processing
Nlp Tutorial
A list of NLP(Natural Language Processing) tutorials
Stars: ✭ 1,188 (+1505.41%)
Mutual labels:  natural-language-processing

stminsights

Travis-CI Build Status AppVeyor Build Status CRAN status CRAN downloads

A Shiny Application for Structural Topic Models

This app enables interactive validation, interpretation and visualisation of Structural Topic Models (STM). Stminsights is focused on making your life easier after fitting your STM models. In case you are not familiar with the STM package, the corresponding vignette is an excellent starting point.

How to Install

You can download and install the latest development version of stminsights by running devtools::install_github('cschwem2er/stminsights').

For Windows users installing from github requires proper setup of Rtools.

stminsights can also be installed from CRAN by running install.packages('stminsights').

How to Use

After loading stminsights you can launch the shiny app in your browser:

library(stminsights)
run_stminsights()

You can then upload a .RData file which should include:

  • one or several stm objects.
  • one or several estimateEffect objects.
  • an object out which was used to fit your stm models.

As an example, the following code fits two models and estimates effects for the Political Blog Corpus. Afterwards, all objects required for stminsights are stored in stm_poliblog5k.RData.

library(stm)

out <- list(documents = poliblog5k.docs,
            vocab = poliblog5k.voc,
            meta = poliblog5k.meta)

poli <- stm(documents = out$documents, 
            vocab = out$vocab,
            data = out$meta, 
            prevalence = ~ rating * s(day),
            K = 20)
prep_poli <- estimateEffect(1:20 ~ rating * s(day), poli,
                            meta = out$meta)

poli_content <-  stm(documents = out$documents, 
                     vocab = out$vocab,
                     data = out$meta, 
                     prevalence = ~ rating + s(day),
                     content = ~ rating,
                     K = 15)  
prep_poli_content <- estimateEffect(1:15 ~ rating + s(day), poli_content,
                                    meta = out$meta)

save.image('stm_poliblog5k.RData')

After launching stminsights and uploading the file, all objects are automatically imported and you can select which models and effect estimates to analyze.

In addition to the shiny app, several helper functions are available, e.g. get_effects() for storing effect estimates in a tidy dataframe.

How to Deploy on Shiny Server

Deploying stminsights to your own shiny server is simple: Place the file app.R, which is located at inst/app of this package, to a folder in your server directory and you should be good to go.

Citation

Please cite stminsights if you use it for your publications:

  Carsten Schwemmer (2018). stminsights: A Shiny Application for Inspecting
  Structural Topic Models. R package version 0.4.0.
  https://github.com/cschwem2er/stminsights

A BibTeX entry for LaTeX users is:

  @Manual{,
    title = {stminsights: A Shiny Application for Inspecting Structural Topic Models},
    author = {Carsten Schwemmer},
    year = {2018},
    note = {R package version 0.4.0},
    url = {https://github.com/cschwem2er/stminsights},
  }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].