summaryrefslogtreecommitdiff
path: root/corpus
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-11-06 00:02:38 -0500
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-11-06 00:02:38 -0500
commitd8b7a5fe01883818fe00d117b83852c6ea47747f (patch)
tree3a880bc7aaddfd8827267753ddd6b50becbcece6 /corpus
parent6bbf03ac46bd57400aa9e65a321a304a234af935 (diff)
add lowercase script
Diffstat (limited to 'corpus')
-rwxr-xr-xcorpus/lowercase.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/corpus/lowercase.pl b/corpus/lowercase.pl
new file mode 100755
index 00000000..688e493b
--- /dev/null
+++ b/corpus/lowercase.pl
@@ -0,0 +1,9 @@
+#!/usr/bin/perl -w
+use strict;
+binmode(STDIN,":utf8");
+binmode(STDOUT,":utf8");
+while(<>) {
+ $_ = lc $_;
+ print;
+}
+