Description Usage Arguments Source Examples
View source: R/topic_network.R
This function display semantic network of topic model.
1 | topic_network(mallet_df, n_nodes, igraph_semantic_label)
|
mallet_df |
The model trained by get_topic function |
n_nodes |
The number of nodes/words. default 50 |
igraph_semantic_label |
The size of vertex labels. default 0.01 |
Csardi G, Nepusz T (2006). The igraph software package for complex network research.
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", stopwords_lang = "es")
df_topics <- twitter_topic(df_pre, language = "es", n_topic = 7)
topic_network(df_topics, n_nodes = 50, igraph_semantic_label= 0.007)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.