get: Extract most likely terms or topics.

Description Usage Arguments Value Author(s) See Also

Description

Function to extract the most likely terms for each topic or the most likely topics for each document.

Usage

1
2
3
4
## S4 method for signature 'TopicModel'
terms(x, k, threshold, ...)
## S4 method for signature 'TopicModel'
topics(x, k, threshold, ...)

Arguments

x

Object of class "TopicModel".

k

The maximum number of terms/topics returned. By default set to 1 if no threshold is given.

threshold

Only the terms/topics which are more likely than the threshold are returned.

...

Further arguments passed to sapply.

Value

A list or matrix containing the most likely terms for each topic or the most likely topics for each document.

Author(s)

Bettina Gruen

See Also

posterior-methods



Search within the topicmodels package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.