ChineseFrontend11G2pEngine class final
Pinned outer ZHG2P(version: "1.1") mixed-script contract.
The engine is pure Dart and platform-neutral after callers provide a
synchronous ChineseFrontend11Backend. It performs no package discovery,
model loading, subprocess invocation, or runtime download. Every successful
outer result has tokens == null, matching pinned upstream behavior.
- Implemented types
Constructors
- ChineseFrontend11G2pEngine({required ChineseFrontend11Backend backend, String unknownMarker = defaultUnknownMarker, ChineseEnglishG2p? englishG2p})
- Creates the 1.1 engine with explicit Chinese and optional English stages.
Properties
- backend → ChineseFrontend11Backend
-
Backend supplying cn2an, jieba, and pypinyin-equivalent values.
final
- englishG2p → ChineseEnglishG2p?
-
Optional equivalent of pinned
en_callable.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 used when English conversion or a phone mapping is unavailable.
final
Methods
-
convert(
String text) → G2pResult -
Converts
textinto exact phoneme output and optional token details.override -
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