diff options
author | Patrick Simianer <p@simianer.de> | 2014-01-27 10:39:36 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-01-27 10:39:36 +0100 |
commit | 64e135092c140310345bb7fcf3dffc8072e652d3 (patch) | |
tree | 127636a2820fb9a7a522157ea4de55cdc0c3c0bd /corpus/support/fix-eos.pl | |
parent | 58be95f557d2f6a006cc98a23de98125e6b83a32 (diff) | |
parent | 5ab6eb44d67a48ea5b366d8b2878f3da7ef960e4 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'corpus/support/fix-eos.pl')
-rwxr-xr-x | corpus/support/fix-eos.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/corpus/support/fix-eos.pl b/corpus/support/fix-eos.pl new file mode 100755 index 00000000..584f8b46 --- /dev/null +++ b/corpus/support/fix-eos.pl @@ -0,0 +1,10 @@ +#!/usr/bin/perl -w +use strict; +use utf8; + +binmode(STDIN, ":utf8"); +binmode(STDOUT, ":utf8"); +while(<STDIN>) { + s/(\p{Devanagari}{2}[A-Za-z0-9! ,.\@\p{Devanagari}]+?)\s+(\.)(\s*$|\s+\|\|\|)/$1 \x{0964}$3/s; + print; +} |