encode.rs reads a model answer into a PacketDraft (the one JSON door for models) and the encoder step sets everything the model does not write. round asks every offer first and writes nothing while any prompt is unanswered, then admits into the round's own packets.cc, lowers, scores in one call and keeps a RoundRecord with Train rows and Validation only as means and refusal counts. The Dao stores reproduce the base scores (Train 44.18, Validation 78.56). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
47 lines
1.6 KiB
Rust
47 lines
1.6 KiB
Rust
//! Weksa's typed interlingua state: packet, inventory and corpus documents in
|
|
//! CultCache, the validator that decides whether a packet exists, the derived
|
|
//! train/validation/test split, the stores that admit them, and the scorer
|
|
//! (chrF, meaning cosine, leak diagnostics).
|
|
|
|
pub mod context;
|
|
pub mod corpus;
|
|
pub mod daodejing;
|
|
pub mod encode;
|
|
pub mod entity;
|
|
pub mod form;
|
|
pub mod inventory;
|
|
pub mod lower;
|
|
pub mod model;
|
|
pub mod packet;
|
|
pub mod phones;
|
|
pub mod run;
|
|
pub mod schema;
|
|
pub mod score;
|
|
pub mod speaker;
|
|
pub mod split;
|
|
pub mod store;
|
|
pub mod validate;
|
|
|
|
pub use corpus::{CorpusItem, CorpusItemId, NameSpan, Source, Turn};
|
|
pub use encode::PacketDraft;
|
|
pub use entity::{Entity, EntityOrigin, LanguageForms, Pronunciation};
|
|
pub use form::FormError;
|
|
pub use inventory::{
|
|
Change, Family, InvId, Inventory, InventoryEntry, InventoryRevision, OptionLabel, OptionSet,
|
|
Slot, ValueKind,
|
|
};
|
|
pub use lower::{EntityForms, LowerError, PhoneLine, TARGET_LANGUAGE, lower, phones, pronounce};
|
|
pub use model::{AnswerFiles, ModelPort};
|
|
pub use packet::{
|
|
EncoderId, EntityId, Grade, NodeId, Packet, PacketId, PacketKind, SCHEMA_VERSION, Stance,
|
|
};
|
|
pub use phones::{Phone, PhoneInventory, SegmentError, Stress};
|
|
pub use run::{RoundRecord, RunStores, round};
|
|
pub use score::{Embedder, ItemScore, OllamaEmbedder, Scorer, chrf};
|
|
pub use speaker::{Annotator, PairRelation, Party, Scene, Speaker};
|
|
pub use split::{Split, SplitScheme};
|
|
pub use store::{
|
|
AddOutcome, CorpusStore, EntityBound, EntityStore, InventoryStore, PacketStore,
|
|
SpeakerStateStore, StoreError, StoreRefusal,
|
|
};
|
|
pub use validate::{LoweringInput, Refusal, SceneRead, validate};
|