I tried to load training file using
Fasttext jft =new Fasttext();
jft.load("/the/path/to/file");
but got
Model file cannot be opened for loading!
I reviewed the core of code
void FastText::loadModel(const std::string& filename) {
std::ifstream ifs(filename, std::ifstream::binary);
if (!ifs.is_open()) {
std::cerr << "Model file cannot be opened for loading!" << std::endl;
exit(EXIT_FAILURE);
Although the path is true , it couldn't be recognized . what are the probabilities that make file not be open?