# Convert Gensim FastText to spaCy-readable Word2Vec format for terms.teach recipe

**URL:** <https://support.prodi.gy/t/convert-gensim-fasttext-to-spacy-readable-word2vec-format-for-terms-teach-recipe/3386>\
**Category:** Uncategorized\
**Tags:** spacy, terms, solved, gensim\
**Created:** [September 10, 2020, 9:24am UTC](https://support.prodi.gy/t/convert-gensim-fasttext-to-spacy-readable-word2vec-format-for-terms-teach-recipe/3386 "2020-09-10T09:24:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![DGMS90](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/dgms90/32/3133_2.png) [@DGMS90](https://support.prodi.gy/u/DGMS90)\
**Post date:** [September 11, 2020, 6:03am UTC](https://support.prodi.gy/t/convert-gensim-fasttext-to-spacy-readable-word2vec-format-for-terms-teach-recipe/3386/4 "2020-09-11T06:03:37Z")

</div>

Found a solution for formatting the .txt file.

TLDR: first line of the text file should contain a string of "{} {}".format(VOCAB\_SIZE, NDIMS).

Sources for solution:

- [How to use two .txt files one with vectors the other with words](https://support.prodi.gy/t/how-to-use-two-txt-files-one-with-vectors-the-other-with-words/565/4)
- [https://stackoverflow.com/questions/27324292/convert-word2vec-bin-file-to-text/29251943#29251943](https://stackoverflow.com/questions/27324292/convert-word2vec-bin-file-to-text/29251943#29251943)
- [https://github.com/explosion/spaCy/issues/2298#issuecomment-387091526](https://github.com/explosion/spaCy/issues/2298#issuecomment-387091526)

Thanks for your help Ines!

Darren

---

_[View the full topic](https://support.prodi.gy/t/convert-gensim-fasttext-to-spacy-readable-word2vec-format-for-terms-teach-recipe/3386)._
