Class QuoteCharSequenceNormalizer

java.lang.Object
opennlp.tools.util.normalizer.QuoteCharSequenceNormalizer
All Implemented Interfaces:
Serializable, CharSequenceNormalizer, OffsetAwareNormalizer

public class QuoteCharSequenceNormalizer extends Object implements OffsetAwareNormalizer
A CharSequenceNormalizer that folds typographic quotation marks to their ASCII forms: the single quotes and apostrophes to ' and the double quotes to ".

This is high value for matching, since curly quotes, guillemets, and fullwidth quotes otherwise prevent "don't" from matching "don" + U+2019 + "t". It is built from two CharClass sets, so membership is O(1). ASCII quotes are left unchanged.

See Also: