facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.83k stars 4.71k forks source link

Not updated path in documentation #1283

Closed alexbakharew closed 1 year ago

alexbakharew commented 2 years ago

https://fasttext.cc/docs/en/supervised-tutorial.html#our-first-classifier

In the example of how to create first classifier in command line there is mentioned following command: ./fasttext supervised -input cooking.train -output model_cooking

The execution leads to following error: terminate called after throwing an instance of 'std::invalid_argument' what(): cooking.train cannot be opened for training! Aborted (core dumped)

This is due wrong path of input files. The correct one is the following: ./fasttext supervised -input cooking.stackexchange.txt -output model_cooking