You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
fastText built on Windows 7 with MinGW-W64 gcc version 4.9.2 (x86_64-posix-seh-rev1) creates a model file that is not loaded correctly in test or predict modes.
Can be fixed by explicitly specifying std::ifstream ifs(filename, std::ifstream::binary); in FastText::loadModel and std::ofstream ofs(args_->output + ".bin", std::ofstream::binary); in FastText::saveModel in fasttext.cc
The text was updated successfully, but these errors were encountered:
S-Eugene
changed the title
Windows 7 MinGW-W64 build produces a corrupted the model file
Windows 7 MinGW-W64 build produces a corrupted model file
Sep 9, 2016
fastText built on Windows 7 with MinGW-W64 gcc version 4.9.2 (x86_64-posix-seh-rev1) creates a model file that is not loaded correctly in
test
orpredict
modes.Can be fixed by explicitly specifying
std::ifstream ifs(filename, std::ifstream::binary);
inFastText::loadModel
andstd::ofstream ofs(args_->output + ".bin", std::ofstream::binary);
inFastText::saveModel
in fasttext.ccThe text was updated successfully, but these errors were encountered: