Class AggregateCharSequenceNormalizer

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

public class AggregateCharSequenceNormalizer extends Object implements opennlp.tools.util.normalizer.CharSequenceNormalizer
A CharSequenceNormalizer implementation that aggregates the functionality of other normalizers.
See Also:
  • Constructor Details

    • AggregateCharSequenceNormalizer

      public AggregateCharSequenceNormalizer(opennlp.tools.util.normalizer.CharSequenceNormalizer... normalizers)
      Creates an aggregate that applies the given normalizers in order.
      Parameters:
      normalizers - The normalizers to apply, first to last. Must not be null and must not contain null. The array is copied, so later changes to it do not reach this instance.
      Throws:
      IllegalArgumentException - Thrown if normalizers is null or contains null.
  • Method Details

    • normalize

      public CharSequence normalize(CharSequence text)
      Specified by:
      normalize in interface opennlp.tools.util.normalizer.CharSequenceNormalizer