models/futo_swipe/futo_swipe library

Classes

FutoContextEmbeddings
ContextLM output tables, copied once from get_embeddings.onnx.
FutoEncoderOutput
Raw encoder outputs for one swipe.
FutoSwipe
English QWERTY swipe typing and word context from FUTO Swipe models.
FutoSwipeBundle
File locations of the converted FUTO Swipe compatibility unit.
FutoSwipeCandidate
A ranked swipe result.
FutoSwipeEmissions
Refined per-step log scores from the English decoder.
FutoSwipeLayout
Centers of the 26 English letter keys in letter-panel coordinates.
FutoSwipeOnnxBackend
Platform inference boundary. Implementations own their sessions.
FutoSwipePoint
One touch sample in letter-panel coordinates.
FutoSwipeWord
A word that swipe decoding may return.
FutoWordScore
A ContextLM word score.

Constants

futoContextDimension → const int
ContextLM state and embedding width.
futoContextHashedTokenId → const int
Token ID that selects the hashed-word path in ContextLM.
futoContextLength → const int
Words of preceding context consumed by ContextLM.
futoContextVocabularySize → const int
Rows in each ContextLM embedding table. Token ID 0 is padding.
futoSwipeBlankIndex → const int
Index of the CTC blank class in FutoSwipeEmissions.
futoSwipeClassCount → const int
Refined decoder classes: a through z, then blank.
futoSwipeMaxKeys → const int
Key slots reserved by the encoder. English QWERTY uses the first 26.
futoSwipeTimeSteps → const int
Encoder/decoder time steps per swipe.
futoSwipeTraceSamples → const int
Samples per coordinate after trace resampling.

Functions

validatedFutoCount(int value, String name) → int
Shared argument checks for platform implementations.
validatedFutoLexicon(Iterable<FutoSwipeWord> lexicon) → List<FutoSwipeWord>
Validates and snapshots a caller-owned lexicon at API entry.
validatedFutoTrace(Iterable<FutoSwipePoint> trace) → List<FutoSwipePoint>
Validates and snapshots caller-owned trace data at API entry.
validatedFutoWords(Iterable<String> words, String name) → List<String>
Snapshots caller-owned context words.