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

lemmatizer decodeLemmas method bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.8.4, 1.9.0, 1.9.1
    • None
    • Lemmatizer
    • None
    • Important

    Description

      I got the following permutaion for the text "Obstruction":
      R10ojR9baR8smD7tD6rD5uD4cD3tD2iD1oD0n

      When i checked the method decodeShortestEditScript in class opennlp.tools.util.StringUti, which is used to decode the word with permutations.
      I got the permIndex variable initialized to 0 and increasing by one to get next permutation letter,
      which is gone wrong when the permutation letter has more than 1 digits e.g. in the given permutation R10 mear R and 10, but because of permIndex increating by one, so it is considering as R and 1.

      Attachments

        1. bugshot.png
          176 kB
          Sachin Kumar Saini

        Activity

          People

            Unassigned Unassigned
            sach_in Sachin Kumar Saini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: