topic_docs_word | R Documentation |
Extracts a matrix of counts of a word's weight in each topic within each document from the model's final Gibbs sampling state. (The matrix is quite sparse.)
topic_docs_word(m, word)
m |
a |
This is useful for studying a word's distribution over topics conditional on some metadata covariate. It is important to realize that the model does not distribute the word among topics uniformly across the corpus.
a sparseMatrix
of within-document word
weights for word
(columns are in doc_ids(m)
order)
tdm_topic
, read_sampling_state
,
mallet_model
, load_sampling_state
,
top_n_row
, sum_col_groups
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.