Combine the mass of words with the same root
combMass(mod = NULL, vocab = NULL, beta = NULL)
A list with two elements:
A matrix of new vocabulary. Each row represents a topic and each column represents a unique stemmed word.
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.
Fitted structural topic models.
A character vector specifying the words in the corpus. Usually, it can be found in topic model output.
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.