How to vectorize whole text using fasttext?
If you want to compute vector representations of sentences or paragraphs, please use:
$ ./fasttext print-sentence-vectors model.bin < text.txt
This assumes that the text.txt file contains the paragraphs that you want to get vectors for. The program will output one vector representation per line in the file.
This has been clearly mentioned in the README of fasttext repo. https://github.com/facebookresearch/fastText