Package opennlp.tools.util.normalizer
Class ConfusableSkeletonCharSequenceNormalizer
java.lang.Object
opennlp.tools.util.normalizer.ConfusableSkeletonCharSequenceNormalizer
- All Implemented Interfaces:
Serializable,opennlp.tools.util.normalizer.CharSequenceNormalizer
public class ConfusableSkeletonCharSequenceNormalizer
extends Object
implements opennlp.tools.util.normalizer.CharSequenceNormalizer
A
CharSequenceNormalizer that reduces text to its Unicode confusable
skeleton (UTS #39).
This maps lookalike characters to a common prototype so that, for example, a word spelled with Cyrillic or Greek letters that imitate Latin ones reduces to the same form as its Latin spelling. The result is a matching key, not readable text: it is lossy and does not preserve offsets, so it is only meaningful as a derived layer of the original/normalized model.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the shared, stateless instance.normalize(CharSequence text)
-
Method Details
-
getInstance
Returns the shared, stateless instance.- Returns:
- the shared, stateless instance
-
normalize
- Specified by:
normalizein interfaceopennlp.tools.util.normalizer.CharSequenceNormalizer
-