summaryrefslogtreecommitdiff
path: root/gi/pipeline/local-gi-pipeline.pl
diff options
context:
space:
mode:
authortrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-22 19:05:54 +0000
committertrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-22 19:05:54 +0000
commit0732fff632e792ae2268e9ef1c9c230624098eb7 (patch)
tree344784ef25043f34bf6d9fe74b2579ade072a890 /gi/pipeline/local-gi-pipeline.pl
parentd6cdcf776b2f4541a7ee80c1a489d4a0fee41be3 (diff)
Added option to apply tags to source-side
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@367 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pipeline/local-gi-pipeline.pl')
-rwxr-xr-xgi/pipeline/local-gi-pipeline.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/gi/pipeline/local-gi-pipeline.pl b/gi/pipeline/local-gi-pipeline.pl
index 96df34ea..f72637af 100755
--- a/gi/pipeline/local-gi-pipeline.pl
+++ b/gi/pipeline/local-gi-pipeline.pl
@@ -183,7 +183,9 @@ sub setup_data {
copy($CORPUS, $CORPUS_LEX);
if ($TAGGED_CORPUS) {
die "Can't find $TAGGED_CORPUS" unless -f $TAGGED_CORPUS;
- my $cmd="$PATCH_CORPUS $TAGGED_CORPUS $CORPUS_LEX > $CORPUS_CLUSTER";
+ my $opt="";
+ $opt = "-s" if ($LANGUAGE eq "source");
+ my $cmd="$PATCH_CORPUS $opt $TAGGED_CORPUS $CORPUS_LEX > $CORPUS_CLUSTER";
safesystem($cmd) or die "Failed to extract contexts.";
} else {
symlink($LEX_NAME, $CORPUS_CLUSTER);