public class PercentageInterraterAgreement extends Object
Constructor and Description |
---|
PercentageInterraterAgreement() |
Modifier and Type | Method and Description |
---|---|
static <K,A> double |
calculate(Map<K,A> rater1,
Map<K,A> rater2)
The input should be a
Map for each rater where the keys represent
all the subjects that were rated by the raters and the values represent
the annotations given by the raters. |
public PercentageInterraterAgreement()
public static <K,A> double calculate(Map<K,A> rater1, Map<K,A> rater2)
Map
for each rater where the keys represent
all the subjects that were rated by the raters and the values represent
the annotations given by the raters. Agreement between the raters is
determined by Object.equals(Object)
for the INSTANCE type. Annotations
for subjects which are not in both sets are ignored.rater1
- The annotations from rater 1rater2
- The annotations from rater 2