* treat SxE and absolute numbers with equal weight and defer absolute re:numeric decision to the NumericSequence metric

This commit is contained in:
Reinhard Pointner 2013-03-04 07:35:20 +00:00
parent cd41d45fd2
commit 3864ee5b86
1 changed files with 3 additions and 3 deletions

View File

@ -275,13 +275,13 @@ public enum EpisodeMetrics implements SimilarityMetric {
String[] f2 = fields(o2);
// match all fields and average similarity
float sum = 0;
float max = 0;
for (String s1 : f1) {
for (String s2 : f2) {
sum += super.getSimilarity(s1, s2);
max = max(super.getSimilarity(s1, s2), max);
}
}
return sum / (f1.length * f2.length);
return max;
}