Audio-Data-Dictionary / sentence.schema.json
danielrosehill's picture
Data dictionary
e4ad782 verified
Raw History Blame Contribute Delete
6.09 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://huggingface.co/datasets/Hebrish/Example-Sentence-Bank/raw/main/sentence.schema.json",
"title": "Hebrish sentence dataset row (standard of 2026-11-06)",
"description": "One row of a Hebrish sentence dataset (text to read, no audio). Source of truth: ASR-Training docs/dataset-format-standard.md. Checked by scripts/check_dataset_format.py.",
"type": "object",
"required": [
"id",
"text",
"target_terms",
"categories",
"split",
"derivation",
"sentence_author",
"term_origins",
"pronunciation",
"takes",
"prompt_ids",
"served"
],
"properties": {
"id": {
"type": "string",
"description": "p_ + first 10 hex of sha1 of the text, lowercased with whitespace collapsed (build_bank.py pid()). Same id in the capture app and an audio set's prompt_id.",
"pattern": "^p_[0-9a-f]{10}$"
},
"text": {
"type": "string",
"description": "The sentence exactly as read: punctuated, cased, numbers in digits.",
"minLength": 1
},
"target_terms": {
"type": "array",
"items": {
"type": "string"
},
"description": "The words the sentence exists to teach. May be empty only for general sentences."
},
"categories": {
"type": "array",
"items": {
"type": "string"
},
"description": "Category tags such as tech, linux, homophone, numeric, code_switch."
},
"split": {
"enum": [
"train",
"test"
],
"description": "Term-disjoint: no target term in test appears in train."
},
"derivation": {
"enum": [
"mined-verbatim",
"mined-edited",
"generated",
"borrowed",
"written"
],
"description": "How the sentence came to exist. written = hand-written by a person for the project."
},
"sentence_author": {
"type": "string",
"description": "The upstream dataset, the model that wrote it, or the person."
},
"term_origins": {
"type": "array",
"items": {
"type": "string"
},
"description": "One entry per target term, same order: daniel, claude, or the upstream list the term came from."
},
"pronunciation": {
"type": "array",
"description": "Reading guide: one object per term whose reading is unclear. [] by default. Not a record of how a take was said (that is hebrew_pronunciation / pronunciation_variants).",
"items": {
"type": "object",
"required": [
"term",
"say",
"status"
],
"additionalProperties": false,
"properties": {
"term": {
"type": "string",
"minLength": 1,
"description": "The term as it is spelled in text."
},
"say": {
"type": "string",
"pattern": "^[A-Za-z' ]+(-[A-Za-z' ]+)*$",
"description": "Stress respelling as in the Recorder's pron-variants.json: syllables joined by hyphens, stressed syllable in CAPITALS, e.g. par-KAY."
},
"note": {
"type": [
"string",
"null"
],
"description": "Optional: why, or which reading is meant."
},
"status": {
"enum": [
"unreviewed",
"ai-reviewed",
"human-reviewed"
]
}
}
}
},
"homophone_set": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Homophone rows only: the set the context disambiguates."
},
"source_dataset": {
"type": [
"string",
"null"
],
"description": "Upstream dataset the row came from."
},
"source_licence": {
"type": [
"string",
"null"
],
"description": "Licence of the upstream row. Rows without one are CC-BY-4.0."
},
"source_url": {
"type": [
"string",
"null"
],
"description": "Web page the sentence was written from or mined from."
},
"source_date": {
"type": [
"string",
"null"
],
"description": "Date of the upstream item."
},
"source_authors": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "Upstream authors. Reddit usernames are never copied."
},
"original_text": {
"type": [
"string",
"null"
],
"description": "Upstream text before editing (mined-edited)."
},
"review_note": {
"type": [
"string",
"null"
],
"description": "Reviewer's note when a sentence was fixed."
},
"takes": {
"type": "integer",
"description": "Recordings of this sentence in the dataset's takes tab; 0 = unrecorded"
},
"prompt_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Every app prompt id that served this sentence (bank p_, task <task>_<sha>, old whispered_<bank id>)"
},
"served": {
"type": "boolean",
"description": "false = the app no longer offers it; kept because a take used it"
},
"spoken_text": {
"type": [
"string",
"null"
],
"description": "The card as read, when it differs from the written text"
},
"prompt_kind": {
"type": [
"string",
"null"
],
"description": "The task's own kind for the prompt (e.g. neighbourhood, llm)."
},
"prompt_note": {
"type": [
"string",
"null"
],
"description": "Task note on the prompt."
},
"text_full": {
"type": [
"string",
"null"
],
"description": "The full-fidelity target with any character, when it differs from `text`; null otherwise."
},
"term_language": {
"type": [
"string",
"null"
],
"description": "Origin language of the prompt's main term."
},
"aside_text": {
"type": [
"string",
"null"
],
"description": "The aside inserted in the sentence, for aside tasks."
},
"aside_position": {
"type": [
"string",
"null"
],
"description": "Where the aside sits in the sentence."
},
"paragraph_text": {
"type": [
"string",
"null"
],
"description": "Paragraph tasks: the passage with its paragraph breaks; `text` is flat."
},
"fallback_ok": {
"type": [
"boolean",
"null"
],
"description": "With `text_full`: whether `text` is still a correct transcript without it."
}
}
}