Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1168

Resolved concurrency issue in POS tagger.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.4
    • Fix Version/s: 1.8.4
    • Component/s: POS Tagger
    • Labels:
    • Flags:
      Patch

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                NielsS Niels Schuette
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: