Skip to main content

Crate kute_types

Crate kute_types 

Source
Expand description

Shared data model for the Kannaka Universal Tokenization Engine.

This crate has no tokenization logic. It defines the values every other crate exchanges: identifiers, canonical inputs, token sequences, training configuration and the in-memory vocabulary model that KVF serializes.

Re-exports§

pub use config::AdapterConfig;
pub use config::Pretokenizer;
pub use config::TokenizerCapabilities;
pub use config::TrainingConfig;
pub use error::KuteError;
pub use error::Result;
pub use event::EventRecord;
pub use event::EventSchema;
pub use event::EventStream;
pub use event::TimeUnit;
pub use id::VocabularyId;
pub use input::CanonicalInput;
pub use input::Modality;
pub use input::Payload;
pub use input::PayloadKind;
pub use input::TokenSequence;
pub use input::UnknownPolicy;
pub use input::MAX_ESCAPES;
pub use vocab::AdapterSpec;
pub use vocab::Integrity;
pub use vocab::Manifest;
pub use vocab::MergeRule;
pub use vocab::Provenance;
pub use vocab::RepresentationRef;
pub use vocab::Signature;
pub use vocab::TestVector;
pub use vocab::TokenEntry;
pub use vocab::TokenKind;
pub use vocab::TokenPayload;
pub use vocab::TokenRecord;
pub use vocab::Vocabulary;
pub use vocab::KVF_VERSION;

Modules§

b64
Serde helper: Vec<u8> as standard base64 text.
config
error
event
Typed event streams: symbols that keep their time and their grouping.
id
input
vocab
The in-memory vocabulary model. KVF (see specifications/kvf) is the serialization of this structure; kute-vocab does the file handling.

Structs§

Version
SemVer version as defined by https://semver.org.

Constants§

KUTE_VERSION
Version of the KUTE software that produced an artifact.

Functions§

hex
Lowercase hex encoding.
sha256_tagged
Hex SHA-256 with the sha256: prefix used throughout KUTE.