I just tested this repo and the official one to predict a number of samples(with the same model trained by official code, in format of ftz).
c++
fasttext predict-prob test-example.txt
java(this) - api call
(equal represents the label is same, discard the probability)
all samples: 21513
equal: 19236
not-equal: 2219
null(in this repo): 58
java-cmd(this)
java -jar jfasttext-0.4-jar-with-dependencies.jar predict-prob test-example.txt
all samples: 21513
equal: 18825
not-equal: 2688
so, what's wrong?
Another thing: the prediction of java-cmd is unstable , changing every time.