summaryrefslogtreecommitdiff
path: root/realtime/rt/decoder.py
diff options
context:
space:
mode:
authormjdenkowski <michael.j.denkowski@gmail.com>2014-04-10 17:05:31 -0400
committermjdenkowski <michael.j.denkowski@gmail.com>2014-04-10 17:05:31 -0400
commitb09d05952ae0dd7713582ee0d7e46af551c28e61 (patch)
tree8225de995262ac0c6a428781c08984080c0021fa /realtime/rt/decoder.py
parent659ea32efb9ad0c1d8ad0d1dc4ead67be9859e6b (diff)
rt.ini, hpyplm optional, specify metric
Diffstat (limited to 'realtime/rt/decoder.py')
-rw-r--r--realtime/rt/decoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/realtime/rt/decoder.py b/realtime/rt/decoder.py
index 5082911d..1bdd3f1f 100644
--- a/realtime/rt/decoder.py
+++ b/realtime/rt/decoder.py
@@ -38,7 +38,7 @@ class CdecDecoder(Decoder):
class MIRADecoder(Decoder):
- def __init__(self, config, weights, metric='bleu'):
+ def __init__(self, config, weights, metric='ibm_bleu'):
cdec_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
mira = os.path.join(cdec_root, 'training', 'mira', 'kbest_cut_mira')
# optimizer=2 step=0.001 best=500, k=500, uniq, stream, metric