Description Usage Arguments Source Examples
View source: R/topic_getwords.R
This function retrive the matrix of words and its weight for topics.
1 | topic_getwords(mallet_df, n_words)
|
mallet_df |
The model trained by get_topic function |
n_words |
The number of words for the matrix |
David Mimno (2013) mallet: A wrapper around the Java machine learning tool MALLET
1 2 3 | df_ pre <- twitter_preprocess(df_tweets, ud_lang = "spanish", stop_words)
df_topics <- twitter_topic(df_pre, n_topic = 7)
words <- topic_getwords(df_topics, n_words = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.