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

lemmatizer decodeLemmas method bug

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sach_in Sachin Kumar Saini

            Dates

              Created:
              Updated:

              Slack

                Issue deployment