ChineseTextNormalizer class final
Ordered pure-text pipeline copied from the pinned Chinese NSW normalizer.
Number, date/time, phone, temperature, measure, width, sentence splitting, and post-replacement behavior is implemented in Dart. Traditional-character conversion remains explicit through converter. The pipeline is synchronous and platform-neutral and performs no file or network access.
Constructors
- ChineseTextNormalizer({required ChineseCharacterConverter converter})
-
Creates a normalizer with an explicitly supplied character
converter.const
Properties
- converter → ChineseCharacterConverter
-
Traditional-to-simplified converter used before every sentence pipeline.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
normalize(
String text) → List< String> -
Splits and normalizes
text, preserving the pinned sentence order. -
normalizeSentence(
String text) → String - Normalizes one sentence with the exact pinned stage order.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited