
Generate Semantic Topic Keywords (c-TF-IDF)
Source:R/topic_modeling.R
generate_semantic_topic_keywords.RdGenerate keywords for topics using c-TF-IDF (class-based TF-IDF), similar to BERTopic. This method treats all documents in a topic as a single document and calculates TF-IDF scores relative to other topics.
Usage
generate_semantic_topic_keywords(
texts,
topic_assignments,
n_keywords = 10,
method = "c-tfidf"
)