fasttext {fastTextR}R Documentation

Train a Model

Description

Train a new word representation model or supervised classification model.

Usage

fasttext(input, method = c("supervised", "cbow", "skipgram"),
  control = ft.control())

Arguments

input

a character string giving the location of the input file.

method

a character string giving the method, possible values are 'supervised', 'cbow' and 'skipgram'.

control

a list giving the control variables, for more information see ft.control.

Examples

## Not run: 
model <- fasttext("my_data.txt", method="supervised", 
                  control = ft.control(nthreads = 1L))

## End(Not run)

[Package fastTextR version 1.0 Index]