WebTextRuntime class final
Browser runtime backed by the official @mediapipe/tasks-text package.
- Implemented types
Constructors
- WebTextRuntime({WebTaskAssets? assets})
-
Creates a runtime using
assets.
Properties
- assets → WebTaskAssets
-
Locations of the JavaScript module and Wasm files.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createLanguageDetector(
LanguageDetectorOptions options) → Future< LanguageDetectorBackend> -
Creates a language detector backend.
override
-
createTextClassifier(
TextClassifierOptions options) → Future< TextClassifierBackend> -
Creates a text classifier backend.
override
-
createTextEmbedder(
TextEmbedderOptions options) → Future< TextEmbedderBackend> -
Creates a text embedder backend.
override
-
createTextProofreader(
TextProofreaderOptions options) → Future< TextProofreaderBackend> -
Creates a text proofreader backend.
override
-
createTextSummarizer(
TextSummarizerOptions options) → Future< TextSummarizerBackend> -
Creates a text summarizer backend.
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