vinhkhuc / JFastText

Java interface for fastText
Other
228 stars 100 forks source link

Dimension of pretrained vectors does not match -dim option #41

Open Francopoulo opened 6 years ago

Francopoulo commented 6 years ago

Hi, I try to use with the supervised command a pretrainedVector. This vector has this first line: 170830 100 And I have this message: Dimension of pretrained vectors does not match -dim option I tried to set the option "-dim","100". But no way. Have you an idea, please? Gil

Francopoulo commented 6 years ago

Here is the code: JFastText jft= new JFastText(); jft.runCmd(new String[] { "skipgram", "-input", "unlabbelled.txt", "-output", voca, "-bucket", "100", "-minCount", "1", }); jft.runCmd(new String[] { "supervised", "-input", "train.txt", "-output", "supervised.model", "-pretrainedVectors", "voca.bin", });