mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
commit
c0545019eb
@ -30,6 +30,8 @@ while(<SRC>) {
|
||||
elsif (/<seg/) {
|
||||
my $line = shift(@OUT);
|
||||
$line = "" if $line =~ /NO BEST TRANSLATION/;
|
||||
$line =~ s/</</g;
|
||||
$line =~ s/>/>/g;
|
||||
if (/<\/seg>/) {
|
||||
s/(<seg[^>]+> *).*(<\/seg>)/$1$line$2/i;
|
||||
$missing_end_seg = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user