diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-07 21:43:51 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-07 21:43:51 +0400 |
commit | 66800a39079764a4b31ec2531956d4522a96d014 (patch) | |
tree | 9a54b42dfc59d73eff88ff49df7925a15fc40330 /scripts/ems | |
parent | 842d1cb6fdc39145fa2ea44e9345c12b92982dc5 (diff) |
various filtered moses.ini work now
Diffstat (limited to 'scripts/ems')
-rwxr-xr-x | scripts/ems/experiment.perl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/ems/experiment.perl b/scripts/ems/experiment.perl index 244c5803d..d5e3a6fe9 100755 --- a/scripts/ems/experiment.perl +++ b/scripts/ems/experiment.perl @@ -2248,6 +2248,10 @@ sub define_tuningevaluation_filter { if ($sa_exec_dir) { # suffix array $cmd .= "$scripts/training/wrappers/adam-suffix-array/suffix-array-extract.sh $sa_exec_dir $phrase_translation_table $input_filter $filter_dir \n"; + + my $escaped_filter_dir = $filter_dir; + $escaped_filter_dir =~ s/\//\\\\\//g; + $cmd .= "cat $config | sed s/10\\ 0\\ 0\\ 7.*/10\\ 0\\ 0\\ 7\\ $escaped_filter_dir/g > $filter_dir/moses.ini \n"; } else { # normal phrase table |