HebrewG2pEngine class final
Hebrew G2P facade backed by an explicitly supplied phonemizer.
The pinned Python mode does not return token details, so successful results
always have tokens == null. For example, with an application-provided
backend named backend:
final engine = HebrewG2pEngine(backend: backend);
final result = engine.convert('שָׁלוֹם');
- Implemented types
Constructors
- HebrewG2pEngine({required HebrewPhonemizerBackend backend, HebrewOptions options = const HebrewOptions()})
-
Creates a Hebrew engine with an explicitly configured
backend.const
Properties
- backend → HebrewPhonemizerBackend
-
Configured Mishkal-equivalent backend.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- options → HebrewOptions
-
Flags applied to every conversion.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
phonemeInventory(
) → Set< String> - Returns a frozen copy of the backend's exact phoneme inventory.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited