ivanhk / fastText_java

Java port of c++ version of facebook fasttext
Other
122 stars 80 forks source link

can a model created by fastText C be used in FastText Java and vice versa ? #11

Closed lefromage closed 7 years ago

lefromage commented 7 years ago

is the compatibility of the bin models between C and Java planned or even feasible ?

The models generated seem to be readable in both C and Java fastText.

The model.bin generated from fastText C gives much lower Recall when used with fastText Java.

Thanks

ivanhk commented 7 years ago

The model generated from Java and cpp is compatible. I just tested, using Java model in cpp fasttext, give almost same result as cpp model.

The lower recall in fastText Java using cpp model, due to different sort algorithm in java/cpp. The order is different if the score of item is the same.