Description Usage Arguments Source Examples
View source: R/twitter_topic.R
This function allows you to train Mallet topic modelling on Twitter data using Mallet pacakge (Mimno, 2013). The result of Topic modelling display directly R and Shiny.
1 | twitter_topic(df, n_topic)
|
df |
The preprocessed Twitter data frame. The column names must include "status_id", "text" |
n_topic |
The numbers of topics |
David Mimno (2013) mallet: A wrapper around the Java machine learning tool MALLET
1 2 | df_ pre <- twitter_preprocess(df_tweets, ud_lang = "spanish", stopwords_lang = "es")
df_topics <- twitter_topic(df_pre, n_topic = 7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.