ivanhk / fastText_java

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

when I use the code as an online service, it turns out it's not thread safe, is it ? #25

Closed zhouxinhit closed 7 years ago

ivanhk commented 7 years ago

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

zhouxinhit commented 7 years ago

thank you