combMass | R Documentation |
Combine the mass of words with the same root
combMass(mod = NULL, vocab = NULL, beta = NULL)
mod |
Fitted structural topic models. |
vocab |
A character vector specifying the words in the corpus. Usually, it can be found in topic model output. |
beta |
A matrix of word probabilities for each topic. Each row represents a topic and each column represents a word. Note this should not be in the logged form. |
Use as a preparing step for validating unstemmed topic models.
A list with two elements:
newvocab |
A matrix of new vocabulary. Each row represents a topic and each column represents a unique stemmed word. |
newbeta |
A matrix of new beta. Each row represents a topic and each column represents the sum of the probabilities of the words with the same root. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.