mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 23:10:31 +03:00
escape ampersands
This commit is contained in:
parent
d90a8df862
commit
47915b561f
@ -32,6 +32,7 @@ while(<SRC>) {
|
||||
$line = "" if $line =~ /NO BEST TRANSLATION/;
|
||||
$line =~ s/</</g;
|
||||
$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