pommedeterresautee / fastrtext

R wrapper for fastText
https://pommedeterresautee.github.io/fastrtext/
Other
101 stars 15 forks source link

argument -label is not recognize #20

Closed bananemure closed 6 years ago

bananemure commented 6 years ago

Hi @pommedeterresautee I run a supervised model using my own label string but it seems that we cannot set our own label since the option -label is not settable.

Unknown argument: -label

pommedeterresautee commented 6 years ago

Strange, I just tried and it works. Can you post the command you use? Is it the last version of the package? (nice nickname btw :+1: )

bananemure commented 6 years ago

This is the command...

pretrainModel <- '../embedvectors/allvec/allvec200.vec' fastrtext::execute(commands = c("supervised", "-input", 'train_icd.tsv', "-output", 'icd_model', "-dim", 200, "-lr", 1, "-minn",4, "-maxn",6, "-loss", 'softmax', "-label ","class__", "-epoch", 20, "-wordNgrams", 3, "-verbose", 2, "-thread",100, "-pretrainedVectors" ,pretrainModel

                            )
               )

Yes I install the package using devtools::github so it should be the last version thanks

pommedeterresautee commented 6 years ago

you put a space in "-label " (after label)

bananemure commented 6 years ago

Ohhh sorry you are so right... Thank again.... Great work with the package. A great + for the R users