topic_wordplot: The word term plot for topics

Description Usage Arguments Source Examples

View source: R/topic_wordplot.R

Description

This function display word term plot of topics.

Usage

1
topic_wordplot(mallet_df, n_topic, num_words = 10)

Arguments

mallet_df

The model trained by get_topic function

n_topic

The numbers topics of model

num_words

The number top terms. default 10

Source

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", stop_words)
df_topics <- twitter_topic(df_pre, n_topic = 7)
topic_wordplot(df_topics, num_words = 10)

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