Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Manabi Sentence DB

See the current corpus progress and resume checkpoint before starting another acquisition or build. It distinguishes reusable completed artifacts from pending quality and integration checks.

Downloads: start with the full base corpus, then add the published source supplements you need:

Supplement Sentence occurrences Compressed source size Includes
November 3 additions 505,768 181 MB / 7 ZIPs Final checked Kyoto Wikipedia pairs, modern Wikipedia, ASDC/TALPCo, ALT, JEC, one Global Voices article and license-separated Storybooks
Conversation and captions 206,061 49.8 MB / 3 ZIPs 77,425 MRMP conversation and 128,636 YJ caption occurrences
November 4 prose, dialogue and requests 562,881 124.0 MB / 3 ZIPs Further modern Wikipedia, refined JMRD dialogue and human-localized MASSIVE requests
Large Wikipedia expansion 1,972,952 472.0 MB / 16 ZIPs 124,937 articles with contributor, revision/history and processing lineage
Further Wikipedia prose 1,783,000 427.3 MB / 16 ZIPs 120,616 further articles, with narrow fragment/wording omissions and one reviewed whole-work exclusion
VFD visual-dialogue text 429,846 85.3 MB / 35 ZIPs Crowdwritten Japanese spoken pairs; images/actions excluded and visual dependence labeled

Counts are source occurrences before cross-source deduplication and consumer filtering. They are not globally novel or already searchable additions. Read each supplement's README.md, additions.json and checksums; preserve every independent occurrence, license, attribution and omission gap. Download both YJ caption buckets to retain complete original sentence fragments. MASSIVE's English prompts are not exported as translations. Imported occurrences remain unreviewed; assistant source inspection does not certify native-speaker review or population quality. Supplements accompany the full base; they do not replace it or contain private serving indexes. Source publication does not activate the search corpus; see the checkpoint for the separate native/serving admission work.

Optional TUBELEX Japanese external citations can be built privately beside a downloaded corpus release. This separate opt-in step indexes manual captions for literal substring searches and emits only timed YouTube references; transcript text and its derived index stay out of public content artifacts. The extension also supports resumable snapshot shards, combined private searches, and separate compressed review packets for sentence boundaries and playback quality.

Current format: bulk CLI builds default to JSONL. Release SQLite uses normalized v2 tables with unique sentences and independent occurrences; normalized JSONL ZIPs are also included. YAML and the legacy build-db command remain supported. See v2 interchange and compatibility.

An open, attributed example-sentence corpus, beginning with contemporary Japanese. The repository contains source configurations, schemas, a Python pipeline, and small original test fixtures. Downloaded source text and generated corpora are build artifacts, not committed YAML. A search engine or learning interface belongs in a separate project.

The build keeps acquisition separate from processing:

  1. Snapshot an explicitly selected upstream source. Record its exact bytes, hashes, source configuration, license, and retrieval time.
  2. Build validated canonical JSONL (or optional YAML) from that snapshot, entirely offline.
  3. Compile the validated records into SQLite, also offline.
  4. Package bounded YAML ZIP archives and per-source SQLite Zstandard downloads with catalogs, attribution, provenance, schemas, and checksums.

Revising extraction logic never causes an upstream download. Missing or corrupt inputs fail; they are not automatically replaced from the network.

Quick start

Install mise, then:

mise install
mise run check
mise run demo -- --output build/demo

The demo uses synthetic Japanese sentences and requires no corpus download. Tool installation may use the network. Once the environment is installed, all build, verification, database, and packaging commands operate offline. The project uses uv run --locked and the committed uv.lock, rather than a fresh unpinned uvx environment for each command.

One-page development snapshots

mise run snapshot -- --source wikipedia-ja --mode sample \
  --title 日本語 --output data/snapshots/wikipedia-sample

mise run build -- --snapshot data/snapshots/wikipedia-sample/manifest.json \
  --output build/wikipedia-sample

mise run build-db -- --build build/wikipedia-sample \
  --output build/wikipedia-sample.sqlite3

mise run package -- --build build/wikipedia-sample \
  --output dist/wikipedia-sample

package compiles a SQLite database for each source from the canonical YAML; the standalone build-db command is useful when a consumer wants one combined database. No search index or Japanese tokenizer is bundled into these databases.

snapshot --source all --mode sample acquires the configured Wikimedia examples serially. It explicitly skips Tatoeba, which supplies language exports rather than this page API. Every sample or limited build is labeled sample in the corpus and release catalogs.

Complete exports and optional translations

mise run snapshot -- --source wikivoyage-ja --mode full --date 2026-10-01 \
  --output data/snapshots/wikivoyage-2026-10-01

mise run snapshot -- --source tatoeba-ja --mode full --translations en \
  --output data/snapshots/tatoeba-current

mise run build -- \
  --snapshot data/snapshots/wikivoyage-2026-10-01/manifest.json \
  --snapshot data/snapshots/tatoeba-current/manifest.json \
  --output build/japanese

mise run package -- --build build/japanese --output dist/japanese

Choose an actually available Wikimedia export date; the example is a verified October 2026 export. A source exports its own version/date, while retrieved_at records when this project downloaded it. Tatoeba's mutable weekly exports have no date selector: the snapshot pins their downloaded bytes. The first adapter supports optional English translations; the schema permits any language and multiple translations per sentence.

Use --source all --mode full --date YYYY-MM-DD to acquire configured sources other than explicitly selected Global Voices works, with the date applied to Wikimedia. This includes a multi-gigabyte Wikipedia download. For development, --max-files limits Wikimedia export chunks and labels the snapshot partial; build --max-documents limits processing without any source request. A single Wikipedia chunk can still be several GB.

For reusable article selection, pass build --document-selection selection.json. The optional JSON allowlist binds positive page-ID strings to one exact input snapshot, for example:

{"schema_version":1,"source_id":"wikipedia-ja","snapshot_id":"<snapshot_id from manifest.json>","page_ids":["123","456"]}

This filters Wikimedia pages before prose extraction, in original dump order; it does not rank, rewrite, or truncate sentences. Other input sources are unchanged. The catalog embeds the complete selection and its canonical SHA-256 in build options, which contribute to build identity. Selected output is labeled sample. The default without this option is unchanged. --document-selection cannot be combined with --max-documents, so every selected ID is checked. Selected IDs absent from the snapshot fail the build. Present pages with no eligible prose may produce no documents; an entirely empty build fails. Selection avoids parsing unselected wikitext but still streams the compressed XML snapshot.

To generate a mixed topic sample from a cached Japanese Wikimedia snapshot:

mise run select-wikimedia -- \
  --snapshot data/snapshots/wikipedia-2026-10-01/manifest.json \
  --output build/wikipedia-selection --per-topic 1000 --general 2000 \
  --seed quality-expansion --progress

mise run build -- \
  --snapshot data/snapshots/wikipedia-2026-10-01/manifest.json \
  --document-selection build/wikipedia-selection/selection.json \
  --format jsonl --shard-compression zstd --output build/wikipedia-selected

Selection verifies and streams existing inputs without downloading them. Ten topic quotas plus the general quota cap this example at 12,000 articles; the combined ceiling is 250,000. selection-report.json records article metadata, routing counts, the producing implementation hash and selection checksum. Routing allocates variety; normal prose, rights and quality gates still determine admitted sentences. Conflicting page identities fail even after eviction from the bounded sample. The identity inventory stores hashes in a temporary SQLite database with a 1 MiB page-cache target; temporary disk use grows with unique page IDs, without storing article bodies. SQLite releases the inventory when selection ends or fails.

For repeated or larger cohorts, index the snapshot's metadata once:

mise run index-wikimedia -- \
  --snapshot data/snapshots/wikipedia-2026-10-01/manifest.json \
  --output data/research/wikipedia-metadata --max-index-bytes 2147483648 --progress

mise run select-wikimedia -- \
  --metadata-cache data/research/wikipedia-metadata --output build/wikipedia-next \
  --per-topic 15000 --general 40000 --seed practical-growth \
  --exclude-selection build/wikipedia-selection/selection.json --progress

mise run build -- \
  --snapshot data/snapshots/wikipedia-2026-10-01/manifest.json \
  --document-selection build/wikipedia-next/selection.json \
  --format jsonl --shard-compression zstd --output build/wikipedia-next-corpus

mise run export-normalized-buckets -- \
  --build build/wikipedia-next-corpus --output dist/wikipedia-buckets \
  --works-per-archive 8000

The persistent SQLite metadata index contains page titles, revisions, compressed category metadata and full-page fingerprints, no article bodies or sentence text. Selections verify that index's checksum without reopening the raw XML. Keep the index and previous selections in a durable data directory rather than a disposable experiment directory. --max-index-bytes optionally caps the SQLite file through its page allocator (rounded down to whole pages); the 2 GiB above is an example budget, not a measured requirement. It excludes raw inputs and other output files. A cap/disk failure leaves no completion manifest, and partial indexes are not reusable selections. Invalid budgets fail before source hashing. Repeated --exclude-selection arguments must match this exact source/snapshot; their IDs are removed before quotas, so old pages cannot consume new slots. Every later build still verifies the raw snapshot and applies the ordinary rights, segmentation and quality gates. Metadata topics are not quality labels.

Bucket export reads canonical records once, keeps complete works together and stages sentence tables compressed. Each bucket is an ordinary normalized-v2 ZIP with an exact work selection; normalized-buckets.json is published last, only after all archives finish. Distinct-text counts are per bucket, so consumers deduplicate text identities while preserving every source occurrence. Source archives can grow independently of a downstream search server's storage budget.

For large builds, add --shard-compression zstd to write YAML or JSONL shards directly as compressed .yaml.zst or .jsonl.zst files. The catalog records their compressed sizes and checksums; document positions still refer to logical records. Verification, normalized export, SQLite compilation and packaging read these shards as streams. Release ZIPs retain the compressed members. The default remains plain shards for human editing. Add --progress to send snapshot verification, Wikimedia scan counts, document counts and publication milestones to stderr; stdout still contains only the completed catalog path. Progress is optional and does not change build identity.

Normalized export always compresses its temporary tables and produces the same ordinary JSONL members inside its portable ZIP download.

To reuse a processed corpus for a reviewed whole-article subset, run sentence-db export-normalized --build BUILD --output selected.zip --work-selection selection.json. The selection JSON binds the exact build:

{"schema_version":1,"build_id":"<catalog build_id>","work_ids":["<document ID>"]}

The export preserves complete works, sentences, attribution, licenses, ordinals and context links. It records the canonical selection and digest, labels the download sample, and fails on missing work IDs. It reads the verified processed shards without rescanning the raw snapshot. Omitting --work-selection exports the complete build; --source can select one existing source partition.

When only a published normalized ZIP is available, use mise run select-normalized-works -- --archive corpus.normalized.zip --output selected.zip --work-selection selection.json. It accepts the same build-bound work selection, preserves complete works and their linked sentence records, and keeps temporary text compressed. Source extraction and linguistic analysis are separate steps; selecting a release does not repeat either one.

Repeating the same local snapshot request reuses verified existing files without contacting upstream. --refresh downloads a complete candidate snapshot before comparing its identity; it does not use conditional HTTP requests or ETags. A changed snapshot is written to a new ID-suffixed directory, preserving the previous one. The command prints the actual manifest path. A failed all request reports which sources failed and preserves completed snapshots.

Included sources

Source ID Text license Acquisition
wikipedia-ja CC BY-SA 4.0 for covered text Current-revision MediaWiki Content File Exports, or selected API pages
wikivoyage-ja CC BY-SA 4.0 for covered text Same adapter; practical full-source development input
wikinews-ja LicenseRef-Wikinews-JA: historical BY 4.0 / BY 2.5 / BY 2.1 Japan notices retained Explicit archived pages-articles export, or selected API pages
tatoeba-ja CC BY 2.0 France Detailed Japanese TSV, tags, optional English/direct-link TSV
realpersonachat-ja CC BY-SA 4.0 Commit-pinned human-dialogue JSON archive; excludes profiles, model conversations, and masked utterances
mrmp-ja CC BY-SA 4.0 Pinned human multi-party chat; verifies exact publisher license/README, excludes profiles/evaluations, preserves utterance gaps
jmrd-ja CC BY-SA 4.0 Authored movie conversation including first-party review grounding; excludes Wikipedia plots/bios and raw knowledge/questionnaires, preserving gaps; local raw evidence only
massive-ja CC BY 4.0 Human-localized practical requests, requiring positive independent publisher reviews; translated origin labeled, with worker metadata and potentially mismatched English prompts excluded
yahoo-vfd-ja CC BY 4.0 Punctuated crowdwritten spoken pairs, with omitted-turn gaps and visual-context labels; no images or non-verbal actions. Full-source publication qualification is pending.
asdc-main-ja CC BY 4.0 Pinned human accommodation role-play; 210 main dialogue files only, verified corpus/collection evidence, no SCUD descriptions or scenarios
jmultiwoz-ja CC BY-SA 4.0 Commit/hash-pinned human task dialogue turns; excludes goals, worker metadata, backend data, and model outputs
yj-captions-ja CC BY 4.0 Commit/hash-pinned human original Japanese captions; independent complete-caption works, no translations or images; image rights are separate
stair-captions-ja CC BY 4.0 Commit/hash-pinned v1.2 Japanese caption text; excludes images and tokenized duplicates
jec-basic-ja CC BY 3.0 Hash-pinned Kyoto University / NICT Japanese-English-Chinese sentence patterns; excludes unresolved X and quotation placeholders
jaquad-ja CC BY-SA 3.0 Commit-pinned human-curated Japanese questions from JaQuAD train/validation; excludes article titles, Wikipedia contexts, answers and withheld test data; raw snapshot release is disabled
talpco-ja CC BY 4.0 Commit/hash-pinned 1,372 Japanese teaching examples with human British English translations; removes documented bunsetsu annotation spaces from derived text, retaining raw provenance and independent example boundaries; no audio or US adaptation
storybooks-japan-ja, storybooks-japan-by4-ja Per-work CC BY 3.0 / CC BY 4.0, kept in separate sources Commit/hash-pinned Japanese narrative text from 29 storybooks; explicit per-work grants, named translators, page-unit context and exact typo exclusions; excludes 11 NC works, images and audio
wikipedia-kyoto-ja CC BY-SA 3.0 Hash-pinned NICT Kyoto parallel corpus v2.01; Japanese originals aligned only with final checked English translations; preserves Wikipedia/NICT attribution and filters excluded XML sections
alt-parallel-ja CC BY 4.0 Japanese; CC BY 2.5 English originals Pinned NICT parallel news text; Japanese translated from English, with method/authorship unknown; excludes NC treebanks, ambiguous pairs and quotations
globalvoices-65886-ja CC BY 3.0 Opt-in reviewed report: 13 Japanese narrative paragraphs; exact response and provenance pins, quotations/media/wording defects withheld with context gaps
globalvoices-65906-ja CC BY 3.0 Opt-in single reviewed news article: 11 Japanese narrative paragraphs; exact page/metadata/body pins, original English retained only as rights evidence, all omissions preserve context gaps
scp-jp-aptitude-ja CC BY-SA 3.0 One reviewed contemporary Tale, revision/body-hash pinned; exact raw HTML and paragraph units retained
scp-jp-duck-merchant-ja, scp-jp-id-photo-ja, scp-jp-fixed-point-ja CC BY-SA 3.0 Three additional individually reviewed contemporary Tales; direct prose only, exact credit/revision/body pins
scp-jp-shaving-ja CC BY-SA 3.0 Individually reviewed psychological-horror Tale; 57 direct prose paragraphs with exact credit/revision/body pins
wikibooks-ja CC BY-SA 4.0 for covered text Current-revision MediaWiki exports or selected API pages; textbook prose only

See source research and admission decisions for primary licensing evidence, source-specific exceptions, and approximately thirty researched source families. The Global Voices adapter covers only articles 65906 and 65886; the wider site remains unadmitted.

JaQuAD is opt-in with sentence-db snapshot --source jaquad-ja --mode full; --source all skips it because the pinned raw archive includes Wikipedia contexts and answers that are excluded from the processed corpus.

Explicitly reviewed Global Voices articles

mise run snapshot -- --source globalvoices-65906-ja --mode full \
  --article-cache /absolute/canonical/cache/globalvoices \
  --output data/snapshots/globalvoices-65906

Use globalvoices-65886-ja and a distinct output directory for the second work. --source all skips both sources in every mode. Use a persistent canonical cache outside snapshot/build directories. Cached responses are hash-verified and reused without network access; absent responses fetch only the two fixed article URLs and their primary robots policies, with one cache lock and at least ten seconds between all attempts across both hosts, including retries. No media is fetched. Raw article pages remain local rights evidence because they contain the excluded quotations and caption text. This source has no raw snapshot workflow/release route; snapshot-pack rejects its raw pages. Publish the processed corpus, which contains only the reviewed Japanese paragraphs.

Both exact raw-page hashes and reviewed metadata/body pins must match, including the English original's exceptions, Jo Carter's writer/translator roles, both publication dates and article/footer license notices. Even an unrelated page wrapper change requires re-review. --refresh is rejected for this immutable single-work pin; changed upstream text requires a separately reviewed inventory. English is evidence only: the corpus emits no English text or aligned pairs. Authorship, translation method and native-speaker review remain unknown, and every sentence is unreviewed.

Wikimedia's new export checksum manifest is the completion signal. The project does not silently fall back to a different dump format when an export is absent. Six legacy current/history/stub jobs are being retired; pages-articles is explicitly outside that retirement, and remains the configured Wikinews archive path. Wikimedia export documentation and migration scope.

Data model and output layout

Canonical YAML is a stream of bounded article/document records, grouped by language and source. Each record carries title, original URL, page/sentence ID, revision/history links where available, license, attribution, source categories, and a list of sentences. Keeping document metadata once avoids repeating the same attribution on every sentence.

YAML shards are capped at 500 documents or approximately 4 MiB by default. A single large document can exceed the shard target, up to a 32 MiB record bound. These are artifact buckets, not editorial categories or stable page addresses. Identity comes from record IDs and source IDs, independent of the directory layout. The document index maps IDs to shard paths and positions.

Artifact Purpose
yaml/<language>/<source>/<number>.yaml Canonical multi-document YAML, streamed one record at a time
documents.jsonl Lightweight document ID/title → shard/position catalog
catalog.json Inputs, scope, processor/runtime versions, options, counts, hashes
provenance/*.snapshot.json Exact immutable input manifests with source/license metadata
licenses.json Licenses and notices used by included text and translations
*.yaml-*.zip Bounded bundles with a ZIP central directory and individually extractable YAML shards
*.sqlite3.zst Per-source SQLite database compressed with Zstandard
*.sqlite3.zst.partNNNN Ordered pieces when a compressed database exceeds the asset budget
release.json, SHA256SUMS Download inventory, ordered parts, compressed and restored hashes

ZIP provides convenient listing and selective extraction of shards. A consumer reads the external index, extracts one small shard, then selects its document. Zstandard is used for SQLite downloads, where the whole database is normally restored; a generic .zst stream is not advertised as a random-access archive. For split SQLite downloads, concatenate the listed parts in order, decompress once, and verify the uncompressed hash in release.json.

Duplicate text remains as separate occurrences with its original source and license. Exact normalized UTF-8 text hashes let consumers group duplicates without discarding attribution. NFC normalization and other transformations are recorded; source text is not paraphrased by an LLM.

The schema guide explains stable IDs, translation provenance, SQLite tables, and future link-only text-fragment/media selectors. The record schema is distributed with releases. Unknown fields, duplicate YAML keys, aliases, invalid licenses, contradictory identities, and modified artifacts fail validation.

Selection and content policy

The initial corpus targets contemporary Japanese. It excludes Aozora and classical-text corpora for now. The Wikimedia extractor keeps main-namespace prose, excludes redirects and marked copyright/deletion problems, and removes lists, tables, references, media, and marked quotations. Unknown inline markup invalidates the affected sentence rather than joining words across a removed template. It also omits sentences with Japanese corner-quoted passages, including some title mentions, as a conservative first-version tradeoff. Visible external-link labels are retained, but an unlabelled or empty-label link leaves the same omission marker as an unknown template. Its neighboring words must not be silently joined into an invented example. Explicit reference tags continue to be omitted as footnotes.

Shared rules reject malformed, very short/long, obviously archaic, or non-Japanese units. Tatoeba's correction/archaic/unnatural tags additionally influence selection. Historical kana in names and ambiguous short spellings alone do not establish a sentence's era: modern text such as 空を見てふと思い出した。 remains eligible. The era heuristic retains specific historical constructions and does not treat modern nouns ending in 候, such as 気候 or 兆候, as the historical auxiliary. Likewise, 給へ within a modern noun followed by へ, such as 時給への不満 or 供給への備え, is not a historical auxiliary. The same boundary rule protects modern 意思ひとつ and 格言ふう from the 思ひ / 言ふ patterns. This deliberately allows some compound historical spellings, such as 物思ひ, through the text heuristic; explicit upstream archaic / old-fashioned tags still exclude a sentence.

Japanese Wikipedia has an additional sentence-level example gate, wikipedia-example-quality-v8. It rejects sentences longer than 180 characters, dense formulas, long Latin passages, numerical enumerations, unusually low hiragana prose, deeply nested/large parenthetical explanations, long enumerations, clusters of long kanji compounds and several distinct specialist terms combined with length or kanji density. Orphaned particle-led fragments and sentences introducing missing following material are also omitted. A simple science sentence, a date, a single term or an organization name is insufficient for rejection. Retained sentences containing two specialist terms receive style:specialist-vocabulary. Exact thresholds and the deliberately limited vocabulary are in wikipedia_quality.py; per-reason rejection counts appear in each source's build statistics. The transformation version travels with each Wikipedia work. Ordinal gaps preserve omissions for context consumers. This gate does not apply to other Wikimedia projects or other languages. It is an inspectable first selection policy, not a calibrated readability/JLPT model; it can lose useful advanced examples and miss dense prose. Existing compressed snapshots remain reusable for offline policy changes. Terminal list introductions such as 以下から構成される / 以下の理由による and detached と、3種類に区分される classifications are omitted per sentence; the rest of the work retains its original text, attribution and ordinal gaps. Numerical uses of 以下, named materials, ordinary anaphora and modern prose about historical events are not excluded by these additional patterns. The fixed construction べからず, still used in contemporary warnings, is retained with the occurrence tag style:classical-construction. It is style evidence, not a source-era verdict or a content flag. Raw snapshots permit offline recovery of previously rejected examples by rebuilding; existing releases are not rewritten. A small transparent lexicon annotates sexual content, violence, self-harm, and profanity. Sexual-content flags are excluded by default; --exclude-flag violence adds an exclusion and --include-sexual-content changes the default. Categories and upstream tags remain available for consumer filters. The gate also excludes narrowly defined formula remnants, reference-only sentences and numbered requirement introductions whose requirements are absent. It also omits orphaned のような、 examples and table introductions ending in a unit label without their data. Four exact text hashes with demonstrated wording errors or graphic violence are withheld; these assistant findings do not create general grammar or medical-topic bans. See quality policy. mise run refine-wikipedia -- --build BUILD --output FRESH_OUTPUT reapplies the current gate to a verified canonical build without raw dumps. Retained text and source positions stay intact; a parent receipt preserves build lineage. See offline refinement.

Every admitted sentence is marked unreviewed. The era and content rules are heuristics, not guarantees of modern usage, correctness, or child suitability; they can both miss material and reject harmless prose. Translations also require quality review. Extraction omissions happen before shared-filter counters, so those counters do not describe every upstream page or passage. The build report records decisions it can count without claiming a manual review took place.

GitHub operation and scale

PR CI runs source/schema validation, linting, and offline regression tests with synthetic fixtures. Two independent manual Actions workflows acquire snapshots and build releases from stored snapshots. Source acquisition never runs on a push, pull request, or schedule.

Merge the workflow files into the repository's default branch before their Run workflow controls become available. Running them requires repository write access. GitHub's manual workflow requirements

  1. Run Snapshot sources (manual) with the desired source and scope. Enable create_draft_release to retain the raw snapshot for the later build workflow; otherwise the result is a seven-day workflow artifact. Save the snapshot release tag and catalog SHA-256 printed in the run summary. Review and publish the raw snapshot draft before using it in the build workflow.
  2. Run Build corpus from snapshot (manual) with that release tag and catalog SHA-256. Reuse these inputs when changing processing logic; this workflow never requests source content again.
  3. Enable create_draft_release in the build workflow when a corpus release is wanted. Review the resulting draft and publish it through GitHub. With the option disabled, the packaged corpus remains a seven-day workflow artifact.

Raw snapshots can be packed into content-addressed transport parts and kept in draft GitHub releases. The build workflow downloads a selected stored snapshot, checks a pinned catalog hash, restores it, and performs all corpus processing offline. Optional release jobs create new draft releases without replacing assets. The read-only build workflow requires a published raw snapshot release; it cannot download a private draft. Local builds can use cached raw snapshots or bundles downloaded by a maintainer without publishing them. Maintainers can review and publish corpus drafts through GitHub.

The workflows support small sources on ordinary hosted runners and require a provisioned self-hosted Linux runner labeled self-hosted, linux, and sentence-db for full or partial Wikipedia exports. Select self-hosted in the workflow's runner input; Wikipedia API samples can use ubuntu-24.04. Local commands provide the same route. There is no assumption that GitHub's ephemeral cache can permanently store a Wikipedia snapshot. For more languages or long-term raw retention, move the same verified bundles to object storage; this version does not provision or require a paid storage service.

See operations and release procedures, including current GitHub limits, disk sizing, snapshot transport, checksums, and publication.

License and contributions

Software is MIT licensed. Imported text retains its own source license and notices; the MIT license does not apply to those sentences. Commercial use can still require attribution and ShareAlike compliance. See data licensing and contribution guidance.

Current consumer format

New bulk builds default to JSONL (build --format jsonl); YAML remains available with --format yaml. Releases include a normalized v2 JSONL ZIP in addition to the original document-oriented exports. New consumers should use v2 to separate unique sentences from their independently licensed occurrences. See the normalized format.

RealPersonaChat is an enabled dialogue source. Its pinned archive contains 13,583 human dialogues; profiles and model conversations are excluded. Acquire once with mise run snapshot -- --source realpersonachat-ja --mode full --output data/snapshots/realpersonachat, then build offline. Use build --max-documents 10 for a small development corpus. The latest source priorities and exclusions are in the updated shortlist.

Source breadth and sentence units

The reviewed catalog now also enables JMultiWOZ human task dialogues, STAIR Captions original Japanese image descriptions (text only), and Japanese Wikibooks expository textbook prose. JMultiWOZ and STAIR snapshots pin both a publisher commit and verified archive SHA-256. The adapters stream individual dialogues/captions, omit worker profiles, models, backend databases, images, and tokenized duplicates, and preserve each source's separate rights. Captions explicitly retain their dependence on an image that is not included. See source review and exact scopes.

An explicit five-work allowlist adds contemporary SCP-JP narratives 『適性』『カモと商人』『証明写真』『定点観測』『髭を剃ったあとは気分がいい。』 with individually checked author/license credits, revisions and body hashes. It preserves paragraph context and does not admit the rest of the site. See the original narrative review, the additional work reviews, and the shaving Tale review.

Processor 5 splits multi-sentence publisher units before indexing. It preserves the original unit, exact Unicode ranges, and original-unit translations in source_unit; those translations are never relabeled as fragment translations. Quoted reporting clauses stay together. Rebuild from retained snapshots and recompile the consumer index to apply this change to existing records. The interchange contract explains offsets, identity changes, context limits, and compatibility.

Use vocabulary-coverage to compare exact sentence overlap, new sentence text, unique analyzed lemmas and their marginal coverage against a fixed set of existing sources. Analysis has an explicit version and missing analysis is reported as unknown. This public pipeline does not include a proprietary tokenizer or treat substring counts as vocabulary. See vocabulary coverage for the export contract and commands.

Apply current Japanese Wikipedia quality rules to an existing normalized ZIP with mise run refine-normalized-wikipedia -- --archive corpus.normalized.zip --output refined.zip. Add --review-output omissions.json.zst --review-seed REVIEW_ID to collect a small attributed omission sample during the same passes. The review must be a fresh sibling of the corpus output; --review-per-reason accepts 1–20 (default 20). See the omission review contract. This offline transform keeps useful neighboring occurrences and independent owners of shared text, drops only translations owned by rejected occurrences, and cuts context links at removed neighbors without bridging ordinal gaps. Original public IDs, retained text, rights and canonical ancestry stay unchanged. The manifest's normalized_refinement_provenance identifies the input ZIP, original build, policy and implementation hashes, counts and rejection reasons. This records a normalized transform, not a replacement canonical build or human review. All logical members, including discarded rows, are verified; unowned sentence rows fail closed because normalized sentence rows carry no independent rights context. Prior normalized refinement receipts are preserved with hash bindings and validated to a maximum chain depth of 16; canonical ancestor bytes remain unchanged. Japanese language subtags are included. Bulk staging remains zstd compressed. The result can be passed to select-normalized-works and the normalized database importer.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages