Learn R Programming

fastTextR (version 1.0)

fasttext: 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

Run this code
# NOT RUN {
model <- fasttext("my_data.txt", method="supervised", 
                  control = ft.control(nthreads = 1L))
# }

Run the code above in your browser using DataLab