From 85088dc6e09d4e91038aea46e8d20b5c34053b5f Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 27 Jan 2014 10:40:14 +0100 Subject: verbose parameter for mira (thanks Felix!) --- training/mira/mira.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'training/mira/mira.py') 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( -- cgit v1.2.3