Package opennlp.tools.util.normalizer
Class AggregateCharSequenceNormalizer
java.lang.Object
opennlp.tools.util.normalizer.AggregateCharSequenceNormalizer
- All Implemented Interfaces:
Serializable,CharSequenceNormalizer
A
CharSequenceNormalizer implementation that aggregates the
functionality of other normalizers.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CharSequenceNormalizer[]private static final long -
Constructor Summary
ConstructorsConstructorDescriptionAggregateCharSequenceNormalizer(CharSequenceNormalizer... normalizers) Creates an aggregate that applies the given normalizers in order. -
Method Summary
Modifier and TypeMethodDescriptionnormalize(CharSequence text) Normalizes a sequence of characters.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
normalizers
-
-
Constructor Details
-
AggregateCharSequenceNormalizer
Creates an aggregate that applies the given normalizers in order.- Parameters:
normalizers- The normalizers to apply, first to last. Must not benulland must not containnull. The array is copied, so later changes to it do not reach this instance.- Throws:
IllegalArgumentException- Thrown ifnormalizersisnullor containsnull.
-
-
Method Details
-
normalize
Normalizes a sequence of characters.- Specified by:
normalizein interfaceCharSequenceNormalizer- Parameters:
text- TheCharSequenceto normalize. Must not benull.- Returns:
- The normalized
CharSequence.
-