You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Michael Lambert (JIRA)" <ji...@apache.org> on 2013/05/02 16:02:16 UTC

[jira] [Created] (OPENNLP-577) GisModel eval ignores presence of the first feature

Michael Lambert created OPENNLP-577:
---------------------------------------

             Summary: GisModel eval ignores presence of the first feature
                 Key: OPENNLP-577
                 URL: https://issues.apache.org/jira/browse/OPENNLP-577
             Project: OpenNLP
          Issue Type: Bug
          Components: Maxent
    Affects Versions: maxent-3.0.3
            Reporter: Michael Lambert


On line 181 of GISModel.java in the eval function, there is a check whose intention seems to be to ignore any incoming predicates that have a value of zero.  Instead, it ignores an incoming predicates that have a parameter index of zero:

The line in question:

    if (context[ci] >= 0) {

I believe that this should be:

    if (values[ci] >= 0) {




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira