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

opennlp.tools.parser.Parse.equals doesn't guard against IndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: tools-1.5.2-incubating
    • Component/s: Parser
    • Labels:
      None

      Description

      New to the project, and I'm running into a problem with the equals method on a Parse. It seems like if the label, span, and text between two nodes are equivalent, it assumes the other Parse has at least as many parts as that one, and only checks until there (I think this is actually a correctness bug, since the other Parse could have additional parts.)

        Attachments

        1. add_parts_length_check.diff
          0.6 kB
          Ben Podgursky

          Activity

            People

            • Assignee:
              joern Jörn Kottmann
              Reporter:
              bpodgursky Ben Podgursky
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified