tf_df_dist_diff {topicdoc}R Documentation

Helper function to calculate the Hellinger distance between the token frequencies and document frequencies for a specific topic's top N tokens

Description

Helper function to calculate the Hellinger distance between the token frequencies and document frequencies for a specific topic's top N tokens

Usage

tf_df_dist_diff(dtm_data, top_terms)

Arguments

dtm_data

a document-term matrix of token counts coercible to simple_triplet_matrix

top_terms

- a character vector of the top N tokens

Value

a single value representing the Hellinger distance


[Package topicdoc version 0.1.1 Index]