R/topic-extract.R
topics_terms_map.Rd
The primary purpose of topics_terms_map
is to provide an association
between topics (by ID) and a representative set of words (terms) for a given
topic. These can be used to create labels for visualizations.
topics_terms_map(topicModel, nLabelTerms = 7, labelType = "frex")
topicModel | |
---|---|
nLabelTerms | the number of terms to be included as a label for a given
topic; default is |
labelType | the |
a dataframe with topics by ID and a selection of associated topic terms, where:
a numeric identifier of a topic
a character sequence of frequent and exclusive terms associated with a topic
By default the terms that are both most frequent and exclusive are used (see
stm
for details).