topic_words: The topic-words matrix

topic_wordsR Documentation

The topic-words matrix

Description

Extracts the matrix from a mallet_model model with topics in rows and word weights in columns. The word order is the same as that of the vocabulary for the MALLET InstanceList.

Usage

topic_words(m, ...)

Arguments

m

a mallet_model object

Details

The expectation throughout dfrtopics is that we keep unnormalized and unsmoothed weights as the "raw" form of the model; it is easier to reason about and to do post-hoc calculations with, even if not rigorously correct. It is up to the user to apply normalization and smoothing where appropriate.

Value

a numeric matrix


agoldst/dfrtopics documentation built on July 15, 2022, 4:13 p.m.