| probability | R Documentation |
Compute the probability of words given other words.
probability(
x,
targets,
layer = c("words", "documents"),
mode = c("character", "numeric")
)
x |
a trained |
targets |
words for which probabilities are computed. |
layer |
the layer based on which probabilities are computed. |
mode |
specify the type of resulting object. |
a matrix of words or documents sorted in descending order by the probability
scores when mode = "character"; a matrix of the probability scores when mode = "numeric".
When words is a named numeric vector, probability scores are weighted by
the values.
similarity()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.