Commit 35ed780d authored by Duc Cao's avatar Duc Cao

Fix inconsistent output when running in multi-threaded mode

parent d12582ac
......@@ -115,7 +115,7 @@ public class FrenchLemmatizer {
return match;
}
public String getLemma(String token, String pos) {
public synchronized String getLemma(String token, String pos) {
String generalType = posMap.get(pos);
// System.out.println(generalType + " " + token);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment