2 predict api in FastText.java, first one is thread-safe, second one is thread unsafe.
public List<Pair<Float, String>> predict(String[] lineTokens, int k)
public void predict(String[] lineTokens, int k, List<Pair<Float, String>> predictions) throws IOException
2 predict api in FastText.java, first one is thread-safe, second one is thread unsafe. public List<Pair<Float, String>> predict(String[] lineTokens, int k) public void predict(String[] lineTokens, int k, List<Pair<Float, String>> predictions) throws IOException