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