VietnameseG2pEngine class final

Pure Vietnamese pipeline with explicit tokenizer and optional English fallback providers.

Implemented types

Constructors

VietnameseG2pEngine({required VietnameseTokenizerBackend tokenizer, VietnameseOptions options = const VietnameseOptions(), VietnameseEnglishFallbackBackend? englishFallback})
Creates an engine. A null englishFallback exactly selects the no-English-fallback path; no model or resource is discovered.

Properties

cleaner → VietnameseCleaner
Pure text cleaner configured with options.
final
englishFallback VietnameseEnglishFallbackBackend?
Optional English phoneme provider.
final
hashCode int
The hash code for this object.
no setterinherited
options VietnameseOptions
Immutable dialect, tone, substring, and cleaning options.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenizer VietnameseTokenizerBackend
Underthesea-compatible token provider.
final

Methods

convert(String text) G2pResult
Converts text into 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