Mova0.6 pre-release

sentstore — a document-sharded, append-only store of sentence records

sentstore keeps sentence records grouped by document: one JSON record per document (or per part of a document that one batch added), each sentence with its id, position and text and any number of other fields (context, parse layers, provenance). The same sentence text in two documents is two records, because its context and its parses may differ. It is the store of the continuous corpus pipeline (Text corpora from 0.6); the format is generic.

cargo build --release -p sentstore
sentstore get DIR DOC SENT       # one sentence: its id, #N (its number) or =TEXT (its exact text)
sentstore doc DIR DOC            # one document, its parts from every batch joined
sentstore info DIR               # shard count and committed batches
sentstore verify DIR             # segments against their commits, every document read, keys complete
sentstore compact DIR [SHARD]    # merge a shard's segments (every shard without SHARD)

From Rust: Store::create(dir, shards), store.append(batch, &records, &meta), store.get(doc, &Sel::parse(sent)), store.keys() (every committed (document, sentence) pair: what a sampler draws without replacement against).

How it works

Checks

cargo test --release -p sentstore: batches append to their shards without rewriting them, a document grows across batches, the same text in two documents stays two records, compaction keeps every read, a repeated key and malformed records are refused, an uncommitted segment is invisible and redone, and (negative control) a corrupted segment fails verify.

Limits

This page in Markdown https://md.mova.elamur.ai/free/en/docs/tools/sentstore/