Description Usage Arguments Value Examples
View source: R/top_relations.R
top_relations
takes in a matrix, word, association method, and number of
results and outputs a sorted list of words most associated with the input word based on the
specified association method.
For a description of each method, type ?<method>
in the console.
1 | top_relations(m, word, method = "most correlated", num_results = 10)
|
m |
A matrix. |
word |
A word. |
method |
"most correlated," "most similar," or "least divergent." |
num_results |
An integer. |
Top words associated with word
in matrix m
.
1 | top_relations(W, "loue", "most correlated", 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.