rzo1 opened a new issue, #1464: URL: https://github.com/apache/opennlp/issues/1464
TermAnalyzer.Builder.stem(StemmerFactory) wraps the factory in an internal CachingStemmer that keeps a ThreadLocal delegate and LRU cache per thread, but TermAnalyzer neither exposes that stemmer nor offers clearThreadLocalState(), so callers on pooled threads cannot release this state. In addition, NormalizationProfile.matchingAnalyzer() builds a new analyzer, and thus a new CachingStemmer, on every call, which defeats the per-thread cache and multiplies the thread-local state. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
