Description Usage Arguments Value Author(s) Examples
Given a vector words, this function returns the
300-dimensional embedding of each element. The
embedding is given in reference to a particular
language. The model must have been loaded
using the function ft_load_model
.
1 | ft_embed(words, lang = "en")
|
words |
a character vector of the words for which an embedding should be returned |
lang |
the two letter language code specifying the language to use for the embedding |
A matrix with three hundred columns and one row
for each word. Rownames record the input words.
Rows corresponding the words not in the embedding
are set to NA
Taylor B. Arnold, taylor.arnold@acm.org
1 2 | ft_load_model(lang = "en")
ft_embed(c("the", "and", "I", "banana"), lang = "en")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.