From 5dfecf3ac4a0755255bb806f7d556f1f8e7dbc38 Mon Sep 17 00:00:00 2001
From: Chris Dyer <cdyer@allegro.clab.cs.cmu.edu>
Date: Thu, 4 Sep 2014 13:24:26 -0400
Subject: word error rate metric

---
 mteval/ns.cc | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'mteval/ns.cc')

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();
-- 
cgit v1.2.3