Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2016-04-23 00:15:36 +0300
committerMarcin Junczys-Dowmunt <junczys@amu.edu.pl>2016-04-23 00:15:36 +0300
commit5744e10989ba983197088242d3819c206fa023f5 (patch)
treea9e21c29534cc48c36aa47aa056627cdddab3923 /scripts/rescore.pl
parentbb4d5aa544ac9ae1cfd002a71458e05a7e6f2707 (diff)
fixed regexp again
Diffstat (limited to 'scripts/rescore.pl')
-rwxr-xr-xscripts/rescore.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rescore.pl b/scripts/rescore.pl
index c32d16c7..05213977 100755
--- a/scripts/rescore.pl
+++ b/scripts/rescore.pl
@@ -43,8 +43,8 @@ while (<W>) {
}
close(W);
-my $PATTERN1 = quotemeta(join(" ", map { "\\b$_= \\S+" } @FEATURES));
-my $PATTERN2 = quotemeta("\\b$BEFORE \\S+");
+my $PATTERN1 = join(" ", map { "\\b$_= \\S+" } @FEATURES);
+my $PATTERN2 = "\\b$BEFORE \\S+";
print STDERR $PATTERN1, "\n";
print STDERR $PATTERN2, "\n";