You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Ben Podgursky (Updated) (JIRA)" <ji...@apache.org> on 2011/10/24 11:25:32 UTC

[jira] [Updated] (OPENNLP-332) opennlp.tools.parser.Parse.equals doesn't guard against IndexOutOfBoundsException

     [ https://issues.apache.org/jira/browse/OPENNLP-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Podgursky updated OPENNLP-332:
----------------------------------

    Attachment: add_parts_length_check.diff

I think it's a pretty trivial fix, attached.
                
> opennlp.tools.parser.Parse.equals doesn't guard against IndexOutOfBoundsException
> ---------------------------------------------------------------------------------
>
>                 Key: OPENNLP-332
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-332
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Ben Podgursky
>         Attachments: add_parts_length_check.diff
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> 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.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira