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

mallet.topic.words

Retrieve a matrix of words weights for topics


Description

This function returns a matrix with one row for every topic and one column for every word in the vocabulary.

Usage

mallet.topic.words(topic.model, normalized, smoothed)

Arguments

topic.model

The model returned by MalletLDA

normalized

If true, normalize the rows so that each topic sums to one. If false, values will be integers (possibly plus the smoothing constant) representing the actual number of words of each type in the topics.

smoothed

If true, add the smoothing parameter for the model (initial value specified as beta in MalletLDA). If false, many values will be zero.


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.