Difference between Fasttext .vec and .bin file

后端 未结 2 1189
死守一世寂寞
死守一世寂寞 2021-02-07 01:16

I recently downloaded fasttext pretrained model for english. I got two files:

  1. wiki.en.vec
  2. wiki.en.bin

I am not sure what is the difference

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-07 02:16

    As the documentation says,

    model.vec is a text file containing the word vectors, one per line. model.bin is a binary file containing the parameters of the model along with the dictionary and all hyper parameters.

    In other words, .vec file format is the same as .txt file format, and you could use it in other applications (for example, to exchange data between your FastText model and your Word2Vec model since .vec file is similar to .txt file generated by Word2Vec). And the .bin file could be used if you want to continue training the vectors or to restart the optimization.

提交回复
热议问题