twitter_topic: Mallet Topic Modelling On Twitter Data

Description Usage Arguments Source Examples

View source: R/twitter_topic.R

Description

This function allows you to train Mallet topic modelling on Twitter data using Mallet pacakge (Mimno, 2013). The result of Topic modelling display directly R and Shiny.

Usage

1
twitter_topic(df, n_topic)

Arguments

df

The preprocessed Twitter data frame. The column names must include "status_id", "text"

n_topic

The numbers of topics

Source

David Mimno (2013) mallet: A wrapper around the Java machine learning tool MALLET

Examples

1
2
df_ pre <- twitter_preprocess(df_tweets, ud_lang = "spanish", stopwords_lang = "es")
df_topics <- twitter_topic(df_pre, n_topic = 7)

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