Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4959

Incorrect return value from SimpleNaiveBayesClassifier.assignClass

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.1, 6.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Lucene Fields:
      New

      Description

      The local copy of BytesRef referenced by foundClass is affected by subsequent TermsEnum.iterator.next() calls as the shared BytesRef.bytes changes.

      If a term "test" gives a good match and a next term in the terms collection is "classification" with a lower match score then the return result will be "clas"

        Attachments

          Activity

            People

            • Assignee:
              jpountz Adrien Grand
              Reporter:
              alexeyline Alexey Kutin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: