ChineseFrontend11 class final
Pure implementation of pinned ZHFrontend version 1.1.
convertSegment mirrors the internal frontend and therefore returns its
raw token list. The outer ChineseFrontend11G2pEngine intentionally
discards that list because pinned ZHG2P(version: "1.1") returns
tokens: null.
Constructors
- ChineseFrontend11({required ChineseFrontend11Backend backend, String unknownMarker = defaultUnknownMarker})
-
Creates a reusable frontend with an explicitly provisioned
backend.
Properties
- backend → ChineseFrontend11Backend
-
Backend supplying normalization-independent lexical stages.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unknownMarker → String
-
Marker rendered for phones and tokens unavailable in the pinned map.
final
Methods
-
convertSegment(
String text, {bool withErhua = true}) → G2pResult - Converts one non-English frontend segment and retains internal tokens.
-
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