Description Usage Arguments Examples
Performs vector composition and negation, then returns the 12 most similar terms.
1 2 | compose(mat, positive = "", negative = "", operation = "*",
fullResults = T, method = "cosine", margin = 1, threshold = 0)
|
mat |
A term-document or word-context matrix (format either matrix or |
positive |
A character vector of terms naming the rows to be aggregated. |
operation |
A character vector (either "+" or "*"), that controls whether the vectors will be added as simple sums or as products. Default is "*". |
fullResults |
A logical value. If |
method |
The calculation to be performed ("cosine", "euclidean", "pearson", or "covariance"). |
margin |
A numeric value. If |
threshold |
A numeric value, between 0 and 100. See |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.