Commit 381b30fa1e10a1d4f43b7122e1c097287f19f6b3
1 parent
ca6f763a
Added CoNLL score to output.
Showing
1 changed file
with
11 additions
and
1 deletions
src/main/java/pl/waw/ipipan/zil/core/scoreference/main/Main.java
@@ -89,11 +89,21 @@ public class Main { | @@ -89,11 +89,21 @@ public class Main { | ||
89 | scorers.add(new ScorerCeafm()); | 89 | scorers.add(new ScorerCeafm()); |
90 | scorers.add(new ScorerCeafe()); | 90 | scorers.add(new ScorerCeafe()); |
91 | scorers.add(new ScorerBlanc()); | 91 | scorers.add(new ScorerBlanc()); |
92 | - | 92 | + |
93 | + double coNLL = 0.0; | ||
93 | for (Scorer scorer : scorers) { | 94 | for (Scorer scorer : scorers) { |
94 | Result result = scorer.compare(ann); | 95 | Result result = scorer.compare(ann); |
95 | System.out.println(scorer.getName() + ":"); | 96 | System.out.println(scorer.getName() + ":"); |
96 | System.out.println(result); | 97 | System.out.println(result); |
98 | + if(scorer.getName().equals("ScorerMuc") || | ||
99 | + scorer.getName().equals("ScorerB3") || | ||
100 | + scorer.getName().equals("ScorerCeafe")) { | ||
101 | + coNLL += result.getF1(); | ||
102 | + } | ||
97 | } | 103 | } |
104 | + coNLL = coNLL/3; | ||
105 | + System.out.println(sepLine); | ||
106 | + System.out.println("CoNLL:\t" + coNLL); | ||
107 | + | ||
98 | } | 108 | } |
99 | } | 109 | } |