Learn R Programming

fastTextR (version 1.0)

get_word_vectors: Get Word Vectors

Description

Obtain word vectors from a previously trained model.

Usage

get_word_vectors(model, words)

Arguments

model

an object inheriting from "fasttext".

words

a character vector giving the words.

Value

a matrix containing the word vectors.

Examples

Run this code
# NOT RUN {
get_word_vectors(model, c("word", "vector"))
# }

Run the code above in your browser using DataLab