Topic-Specific Diagnostics for LDA and CTM Topic Models

coherence | Helper function for calculating coherence for a single... |

contain_equal_docs | Helper function to check that a topic model and a dtm contain... |

dist_from_corpus | Calculate the distance of each topic from the overall corpus... |

doc_prominence | Calculate the document prominence of each topic in a topic... |

mean_token_length | Calculate the average token length for each topic in a topic... |

n_topics | Helper function to determine the number of topics in a topic... |

tf_df_dist | Calculate the distance between token and document frequencies |

tf_df_dist_diff | Helper function to calculate the Hellinger distance between... |

topic_coherence | Calculate the topic coherence for each topic in a topic model |

topic_diagnostics | Calculate diagnostics for each topic in a topic model |

topic_exclusivity | Calculate the exclusivity of each topic in a topic model |

topic_size | Calculate the size of each topic in a topic model |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.