ft_word_vectors: Get Word Vectors

View source: R/fasttext.R

ft_word_vectorsR Documentation

Get Word Vectors

Description

Obtain word vectors from a previously trained model.

Usage

ft_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

## Not run: 
ft_word_vectors(model, c("word", "vector"))

## End(Not run)

fastTextR documentation built on June 22, 2024, 7:16 p.m.