summaryrefslogtreecommitdiff
path: root/corpus/support/quote-norm.pl
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-03-10 18:40:13 -0400
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-03-10 18:40:13 -0400
commitde8ffd4598d6c1e45273b50642870a661b4bcad4 (patch)
treedcd6b1dd1d199a46cd2adc5fc226a825a986f6ae /corpus/support/quote-norm.pl
parentfcd6fe0123e5a12c926e344ed93e17f021674edc (diff)
few tokenization bugs
Diffstat (limited to 'corpus/support/quote-norm.pl')
-rwxr-xr-xcorpus/support/quote-norm.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/corpus/support/quote-norm.pl b/corpus/support/quote-norm.pl
index 33604027..0366fad5 100755
--- a/corpus/support/quote-norm.pl
+++ b/corpus/support/quote-norm.pl
@@ -39,6 +39,7 @@ while(<STDIN>) {
s/&\#([0-9]+);/pack("U", $1)/ge;
# Regularlize spaces:
+ s/\x{ad}//g; # soft hyphen
s/\x{a0}/ /g; # non-breaking space
s/\x{2009}/ /g; # thin space
s/\x{2028}/ /g; # "line separator"