Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimension mismatch when using pretrained vectors #12

Open
ajallooeian opened this issue Aug 30, 2019 · 0 comments
Open

Dimension mismatch when using pretrained vectors #12

ajallooeian opened this issue Aug 30, 2019 · 0 comments

Comments

@ajallooeian
Copy link

Hi,

I am trying to use the word vectors from here:
https://fasttext.cc/docs/en/crawl-vectors.html

and use pretrainedVectors option to make a classifier.
./fasttext supervised -input some_data.txt -output some_data.txt.model -pretrainedVectors model.bin -dim 300

However I get:

terminate called after throwing an instance of 'std::invalid_argument'
what(): Dimension of pretrained vectors (-1) does not match dimension (300)!
Aborted (core dumped)

or

terminate called after throwing an instance of 'std::invalid_argument'
what(): Dimension of pretrained vectors (-283686952306184) does not match dimension (300)!
Aborted (core dumped)

Content of sample_data.txt is:
__label__a hello
__label__b good
__label__c bad

I appreciate any advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant