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:
authorphikoehn <pkoehn@inf.ed.ac.uk>2012-06-27 01:49:59 +0400
committerphikoehn <pkoehn@inf.ed.ac.uk>2012-06-27 01:49:59 +0400
commit6af0b62b8a1a7f0c00a700e064d7282cd746edbd (patch)
treee0b55c823e680f8178956cb771e7f5b00cfcff77 /scripts
parent65df3865814d8ac60c6dc32c2cd3cec709bf81c1 (diff)
bug fix
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tokenizer/escape-special-chars.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tokenizer/escape-special-chars.perl b/scripts/tokenizer/escape-special-chars.perl
index d0bf75796..89afdb0e3 100755
--- a/scripts/tokenizer/escape-special-chars.perl
+++ b/scripts/tokenizer/escape-special-chars.perl
@@ -22,6 +22,6 @@ while(<STDIN>) {
s/\]/\&#93;/g; # syntax non-terminal
# restore xml instructions
- s/\&lt;(\S+) translation="([^\"]+)"&gt; (.+?) &lt;\/(\S+)&gt;/\<$1 translation=\"$2\"> $3 <\/$4>/g;
+ s/\&lt;(\S+) translation=&quot;(.+?)&quot;&gt; (.+?) &lt;\/(\S+)&gt;/\<$1 translation=\"$2\"> $3 <\/$4>/g;
print $_."\n";
}