FutoSwipeNative class final

Native Assets supply ONNX Runtime on Android, iOS, Linux, macOS, and Windows. Sessions, embedding tables, and the lexicon live in one worker isolate, so search never blocks the UI isolate.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
lexiconSize → int
Swipeable lexicon spellings after the most recent load or setLexicon.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
override
decode(Iterable<FutoSwipePoint> trace, {FutoSwipeLayout? layout, Iterable<String>? previousWords, int maxCandidates = 3}) → Future<List<FutoSwipeCandidate>>
Ranks lexicon words for a swipe trace.
override
emissions(Iterable<FutoSwipePoint> trace, {FutoSwipeLayout? layout}) → Future<FutoSwipeEmissions>
Refined decoder log scores for trace, before lexicon search.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
predictNextWords(Iterable<String> previousWords, {int count = 5}) → Future<List<FutoWordScore>>
The count highest-scoring exact-vocabulary words after previousWords. The model is small; treat results as suggestions.
override
scoreWords(Iterable<String> previousWords, Iterable<String> words) → Future<List<double>>
ContextLM scores for each of words following previousWords.
override
setLexicon(Iterable<FutoSwipeWord> lexicon, {bool includeModelVocabulary = true}) → Future<int>
Atomically replaces the swipe lexicon. Returns the swipeable count.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited