R/topic_exclusivity.R
topic_exclusivity.Rd
Using the the N highest probability tokens for each topic, calculate the exclusivity for each topic
topic_exclusivity(topic_model, top_n_tokens = 10, excl_weight = 0.5)
a fitted topic model object from one of the following:
tm-class
an integer indicating the number of top words to consider, the default is 10
a numeric between 0 and 1 indicating the weight to place on exclusivity versus frequency in the calculation, 0.5 is the default
A vector of exclusivity values with length equal to the number of topics in the fitted model
Bischof, Jonathan, and Edoardo Airoldi. 2012. "Summarizing topical content with word frequency and exclusivity." In Proceedings of the 29th International Conference on Machine Learning (ICML-12), eds John Langford and Joelle Pineau.New York, NY: Omnipress, 201–208.