Function to extract the most likely terms for each topic or the most likely topics for each document.
# S4 method for TopicModel
terms(x, k, threshold, ...)
# S4 method for TopicModel
topics(x, k, threshold, ...)
A list or matrix containing the most likely terms for each topic or the most likely topics for each document.
Object of class "TopicModel"
.
The maximum number of terms/topics returned. By default set to 1 if no threshold is given.
Only the terms/topics which are more likely than the threshold are returned.
Further arguments passed to sapply
.
Bettina Gruen
posterior-methods