Skip to content

Commit 1f6d1b1

Browse files
committed
Fix confusion: loop over all annotations
1 parent ff618e3 commit 1f6d1b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/kotlin/org/ivdnt/galahad/evaluation/confusion/DocumentConfusion.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DocumentConfusion(
1616
fun create(layerComparison: LayerComparison): DocumentConfusion = DocumentConfusion(
1717
buildMap<Annotation, MutableMap<String, MutableMap<String, EvaluationEntry>>> {
1818
layerComparison.matches.forEach { termComparison ->
19-
termComparison.ref.annotations.filter { it.key in ANNOTATIONS }.forEach { (annotation, _) ->
19+
ANNOTATIONS.forEach { annotation ->
2020
val reference = termComparison.ref.annotationHeadOrMissing(annotation)
2121
val hypothesis = termComparison.hyp.annotationHeadOrMissing(annotation)
2222
val entry = EvaluationEntry(1, mutableListOf(termComparison))

0 commit comments

Comments
 (0)