dkpro / dkpro-statistics

DKPro Statistics
https://dkpro.github.io/dkpro-statistics
Apache License 2.0
12 stars 4 forks source link

Raise exception if trying to ad incomplete AnnotationItems #11

Closed chmeyer closed 9 years ago

chmeyer commented 9 years ago

Originally reported on Google Code with ID 11

Currently, it is possible to add incomplete AnnotationItem:s to a CodingStudy. That
is, annotation items containing less AnnotationUnit:s than the study's number of raters.
Raise exceptions for the marked cases of:

  CodingAnnotationStudy study = new CodingAnnotationStudy(3);
  study.addItem("B", "A"); // Should raise exception b/c item count != 3
  study.addItem("A", "B", "C"); // ok
  study.addItem(new String[]{"A", "B", "C"}); // Should raise exception b/c item count
!= 3
  study.addItemAsArray(new String[]{"A", "B", "C"}); // ok

Reported by chmeyer.de on 2014-11-28 15:02:54

chmeyer commented 9 years ago
r56

Reported by chmeyer.de on 2014-12-05 17:28:08