Fasttext: Dimension of pretrained vectors does not match -dim option

Created on 26 Oct 2016  路  4Comments  路  Source: facebookresearch/fastText

I am trying to use the preatrainedVectors option to run a suvervised labeling training. I have .bin file of trained vectors and I using it like that

./fasttext supervised -input corpus_pn_1577277.txt -pretrainedVectors enwiki16_lr001_dim300_ws10_epoch2_neg6.bin -output small

where corpus_pn_1577277.txt is a set of labeled sentences and enwiki16_lr001_dim300_ws10_epoch2_neg6.bin is my pretrained model.

I get

Dimension of pretrained vectors does not match -dim option

Am I doing something wrong? thanks in advance!

Most helpful comment

The size of my pretrained vectors is 300 so I added the -dim 300 option but I get the same error

All 4 comments

The size of my pretrained vectors is 300 so I added the -dim 300 option but I get the same error

How did you resolve the issue in the end? Your last message says that -dim did not help but you closed the issue.

had similar problem earlier, solved by switching from pretrained model format .bin to .vec.

@geovedi: Have you signed or can you sign the Facebook CLA (see CONTRIBUTING.md)? If yes, please fork the repository, correct the README.md and make a pull request. You can do all this directly on github. No need to clone the repository to your local machine. Should take only a few minutes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

premrajnarkhede picture premrajnarkhede  路  3Comments

ragvri picture ragvri  路  3Comments

ereday picture ereday  路  3Comments

kurtjanssensai picture kurtjanssensai  路  3Comments

rhezab picture rhezab  路  4Comments