Class InvisibleCharSequenceNormalizer

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

public class InvisibleCharSequenceNormalizer extends Object implements OffsetAwareNormalizer
A CharSequenceNormalizer that removes invisible format and bidirectional control characters that add no textual content and are a common source of noise and spoofing (the byte-order mark, zero width space, word joiner, bidi marks/embeddings/overrides/isolates, the invisible math operators, soft hyphen, and the Arabic letter mark).

Membership is an O(1) CharClass lookup. The zero width joiner (U+200D) and non-joiner (U+200C) are deliberately kept, because they carry meaning in Persian, Indic scripts, and emoji sequences; so are variation selectors. Use this only for a matching/search form, not for display.

See Also: