mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
exit on error
This commit is contained in:
parent
9d09b4a6e6
commit
f2d3052627
@ -103,6 +103,7 @@ while(my $chunkLine = <CHUNKED>) {
|
||||
if (scalar(@chunkToks) != 3) {
|
||||
# parse error
|
||||
print STDERR "CHUNK LINES SHOULD BE 3 TOKS\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ($wordPos >= $numWords) {
|
||||
@ -125,6 +126,7 @@ while(my $chunkLine = <CHUNKED>) {
|
||||
if ($chunkToks[0] ne $words[$wordPos]) {
|
||||
# word in chunk input and sentence should match
|
||||
print STDERR "NOT EQUAL:" .$chunkToks[0] ." != " .$words[$wordPos] ."\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
print $chunkToks[0] . " ";
|
||||
|
Loading…
Reference in New Issue
Block a user