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:
authoramittai <amittai@foo.bar>2013-02-26 23:19:33 +0400
committeramittai <amittai@foo.bar>2013-02-26 23:19:33 +0400
commit1fb51dc67484967053fcb7c78d379c7ca00f95e5 (patch)
tree86de79c9667f5b9ec2c2bb466b65ae58dc2db3f4 /scripts/training/clean-corpus-n.perl
parent8b6e98c633695f05190f66af644d9fc9295a52d9 (diff)
use 'gunzip -c' instead of 'zcat' for better cross-platform compatibility
zcat is identical to "gunzip -c", but Mac OS X doesn't ship with zcat.
Diffstat (limited to 'scripts/training/clean-corpus-n.perl')
-rwxr-xr-xscripts/training/clean-corpus-n.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/training/clean-corpus-n.perl b/scripts/training/clean-corpus-n.perl
index bea32052a..dad339070 100755
--- a/scripts/training/clean-corpus-n.perl
+++ b/scripts/training/clean-corpus-n.perl
@@ -47,7 +47,7 @@ my $l1input = "$corpus.$l1";
if (-e $l1input) {
$opn = $l1input;
} elsif (-e $l1input.".gz") {
- $opn = "zcat $l1input.gz |";
+ $opn = "gunzip -c $l1input.gz |";
} else {
die "Error: $l1input does not exist";
}
@@ -57,7 +57,7 @@ my $l2input = "$corpus.$l2";
if (-e $l2input) {
$opn = $l2input;
} elsif (-e $l2input.".gz") {
- $opn = "zcat $l2input.gz |";
+ $opn = "gunzip -c $l2input.gz |";
} else {
die "Error: $l2input does not exist";
}