View source: R/topic_cooccurrence.R
topic_cooccurrence | R Documentation |
Calculate topic co-occurrence from text2vec model
topic_cooccurrence(x, n_top_words = 5, term_order_lambda = 1, diag_to_zero = TRUE, n_top_topics = 10)
x |
A named list containing a fitted text2vec LDA model and the document topic distribution.
Names need to be: |
n_top_words |
Number of top words to of each topic to be used as topic label. Passed to |
term_order_lambda |
Lambda for re-ordering the extracted top terms. Passed to |
diag_to_zero |
Shall the diagonal of the output be set to zero, i.e.,
should the self-co-occurrence (which is the occurrence of a topic of all docs) be neglected?
By default |
An symmetric matrix showing the co-occurrence of topics in documents.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.