Class DashCharSequenceNormalizer

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

public class DashCharSequenceNormalizer extends Object implements OffsetAwareNormalizer
A CharSequenceNormalizer that maps every Unicode dash to an ASCII hyphen-minus (U+002D), reusing the cursor based CharClass.dashes() engine.

This folds the many dash code points (en dash, em dash, figure dash, non-breaking hyphen, fullwidth hyphen, and so on) to a single form so that "state-of-the-art" matches regardless of which dash the source used. The mathematical minus signs are left untouched by default, and U+00AD SOFT HYPHEN (a format character) is not treated as a dash.

See Also: