You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Niels Schuette (JIRA)" <ji...@apache.org> on 2017/12/15 12:09:00 UTC

[jira] [Created] (OPENNLP-1168) Resolved concurrency issue in POS tagger.

Niels Schuette created OPENNLP-1168:
---------------------------------------

             Summary: Resolved concurrency issue in POS tagger.
                 Key: OPENNLP-1168
                 URL: https://issues.apache.org/jira/browse/OPENNLP-1168
             Project: OpenNLP
          Issue Type: Improvement
          Components: POS Tagger
    Affects Versions: 1.8.4
            Reporter: Niels Schuette
             Fix For: 1.8.4


We encountered a concurrency issue in the pos tagger module in the class DefaultPOSContextGenerator.

The issue is demonstrated in DefaultPOSContextGeneratorTest.java. The test "multithreading()" consistently fails on our system with the current code if the number of threads (NUMBER_OF_THREADS) is set to 10. If the number of threads is set to 1 (effectively disabling multithreading), the test consistently passes.

We resolved the issue by removing a field in DefaultPOSContextGenerator.java.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)