mallet.doc.topics

0th

Percentile

Retrieve a matrix of topic weights for every document

This function returns a matrix with one row for every document and one column for every topic.

Usage
mallet.doc.topics(topic.model, normalized, smoothed)
Arguments
topic.model
The model returned by MalletLDA
normalized
If true, normalize the rows so that each document sums to one. If false, values will be integers (possibly plus the smoothing constant) representing the actual number of words of each topic in the documents.
smoothed
If true, add the smoothing parameter for the model (initial value specified as alpha.sum in MalletLDA). If false, many values will be zero.
Aliases
  • mallet.doc.topics
Documentation reproduced from package mallet, version 1.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.