Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-04-19 18:03:34 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-04-19 18:03:34 +0400
commitb1da4dbe0e03ae85664ac5821d16760a25c615d9 (patch)
tree1481ad4807ffa4834c2860ae257900f96b64d9df /scripts/ems
parentcc707f76a9835be20f79b1d5a5e92796a10cef57 (diff)
parent7677832655bfa3cc19a932e716d78546491fa5fa (diff)
merged
Diffstat (limited to 'scripts/ems')
-rw-r--r--scripts/ems/experiment.meta2
-rwxr-xr-xscripts/ems/support/remove-segmentation-markup.perl (renamed from scripts/ems/support/remove-segmenation-markup.perl)2
2 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ems/experiment.meta b/scripts/ems/experiment.meta
index 89c630223..df2c4578e 100644
--- a/scripts/ems/experiment.meta
+++ b/scripts/ems/experiment.meta
@@ -956,7 +956,7 @@ remove-markup
default-name: evaluation/cleaned
pass-if: TRAINING:hierarchical-rule-set
pass-unless: report-segmentation
- template: $moses-script-dir/ems/support/remove-segmenation-markup.perl < IN > OUT
+ template: $moses-script-dir/ems/support/remove-segmentation-markup.perl < IN > OUT
recase-output
in: cleaned-output RECASING:recase-config
out: recased-output
diff --git a/scripts/ems/support/remove-segmenation-markup.perl b/scripts/ems/support/remove-segmentation-markup.perl
index f01a419bc..18918c905 100755
--- a/scripts/ems/support/remove-segmenation-markup.perl
+++ b/scripts/ems/support/remove-segmentation-markup.perl
@@ -2,6 +2,8 @@
use strict;
+$|++;
+
while(<STDIN>) {
s/ \|\d+\-\d+\| / /g;
s/ \|\d+\-\d+\|$//;