facebookresearch / fastText

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

model can't be loaded by fasttext(python ) while the model trained by fasttext(cmake/make) #1320

Open ucas010 opened 1 year ago

ucas010 commented 1 year ago

hi,dear

>>> model_dim16=fasttext.load_model("fast3G.model.bin")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/lib/python3.9/site-packages/fasttext/FastText.py", line 436, in load_model
    return _FastText(model_path=path)
  File "/data/lib/python3.9/site-packages/fasttext/FastText.py", line 94, in __init__
    self.f.loadModel(model_path)
ValueError: fast3G.model.bin cannot be opened for loading!

the fast3G.model.bin is trained by fasttext (cmake), could you pls help me ?