powered by
Train a new word representation model or supervised classification model.
ft_train( file, 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
additional control arguments inserted into the control list.
if (FALSE) { cntrl <- ft_control(nthreads = 1L) model <- ft_train("my_data.txt", method="supervised", control = cntrl) }
Run the code above in your browser using DataLab