mallet.top.words: Get the most probable words and their probabilities for one...

Description Usage Arguments

View source: R/mallet.R

Description

This function returns a data frame with two columns, one containing the most probable words as character values, the second containing the weight assigned to that word in the word weights vector you supplied.

Usage

1
mallet.top.words(topic.model, word.weights, num.top.words)

Arguments

topic.model

The model returned by MalletLDA

word.weights

A vector of word weights for one topic, usually a row from the topic.words matrix from mallet.topic.words.

num.top.words

The number of most probable words to return. If not specified, defaults to 10.


mallet documentation built on May 29, 2017, 10:31 p.m.

Search within the mallet package
Search all R packages, documentation and source code