diff options
author | mjdenkowski <michael.j.denkowski@gmail.com> | 2014-04-10 17:05:31 -0400 |
---|---|---|
committer | mjdenkowski <michael.j.denkowski@gmail.com> | 2014-04-10 17:05:31 -0400 |
commit | b09d05952ae0dd7713582ee0d7e46af551c28e61 (patch) | |
tree | 8225de995262ac0c6a428781c08984080c0021fa /realtime/rt/decoder.py | |
parent | 659ea32efb9ad0c1d8ad0d1dc4ead67be9859e6b (diff) |
rt.ini, hpyplm optional, specify metric
Diffstat (limited to 'realtime/rt/decoder.py')
-rw-r--r-- | realtime/rt/decoder.py | 2 |
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 |