-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to load .ftz model and getting "wrong file format" #36
Comments
Which version of fastText do you use to load this model? And which version did you use to train the model? |
version 0.3 the model itself i didnt trained wit JFastText with but with fasttext. i checked the model on fasttext and it is working ok but for some resone it cant be loaded on JFastText. the only thing i can think on is that this model is very large (693 MB), might be an issue with loading this size? |
fasttext version fastText-0.1.0 |
Could you try to use https://github.com/lidalei/JFastText? If it did not work, I am afraid you have to re-train your model. |
what's the difference between 0.3.0 and this version (https://github.com/lidalei/JFastText) ? Best Regards |
https://github.com/lidalei/JFastText uses the newest version fastText. So if you encounter this error, you should upgrade your fastText and re-train your models. |
@lidalei can you please advise
import com.github.jfasttext.JFastText;
public class ApiExample {
public static void main(String[] args) {
JFastText jft = new JFastText();
}
Output:
Model file has wrong file format!
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: