summaryrefslogtreecommitdiff
path: root/training/mira
diff options
context:
space:
mode:
authorarmatthews <armatthe@cmu.edu>2016-01-17 04:03:35 -0500
committerarmatthews <armatthe@cmu.edu>2016-01-17 04:03:35 -0500
commitee4f3c5581e43510d98de1274c6c1c2984c87faf (patch)
tree76c3528886000446cb96bf6eab1cf4a5193345e1 /training/mira
parentc643ef361eea7ce43b4fc7a6e2461a01b3d0c3c6 (diff)
bug fixes when training with WER
Diffstat (limited to 'training/mira')
-rw-r--r--training/mira/kbest_cut_mira.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/mira/kbest_cut_mira.cc b/training/mira/kbest_cut_mira.cc
index 724b1853..5d8385c2 100644
--- a/training/mira/kbest_cut_mira.cc
+++ b/training/mira/kbest_cut_mira.cc
@@ -645,7 +645,7 @@ int main(int argc, char** argv) {
ScoreType type = ScoreTypeFromString(metric_name);
//establish metric used for tuning
- if (type == TER) {
+ if (type == TER || type == WER) {
invert_score = true;
} else {
invert_score = false;