Using the the N highest probability tokens for each topic, calculate the average token length for each topic
mean_token_length(topic_model, top_n_tokens = 10)
a fitted topic model object from one of the following:
an integer indicating the number of top words to consider, the default is 10
A vector of average token lengths with length equal to the number of topics in the fitted model
Jordan Boyd-Graber, David Mimno, and David Newman, 2014. Care and Feeding of Topic Models: Problems, Diagnostics, and Improvements. CRC Handbooks ofModern Statistical Methods. CRC Press, Boca Raton, Florida.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.