get

0th

Percentile

Extract most likely terms or topics.

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

Keywords
utilities
Usage
get_terms(object, k, threshold, ...)
get_topics(object, k, threshold, ...)
Arguments
object
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.

See Also

posterior-methods

Aliases
  • get_terms
  • get_topics
Documentation reproduced from package topicmodels, version 0.0-6, License: GPL-2

Community examples

Looks like there are no examples yet.