Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mallet.topic.labels

Get strings containing the most probable words for each topic


Description

This function returns a vector of strings, one for each topic, with the most probable words in that topic separated by spaces.

Usage

mallet.topic.labels(topic.model, topic.words, num.top.words)

Arguments

topic.model

The model returned by MalletLDA

topic.words

The matrix of topic-word weights returned by mallet.topic.words

num.top.words

The number of words to include for each topic

See Also

mallet.topic.words produces topic-word weights. mallet.top.words produces a data frame for a single topic.


mallet

A wrapper around the Java machine learning tool MALLET

v1.0
MIT + file LICENSE
Authors
David Mimno
Initial release
2013-07-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.