topic_network: The network plot of topic model

Description Usage Arguments Source Examples

View source: R/topic_network.R

Description

This function display semantic network of topic model.

Usage

1
topic_network(mallet_df, n_nodes, igraph_semantic_label)

Arguments

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

Source

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

Examples

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)

BeaJJ/ComTxt documentation built on Dec. 17, 2021, 10:46 a.m.