facebookresearch / fastText

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

Trained Model file is not universal on Linux and Windows with python #837

Open Eadon999 opened 5 years ago

Eadon999 commented 5 years ago

I've trained the model on Linux with python, but can't use the model file on Windows. How could to achieve universal model file both on Linux and Windows?

Waiting for your response! Thanks!

Celebio commented 5 years ago

Hi @Eadon999 , The model files should be OS agnostic given they have the same FASTTEXT_VERSION. Is it possible to generate a model with both and send them to us so we can have a look?

Regards, Onur

Eadon999 commented 5 years ago

Hi @Eadon999 , The model files should be OS agnostic given they have the same FASTTEXT_VERSION. Is it possible to generate a model with both and send them to us so we can have a look?

Regards, Onur

How could I send it to you? My training data are Chinese text. Load model successfully, but the result of predictor is an empty list and the object of the model.labels is also an empty list. Is it caused by character encoding possibly?