Learn R Programming

fastTextR (version 2.1.0)

ft_sentence_vectors: Get Sentence Vectors

Description

Obtain sentence vectors from a previously trained model.

Usage

ft_sentence_vectors(model, sentences)

Value

a matrix containing the sentence vectors.

Arguments

model

an object inheriting from "fasttext".

sentences

a character vector giving the sentences.

Examples

Run this code
if (FALSE) {
ft_sentence_vectors(model, c("sentence", "vector"))
}

Run the code above in your browser using DataLab