diff options
author | Chris Dyer <cdyer@allegro.clab.cs.cmu.edu> | 2012-11-14 20:33:51 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@allegro.clab.cs.cmu.edu> | 2012-11-14 20:33:51 -0500 |
commit | 7928695272b000de7142b91e05959a8fab6b1d2a (patch) | |
tree | 59fdff666e938512a34f772f04a1a247704a246f /corpus/tokenize-anything.sh | |
parent | 41ec6ee5146c92cdb1c279267a5058fe42f8a644 (diff) |
major mert clean up, stuff for simple system demo
Diffstat (limited to 'corpus/tokenize-anything.sh')
-rwxr-xr-x | corpus/tokenize-anything.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/corpus/tokenize-anything.sh b/corpus/tokenize-anything.sh new file mode 100755 index 00000000..1a24193d --- /dev/null +++ b/corpus/tokenize-anything.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +ROOTDIR=`dirname $0` +SUPPORT=$ROOTDIR/support + +$SUPPORT/utf8-normalize.sh | + $SUPPORT/quote-norm.pl | + $SUPPORT/tokenizer.pl | + sed -e 's/ al - / al-/g' | + $SUPPORT/fix-contract.pl | + sed -e 's/^ //' | sed -e 's/ $//' | + perl -e 'while(<>){s/(\d+)(\.+)$/$1 ./;print;}' + |