Description Usage Arguments Value Examples
Fetch semantic vectors for words or documents
1 | semantics(x, vectors)
|
x |
a vector of strings. The strings can either be single words or longer documents. |
vectors |
a matrix of word vectors, where each row is a word vector with the word labels stored as rownames |
a dataframe of word or document semantic vectors. Single words from x will have the semantic word vectors from the vectors argument. Longer phrases or documents will be compiled into a fixed length vector by computing the mean of all the vectors in the phrase or document.
1 | ##semantics(c("WALRUS", "Jerk", "paradise"), TASA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.