Description Usage Arguments Value Note
View source: R/avg_cos_similarity.R
Computes the average similarity vector between a set of cues and the full vocab over multiple embedding models
1 | avg_cos_similarity(embeds_list, cues, method = "cosine", norm = "l2")
|
embeds_list |
list of trained word embedding models (each is a V by D matrix) |
cues |
a character vector of cue words for which the similarity vector will be computed |
method |
a |
norm |
a |
a matrix of similarity vectors, one row for each cue
embedding models should not be averaged directly, instead, users should average the similarity vectors. This function makes this easier. See Rodriguez & Spirling.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.