powered by
Train a new word representation model or supervised classification model.
fasttext(input, method = c("supervised", "cbow", "skipgram"), control = ft.control())
a character string giving the location of the input file.
a character string giving the method, possible values are 'supervised', 'cbow' and 'skipgram'.
'supervised'
'cbow'
'skipgram'
a list giving the control variables, for more information see ft.control.
ft.control
# NOT RUN { model <- fasttext("my_data.txt", method="supervised", control = ft.control(nthreads = 1L)) # }
Run the code above in your browser using DataLab