jzonthemtn commented on a change in pull request #385:
URL: https://github.com/apache/opennlp/pull/385#discussion_r544336034
##########
File path:
opennlp-morfologik-addon/src/main/java/opennlp/morfologik/lemmatizer/MorfologikLemmatizer.java
##########
@@ -47,7 +47,7 @@ public MorfologikLemmatizer(Dictionary dictionary) throws
IllegalArgumentExcepti
dictLookup = new DictionaryLookup(dictionary);
}
- private List<String> lemmatize(String word, String postag) {
+ private synchronized List<String> lemmatize(String word, String postag) {
Review comment:
I tend to think predictability is more important than impact to
performance. A wrong answer isn't helpful no matter how fast it gets returned.
So I would favor the `synchronized` as long as we're sure it's the best
implementation choice.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]