summaryrefslogtreecommitdiff
path: root/training/mira/mira.py
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-01-27 10:40:14 +0100
committerPatrick Simianer <p@simianer.de>2014-01-27 10:40:14 +0100
commit85088dc6e09d4e91038aea46e8d20b5c34053b5f (patch)
tree33c4e4c5b7f2cea67b8ca9c86f3cc29468d6eab3 /training/mira/mira.py
parent64e135092c140310345bb7fcf3dffc8072e652d3 (diff)
verbose parameter for mira (thanks Felix!)
Diffstat (limited to 'training/mira/mira.py')
-rwxr-xr-xtraining/mira/mira.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/training/mira/mira.py b/training/mira/mira.py
index d5a1d9f8..1555cbb4 100755
--- a/training/mira/mira.py
+++ b/training/mira/mira.py
@@ -143,6 +143,8 @@ def main():
parser.add_argument('--pass-suffix',
help='multipass decoding iteration. see documentation '
'at www.cdec-decoder.org for more information')
+ parser.add_argument('-v', '--verbose',
+ help='more verbose mira optimizers')
args = parser.parse_args()
args.metric = args.metric.upper()
@@ -352,6 +354,8 @@ def optimize(args, script_dir, dev_size):
decoder_cmd += ' -a'
if not args.no_pseudo:
decoder_cmd += ' -e'
+ if args.verbose:
+ decoder_cmd += ' -v'
#always use fork
parallel_cmd = '{0} --use-fork -e {1} -j {2} --'.format(