probability | R Documentation |
Compute the probability of words given other words.
probability(x, words, mode = c("words", "values"))
x |
a |
words |
words for which probability is computed. |
mode |
specify the type of resulting object. |
a matrix
of probability scores when mode = "values"
or of words
sorted in descending order by the probability scores when mode = "words"
.
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.