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 | f8d9ff4aaeb1d1f773bacfe9ee75d1d1778ec26b (patch) | |
tree | cfd9cd1e19e3fa33888626c204a4e0b73ca2edc4 /corpus/tokenize-anything.sh | |
parent | df5b25f73c12ef03482bd902ee0155a56789e6b9 (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;}' + |