mosesdecoder/scripts/Transliteration
Phil Williams c83628a92b Fix errors from multiline `` commands in transliteration Perl scripts
Replace the backslash-newline sequence with backslash-backslash-newline in
multiline backquote command strings.  i.e. replace expressions like this:

  `some-command \
    -option1 \
    -option2`;

with ones like this

  `some-command \\
    -option1 \\
    -option2`;

If I understand this right, the shell converts a backslash-newline sequence
to an empty string (i.e. it discards it), but Perl does not.  Unless the
backslash itself is escaped, using a backslash-newline in a Perl command
string results in errors in most instances.  By escaping the backslash, it
gets passed through to the shell where it is interpreted as intended.
2015-07-16 14:54:00 +01:00
..
clean.pl Add license notices to scripts. 2015-05-29 18:30:26 +07:00
corpusCreator.pl Add license notices to scripts. 2015-05-29 18:30:26 +07:00
in-decoding-transliteration.pl Lint-fixing binge. 2015-06-02 16:02:39 +07:00
post-decoding-transliteration.pl Fix errors from multiline `` commands in transliteration Perl scripts 2015-07-16 14:54:00 +01:00
prepare-transliteration-phrase-table.pl Fix errors from multiline `` commands in transliteration Perl scripts 2015-07-16 14:54:00 +01:00
threshold.pl Add license notices to scripts. 2015-05-29 18:30:26 +07:00
train-transliteration-module.pl Fix errors from multiline `` commands in transliteration Perl scripts 2015-07-16 14:54:00 +01:00