ft_sentence_vectors: Get Sentence Vectors

View source: R/fasttext.R

ft_sentence_vectorsR Documentation

Get Sentence Vectors

Description

Obtain sentence vectors from a previously trained model.

Usage

ft_sentence_vectors(model, sentences)

Arguments

model

an object inheriting from "fasttext".

sentences

a character vector giving the sentences.

Value

a matrix containing the sentence vectors.

Examples

## Not run: 
ft_sentence_vectors(model, c("sentence", "vector"))

## End(Not run)

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