fastText文本分类cheatsheet
id: cheatsheet title: Cheatsheet Word representation learning In order to learn word vectors do: $ ./fasttext skipgram -input data.txt -output model Obtaining word vectors Print word vectors for a text file queries.txt containing words. $ ./fasttext print-word-vectors model.bin < queries.txt Text classification In order to train a text classifier do: $ ./fasttext supervised -input train.txt -output model Once the model was trained, you can evaluate it by computing the precision and recall at k (P@k and R@k) on a test set using: $ ./fasttext test model.bin test.txt 1 In order to obtain the k