View source: R/stylest2_predict.R
speaker_odds | R Documentation |
Internal stylest2 function to predict log odds of speakership across texts.
speaker_odds(log_weights, pred_docs_dfm, pred_docs_ntoken, speakers)
log_weights |
The logged author-level term weights from a stylest2 model. |
pred_docs_dfm |
A document-feature matrix for the texts to be predicted. |
pred_docs_ntoken |
A vector, the number of tokens in each prediction document. |
speakers |
The speaker labels for |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.