by sorenvrist · 9y ago · 0 comments
./fastText predict wiki.da.bin fileWithASingleLine 1
The .bin models can be used to generate word vectors for out-of-vocabulary words:
> echo 'list of words' | ./fasttext print-vectors model.bin
or > ./fasttext print-vectors model.bin < queries.txt
where queries.txt is a list of words you want a vector representation for.