topic_getwords: The Matrix of Words and Weight for Topics

Description Usage Arguments Source Examples

View source: R/topic_getwords.R

Description

This function retrive the matrix of words and its weight for topics.

Usage

1
topic_getwords(mallet_df, n_words)

Arguments

mallet_df

The model trained by get_topic function

n_words

The number of words for the matrix

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)
words <- topic_getwords(df_topics, n_words = 100)

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