Search code examples
pythonalignmentunsupervised-learningfasttext

How can I get a vec file from a bin file?


I m trying to align my model with fasttext unsupervised.py https://github.com/facebookresearch/MUSE. I trained my model with fasttext and I got the binary file model.bin. When I use unsupervised.py I get the

error: ValueError: model.bin has wrong file format

What is wrong? Do I have to have a .vec file? How to get it?


Solution

  • For information about the difference between .bin and .vec files, you can read this question.

    In any case, MUSE expects .vec files.

    If you want to convert a .bin file to a .vec file, this answer will probably help you.