diff options
author | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-07-22 12:32:09 +0400 |
---|---|---|
committer | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-07-22 12:32:09 +0400 |
commit | 6a27dc4f17e0e0af785611470196f91f38e80c74 (patch) | |
tree | 3ee909442f5ef9a68847228ff563d26b852f4947 /scripts/generic | |
parent | 1b9d99a5ad680c36229e0b69385c3d7e511d87e9 (diff) |
example of how to run
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4084 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'scripts/generic')
-rwxr-xr-x | scripts/generic/extract-parallel.perl | 10 | ||||
-rwxr-xr-x | scripts/generic/giza-parallel.perl | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/scripts/generic/extract-parallel.perl b/scripts/generic/extract-parallel.perl index 415eb0ae6..cf138a3f8 100755 --- a/scripts/generic/extract-parallel.perl +++ b/scripts/generic/extract-parallel.perl @@ -70,6 +70,10 @@ for (my $i = 0; $i < $numParallel; ++$i) print $cmd; `$cmd`; + $cmd = "rm -f $TMPDIR/extract.$numStr $TMPDIR/extract.$numStr.inv $TMPDIR/extract.$numStr.o \n"; + print $cmd; + `$cmd`; + exit(); } else @@ -112,9 +116,9 @@ print $extractOrderingCmd; `$extractInvCmd`; `$extractOrderingCmd`; -$cmd = "rm -rf $TMPDIR \n"; -print $cmd; -`$cmd`; +#$cmd = "rm -rf $TMPDIR \n"; +#print $cmd; +#`$cmd`; print "Finished ".localtime() ."\n"; diff --git a/scripts/generic/giza-parallel.perl b/scripts/generic/giza-parallel.perl index 80ee9fa47..60059b46a 100755 --- a/scripts/generic/giza-parallel.perl +++ b/scripts/generic/giza-parallel.perl @@ -1,7 +1,8 @@ #! /usr/bin/perl # example -# +# ~/giza-parallel.perl 10 split ~/workspace/sourceforge/trunk/scripts/training/train-model.perl ar en train align + use strict; use File::Basename; |