The predict method returns negative scores. public List<Pair<Float, String>> predict(String[] lineTokens, int k) Tested the same model with C++ library and scores are all positive.