summaryrefslogtreecommitdiff
path: root/lowercase.perl
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-06-14 14:43:14 +0200
committerPatrick Simianer <p@simianer.de>2014-06-14 14:43:14 +0200
commit2783f837303ae07c4a1d676302bca779abbb1296 (patch)
treee388dda12d6d31285b32663b937a8d55ecc909c5 /lowercase.perl
parent85ea0fc5e3ae7ea646cc6e843d01939b4d8e4dbf (diff)
steal tokenizer from moses' scripts
Diffstat (limited to 'lowercase.perl')
-rwxr-xr-xlowercase.perl10
1 files changed, 10 insertions, 0 deletions
diff --git a/lowercase.perl b/lowercase.perl
new file mode 100755
index 0000000..c30e029
--- /dev/null
+++ b/lowercase.perl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+binmode(STDIN, ":utf8");
+binmode(STDOUT, ":utf8");
+
+while(<STDIN>) {
+ print lc($_);
+}