bertopic_find_topics: Find nearest topics for a query string
Description
Use BERTopic.find_topics() to retrieve the closest topics for a query
string. Augments topic IDs/scores with topic labels when available.
Usage
bertopic_find_topics(model, query_text, top_n = 5L)
Value
A tibble with columns topic, score, and label.
Arguments
- model
A "bertopic_r" model.
- query_text
A length-1 character query.
- top_n
Number of nearest topics to return.