Class AlignedAggregateCharSequenceNormalizer

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

final class AlignedAggregateCharSequenceNormalizer extends Object implements OffsetAwareNormalizer
An OffsetAwareNormalizer that applies a chain of offset-aware normalizers in order and composes their per-stage Alignments with Alignment.andThen(Alignment), so the result maps a span found in the fully normalized text back to the original input through every stage.

Produced by TextNormalizer.Builder.buildAligned(), which validates that every normalizer is offset-aware before constructing this.