PhraseTemplateLibrary class
A language-specific collection of phrase templates and a word category bank.
Constructors
-
PhraseTemplateLibrary({required String language, required List<
PhraseTemplate> templates, required WordCategoryBank wordBank}) -
Creates a template library.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String
-
Language code (
en,pt, …).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
templates
→ List<
PhraseTemplate> -
Phrase templates in this library.
final
- wordBank → WordCategoryBank
-
Words grouped by category for filling template slots.
final
Methods
-
documents(
) → List< DatasetSourceDocument> - Source documents for pipeline ingestion (one per template).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patternMap(
) → Map< String, PhrasePatternConfig> - Pattern configs keyed by template id.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited