Fasttext: Pre-trained models - loading GloVe models

Created on 26 May 2017  路  3Comments  路  Source: facebookresearch/fastText

I would like to use pre-trained word embedding GloVe models like the Twitter model ( (2B tweets, 27B tokens, 1.2M vocab, uncased, 25d, 50d, 100d, & 200d vectors ) available here
Do I need a conversion between the FastText and the GloVe models?

Most helpful comment

Hello @loretoparisi,

You can indeed load these vectors. All you need to add is the number of lines and the dimensionality at the beginning of the GloVe files. You'll see that these then match the .vec format that we use.

Thanks,
Christian

All 3 comments

I'd like to know this as well!

Hello @loretoparisi,

You can indeed load these vectors. All you need to add is the number of lines and the dimensionality at the beginning of the GloVe files. You'll see that these then match the .vec format that we use.

Thanks,
Christian

@cpuhrsch thank you. What about Google's word2vec model GoogleNews-vectors-negative300.bin? There are some converters from GloVe, but any easier way?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AhmedIdr picture AhmedIdr  路  3Comments

kurtjanssensai picture kurtjanssensai  路  3Comments

nomadlx picture nomadlx  路  3Comments

loretoparisi picture loretoparisi  路  3Comments

ragvri picture ragvri  路  3Comments