Issue 12 in dkpro-statistics: Div-by-zero after upgrading from 1.0.2 to 2.0.0

2 katselukertaa
Siirry ensimmäiseen lukemattomaan viestiin

dkpro-st...@googlecode.com

lukematon,
10.5.2015 klo 2.52.1510.5.2015
vastaanottaja dkpro-stati...@googlegroups.com
Status: Accepted
Owner: richard.eckart
Labels: Type-Defect Priority-Medium

New issue 12 by richard.eckart: Div-by-zero after upgrading from 1.0.2 to
2.0.0
https://code.google.com/p/dkpro-statistics/issues/detail?id=12

After upgrading from the 1.0.2 TwoRaterAgreement to the 2.0.0
CohenAgreement, I get this error when passing in an empty study:

java.lang.ArithmeticException: Division undefined
at java.math.BigDecimal.divide(BigDecimal.java:1668)
at
de.tudarmstadt.ukp.dkpro.statistics.agreement.coding.CohenKappaAgreement.calculateExpectedAgreement(CohenKappaAgreement.java:68)
at
de.tudarmstadt.ukp.dkpro.statistics.agreement.AgreementMeasure.calculateAgreement(AgreementMeasure.java:42)
at
de.tudarmstadt.ukp.clarin.webanno.brat.curation.AgreementUtils.getTwoRaterAgreement(AgreementUtils.java:85)
at
de.tudarmstadt.ukp.clarin.webanno.brat.curation.CasDiff2Test.twoEmptyCasTest(CasDiff2Test.java:121)
...

Before, I got a NaN as agreement score.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Vastaa kaikille
Vastaa kirjoittajalle
Välitä
0 uutta viestiä