You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Joern Kottmann (Commented) (JIRA)" <ji...@apache.org> on 2011/11/01 00:49:32 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13140695#comment-13140695 ]
Joern Kottmann commented on OPENNLP-332:
----------------------------------------
Patch is applied.
> 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
> Assignee: Joern Kottmann
> Fix For: tools-1.5.2-incubating
>
> 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