| perplexity | R Documentation |
Compute the perplexity of a trained word2vec model with data.
perplexity(x, targets, data, layer = c("words", "documents"))
x |
a trained |
data |
a quanteda::tokens or quanteda::dfm; the probabilities of words are tested against occurrences of words in it. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.