summaryrefslogtreecommitdiff
path: root/mteval/ns.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-09-04 13:24:26 -0400
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-09-04 13:24:26 -0400
commitc9804461426ad400e8189ff8217e93f13b199ded (patch)
tree9757f84c2f2190b64cdd350d8770651ab99e2a71 /mteval/ns.cc
parent71aa8f36e7a283d4e3ed8fb7484e4df966f4be4a (diff)
word error rate metric
Diffstat (limited to 'mteval/ns.cc')
-rw-r--r--mteval/ns.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/mteval/ns.cc b/mteval/ns.cc
index c1ea238b..075e0121 100644
--- a/mteval/ns.cc
+++ b/mteval/ns.cc
@@ -3,6 +3,7 @@
#include "ns_ext.h"
#include "ns_comb.h"
#include "ns_cer.h"
+#include "ns_wer.h"
#include "ns_ssk.h"
#include <cstdio>
@@ -285,6 +286,8 @@ EvaluationMetric* EvaluationMetric::Instance(const string& imetric_id) {
m = new CombinationMetric(metric_id);
} else if (metric_id == "CER") {
m = new CERMetric;
+ } else if (metric_id == "WER") {
+ m = new WERMetric;
} else {
cerr << "Implement please: " << metric_id << endl;
abort();