I’m trying to load in Facebook’s pretrained ‘wiki.en.bin’ file using deeplearning4j’s FastText class. When doing so, I’m being hit with:
Exception in thread "main" java.lang.IllegalArgumentException: Model file's format is not compatible with this JFastText version!
However, according to this resolved topic, this error should only be thrown when trying to load ‘.vec’ files. As I’m trying to load in the binary file, I’m not sure why this exception is being thrown. Any help would be greatly appreciated!
My code looks like this:
private File wiki_file = new File(“path/to/wiki.en.bin”);
private FastText wiki_model = new FastText(wiki_file);