BaseTextEmbedder class abstract
Utility to convert text into an embedding suitable for other MediaPipe tasks.
- Implementers
Constructors
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
-
cosineSimilarity(
Embedding a, Embedding b) → Future< double> -
Compares the similarity between two
Embedding
values. Identical embeddings will yield a similarity value of 1.0. -
dispose(
) → void - Cleans up all resources.
-
embed(
String text) → Future< BaseEmbedderResult> -
Sends a String value to MediaPipe for conversion into an
Embedding
. -
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