[
https://issues.apache.org/jira/browse/OPENNLP-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127794#comment-17127794
]
ASF GitHub Bot commented on OPENNLP-1285:
-----------------------------------------
jzonthemtn commented on a change in pull request #377:
URL: https://github.com/apache/opennlp/pull/377#discussion_r436409417
##########
File path:
opennlp-tools/src/test/java/opennlp/tools/eval/SourceForgeModelEval.java
##########
@@ -410,7 +410,7 @@ public void evalParserModel() throws Exception {
}
}
- Assert.assertEquals(new
BigInteger("312218841713337505306598301082074515847"),
+ Assert.assertEquals(new
BigInteger("68039262350771988792233880373220954061"),
Review comment:
@kinow This number changed a lot because it is an MD5 hash value. Looks
like the test is using the parser chunking model to parse the
`leipzig/eng_news_2010_300K-sentences.txt` input file. At the end it computes
the hash of the parse string and compares it to an expected value.
`StrictMath` must be causing a difference that's visible in the hash value.
I'm guessing it's probably like those other tests where it's a small rounding
difference somewhere.
I did verify that `68039262350771988792233880373220954061` is the same value
on Java 8 and Java 11.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Address failing regression tests on Java 11
> -------------------------------------------
>
> Key: OPENNLP-1285
> URL: https://issues.apache.org/jira/browse/OPENNLP-1285
> Project: OpenNLP
> Issue Type: Task
> Components: Build, Packaging and Test
> Affects Versions: 1.9.2, 1.9.3
> Reporter: Jeffrey T. Zemerick
> Assignee: Jeffrey T. Zemerick
> Priority: Major
> Attachments: java11, java8
>
>
> When executing the regression tests (mvn test
> -DOPENNLP_DATA_DIR=/path/to/opennlp-test-data/ -Peval-tests) on Java 11, a
> few tests fail:
> {quote}Failed tests:
> ArvoresDeitadasEval.evalPortugueseChunkerQn:212->chunkerCrossEval:141
> expected:<0.9648211936491359> but was:<0.9650171248355313>
> Conll02NameFinderEval.evalSpanishMiscMaxentQn:505->eval:83
> expected:<0.470219435736677> but was:<0.4733542319749216>
> Conll02NameFinderEval.evalSpanishOrganizationMaxentQn:421->eval:83
> expected:<0.682961897915169> but was:<0.67005444646098>
> ConllXPosTaggerEval.evalSwedishMaxentQn:208->eval:80
> expected:<0.9347595473833098> but was:<0.9349363507779349>
> {quote}
> Environment details:
> {quote}Apache Maven 3.6.0
> Maven home: /usr/share/maven
> Java version: 11.0.4, vendor: Ubuntu, runtime:
> /usr/lib/jvm/java-11-openjdk-amd64
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: "unix"
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)