fit_term_usage | R Documentation |
Internal stylest2 function to compute term usage
fit_term_usage(dfm, smoothing, terms, term_weights)
dfm |
a quanteda |
smoothing |
the smoothing parameter value for smoothing the dfm. Should be a numeric scalar, default to 0.5. |
terms |
If not |
term_weights |
Named vector of distances (or any weights) per term in the vocab. Names should correspond to the term. |
A model with with each term that occurs in the text, the frequency of use for each author, and the frequency of that terms' occurrence through the texts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.