Description Usage Arguments Value Examples
Return the vector representation of provided words (unsupervised training) or provided labels (supervised training).
1 | get_word_vectors(model, words = get_dictionary(model))
|
model |
trained |
words |
character of words. Default: return every word from the dictionary. |
matrix containing each word embedding as a row and rownames
are populated with word strings.
1 2 3 4 | library(fastrtext)
model_test_path <- system.file("extdata", "model_unsupervised_test.bin", package = "fastrtext")
model <- load_model(model_test_path)
get_word_vectors(model, c("introduction", "we"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.