diff options
author | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-11-06 00:02:38 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-11-06 00:02:38 -0500 |
commit | 552793bbd50f634ea755b84d47ddcc6cd4f158f2 (patch) | |
tree | c18838af2d48b856f72e78ae681777264a2659a8 /corpus | |
parent | c615c37501fa8576584a510a9d2bfe2fdd5bace7 (diff) |
add lowercase script
Diffstat (limited to 'corpus')
-rwxr-xr-x | corpus/lowercase.pl | 9 |
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; +} + |