doc_topics: The document-topic matrix

doc_topicsR Documentation

The document-topic matrix

Description

Extracts the matrix from a mallet_model model with documents in rows and topic weights in columns. The document order is the same as the ordering of the documents supplied to MALLET.

Usage

doc_topics(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; this is not strictly correct, it is easier to reason about and to do post-hoc calculations with. 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.