TextModels class abstract final

Verified official models accepted by text task options.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

bertClassifier → const DownloadAsset
Google's unmodified BERT sentiment classifier, float32, version 1.
byName → const Map<String, DownloadAsset>
Every model above by the name an app lists to bundle it, under hooks.user_defines.mediapipe_text.models in pubspec.yaml.
embeddingGemma → const DownloadAsset
Google's unmodified EmbeddingGemma 300M task, mixed int4/int8, version 1. Maximum sequence length: 512 tokens, including prompt and special tokens.
languageDetector → const DownloadAsset
Google's unmodified language detector, float32, version 1.
proofreader → const DownloadAsset
Google's unmodified Proofread 200M mixed int4/int8 model, version 1.
summarizer → const DownloadAsset
Google's unmodified Summarization 200M mixed int4/int8 model, version 1. Supports both TLDR and key-points modes through the official task API.
universalSentenceEncoder → const DownloadAsset
Google's unmodified Universal Sentence Encoder, float32, version 1.