musama0 commited on
Commit
e2e994e
·
verified ·
1 Parent(s): bd2ac1f

Dataset card

Browse files
Files changed (1) hide show
  1. README.md +181 -0
README.md ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - automatic-speech-recognition
7
+ pretty_name: Perch blind dictation corpora
8
+ size_categories:
9
+ - 1K<n<10K
10
+ tags:
11
+ - veterinary
12
+ - clinical-scribe
13
+ - benchmark
14
+ - synthetic-speech
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: test
19
+ path: data/manifest.jsonl
20
+ ---
21
+
22
+ # Perch blind dictation corpora
23
+
24
+ 420 written veterinary dictations and traps in six blind corpora, each read aloud by three Kokoro voices. 1,260 clips.
25
+
26
+ ## What this is
27
+
28
+ These are six blind test corpora for one question: when a veterinarian dictates, does a speech system or scribe write down the drugs that were said, and only those? Each corpus has 70 rows.
29
+
30
+ - 45 are ordinary veterinary dictations, 21 to 77 spoken words each, written in the voice of the person who would dictate them: SOAP visits, discharge talks, phone calls, referral letters, rounds. Across the six corpora the 270 dictations name 547 drugs from a fixed formulary of 66 brand and generic names.
31
+ - 25 are traps, built on purpose to bait a system that guesses drug names from sound into offering a drug nobody said. Some use ordinary words that sound like a brand ("front line," "entice," "serene"). Some say real veterinary drugs that are not on the formulary (Proin, Dasuquin, selegiline) and mean them as themselves. Some use the names of pets, clients, staff or products that sound drug adjacent (a dog called Bravo, a client called Mrs. Sereno, a technician called Clinda). A few are clinical content with no drug at all, such as a lab readout.
32
+
33
+ Nineteen of the 150 traps also say an on list drug. Those rows list it in `drugs`, and it is scored like any dictated drug.
34
+
35
+ Each row was read aloud by three Kokoro voices. Each corpus has 210 clips and the six together have 1,260, about 308 minutes of audio.
36
+
37
+ The rows were written by authors who never saw the matching code and were told nothing about how any scribe works. We built them to test our own product, [Perch](https://perchscribe.com), and we are publishing all of it: the rows, the audio and the scoring rule.
38
+
39
+ ## The six corpora
40
+
41
+ Each corpus has its own author and its own register, the setting its dictations come from. Ids start with one letter per corpus and run 001 to 070. Dictations are 001 to 045 and traps are 046 to 070.
42
+
43
+ | Corpus | Ids | Register | Voices |
44
+ |---|---|---|---|
45
+ | blind1 | f001 to f070 | SOAP visits with casual dispensing language, across general small animal practice | af_bella, am_adam, bm_lewis |
46
+ | blind2 | h001 to h070 | Discharge talks, referral letters, technician treatment sheets, feline cases, hospice, plus phone triage, anesthesia records, second opinions and case history recounts | af_bella, am_adam, bm_lewis |
47
+ | blind3 | j001 to j070 | Emergency and overnight ER, shelter intake and wards, specialty referral letters, poison control, boarding sheets, phone triage, hospice, refill callbacks | af_bella, am_adam, bm_lewis |
48
+ | blind4 | k001 to k070 | Dental charting, anesthesia and surgery sheets, oncology chemo protocols, nutrition and behavior consults, laboratory callbacks, client education handouts read aloud, very fast list dictation, a few rows in non native English phrasing | af_sarah, am_liam, bf_isabella |
49
+ | blind5 | m001 to m070 | Euthanasia paperwork, ophthalmology and dermatology rechecks, feline chronic disease management (renal, thyroid, diabetic), puppy and kitten series visits, radiology and ultrasound reports with a medication plan, internal medicine workups, insurance claim narratives read aloud, voicemail summaries | af_nova, am_puck, bf_alice |
50
+ | blind6 | r001 to r070 | Rounds and ICU handover, post op rechecks, senior wellness reconciliation, cardiology titration, urgent care, house calls, telemedicine, health certificates, pharmacy callbacks | af_aoede, am_echo, bm_fable |
51
+
52
+ | Corpus | Dictations | Traps | Drug mentions in dictations | Distinct names | Clips | Minutes of audio |
53
+ |---|---|---|---|---|---|---|
54
+ | blind1 | 45 | 25 | 81 | 60 | 210 | 60 |
55
+ | blind2 | 45 | 25 | 80 | 52 | 210 | 67 |
56
+ | blind3 | 45 | 25 | 108 | 52 | 210 | 40 |
57
+ | blind4 | 45 | 25 | 85 | 46 | 210 | 38 |
58
+ | blind5 | 45 | 25 | 100 | 51 | 210 | 54 |
59
+ | blind6 | 45 | 25 | 93 | 49 | 210 | 49 |
60
+ | Total | 270 | 150 | 547 | 65 | 1,260 | 308 |
61
+
62
+ A drug mention is one entry in `drugs`; a drug named twice in one row is listed once. Distinct names counts the different names listed anywhere in a corpus's 70 rows, trap rows included. Every name listed is one of the 66 formulary names, and 65 of the 66 appear in at least one row. The 19 trap rows that also say an on list drug add 23 more mentions.
63
+
64
+ Voice ids follow Kokoro's naming. The first letter is the accent (a American, b British) and the second is the gender (f female, m male). Each corpus has one American female voice, one American male voice and one British voice. blind1, blind2 and blind3 share the same three voices. blind4, blind5 and blind6 each use a different set. In the file names the voice carries the engine, for example `kokoro_af_bella`.
65
+
66
+ ## How the rows were written
67
+
68
+ - Each corpus has its own author. The author got a clinical brief, the formulary and a register, and nothing else.
69
+ - The author was told not to open the matching code, any note on how it works, any earlier corpus or the project history. The only file the author could read was a structure checker, to understand a failure message.
70
+ - Drug names are spelled exactly as the formulary spells them, in `ref` and in `spoken`.
71
+ - The brief asked the author to vary the dictations heavily. Some give a full sig beside the drug. Some name drugs with no dose at all, as a history list does ("failed Apoquel"). Some say brand and generic together ("that's pimobendan"). Some rattle off three or four drugs in one breath. Some put the drug far from its dose. Some use the drug as a plain noun ("out of Convenia"). Each setting uses its own phrasing for medication: "bolused," "drew up," "came in on," "transferred on," "dewormed on intake," "currently maintained on," "was trialled on," "please continue," "no changes to."
72
+ - The brief asked for 25 traps per corpus in four shapes, in roughly these numbers: about 10 ordinary words that sound like formulary brands, used in their ordinary sense; about 8 real veterinary drugs that are not on the formulary, alone or beside on list ones; about 4 names of pets, clients, staff, kennels or products that sound drug adjacent; about 3 clinical rows with no drug at all.
73
+ - A structure checker had to pass before any audio was rendered. It requires 70 rows, 45 dictations and 25 traps; no digits and no shorthand in `spoken`; every drug in `drugs` spelled as the formulary spells it and present in both `ref` and `spoken`; every formulary name in `ref` listed, unless it is an ordinary lowercase word; and a reason written on every trap.
74
+ - The brief for corpus 3 was saved, so later authors start from the same rules and only the register changes. The first two corpora were written from prompts that were not saved.
75
+
76
+ The audio is `spoken` rendered by Kokoro v1.0, three voices per corpus, at 16 kHz mono. The clips here are FLAC. The step from the rendered WAV to FLAC is lossless: the decoded samples of all 1,260 files match the WAVs.
77
+
78
+ ## Files
79
+
80
+ ```
81
+ data/blind1.jsonl to data/blind6.jsonl the 70 rows of each corpus
82
+ data/manifest.jsonl one row per clip, 1,260 rows
83
+ audio/blindN/<voice>/<id>.flac the clips (not in git: release assets and Hugging Face)
84
+ scoring/README.md the scoring rule and a reference scorer
85
+ ```
86
+
87
+ `data/blindN.jsonl` has one JSON object per line:
88
+
89
+ | Field | Meaning |
90
+ |---|---|
91
+ | `corpus` | `blind1` to `blind6` |
92
+ | `id` | the row id as authored |
93
+ | `kind` | `dictation` or `trap` |
94
+ | `category` | a short tag for the setting, chosen by the author |
95
+ | `ref` | the written form a clinician would file: digits and standard shorthand (mg, PO, BID) |
96
+ | `spoken` | exactly what the voice read: no digits, no shorthand ("sixteen milligrams by mouth twice daily") |
97
+ | `drugs` | every formulary name in `ref`, spelled as the formulary spells it, once each; empty when none |
98
+ | `trap` | empty on dictations; on traps, one sentence saying what the row is built to fool |
99
+
100
+ The rows are the authored rows, unchanged. The only field added is `corpus`. A trap row:
101
+
102
+ ```json
103
+ {"corpus": "blind3", "id": "j066", "kind": "trap", "category": "boarding_sheet", "ref": "Boarding drop off went smoothly, staff notes the dog is reactive to other dogs and should stay in the Rex Guard Kennels wing away from the play yard.", "spoken": "Boarding drop off went smoothly, staff notes the dog is reactive to other dogs and should stay in the Rex Guard Kennels wing away from the play yard.", "drugs": [], "trap": "Rex Guard Kennels is the name of the boarding wing, not a heartworm product like Heartgard or NexGard."}
104
+ ```
105
+
106
+ `data/manifest.jsonl` has one row per clip, with the fields `corpus`, `id`, `voice`, `file`, `duration_sec`, `drugs`, `trap`, `ref` and `spoken`. `file` is the path of the FLAC relative to the repository root. `duration_sec` is the clip length in seconds. The same dictation appears three times, once per voice. A row is a trap when `trap` is not empty. To get `kind` and `category`, join to `data/blindN.jsonl` on `corpus` and `id`. The first manifest row:
107
+
108
+ ```json
109
+ {"corpus": "blind1", "id": "f001", "voice": "kokoro_af_bella", "file": "audio/blind1/kokoro_af_bella/f001.flac", "duration_sec": 15.296, "drugs": ["Apoquel", "oclacitinib"], "trap": "", "ref": "8-year-old male neutered Labrador, 32 kg, presents for chronic pruritus. Starting Apoquel, oclacitinib, 16 mg PO BID for 14 days, then taper to SID. Recheck in 2 weeks.", "spoken": "Eight year old male neutered Labrador, thirty two kilograms, presents for chronic pruritus. Starting Apoquel, oclacitinib, sixteen milligrams by mouth twice daily for fourteen days, then taper to once daily. Recheck in two weeks."}
110
+ ```
111
+
112
+ ## Getting the audio
113
+
114
+ The audio is not in the git tree. It ships two ways:
115
+
116
+ 1. **GitHub release assets.** One zip per corpus, `blind1-audio.zip` to `blind6-audio.zip` (about 336 MB together), and a `SHA256SUMS` file. https://github.com/perchvet/perch-vetdictation/releases
117
+ 2. **Hugging Face.** https://huggingface.co/datasets/Talcoe/perch-vetdictation holds the same FLAC files at the same paths, next to the data files.
118
+
119
+ For the release assets, put the zips and `SHA256SUMS` in one folder and run `sha256sum -c SHA256SUMS` (on macOS, `shasum -a 256 -c SHA256SUMS`). Then unzip each zip in the repository root. The paths inside the zips are `audio/blindN/<voice>/<id>.flac`, the same as the `file` column of `data/manifest.jsonl`.
120
+
121
+ Every clip is FLAC, 16 kHz, mono, 16 bit.
122
+
123
+ ## How to run it on your own system
124
+
125
+ 1. Get the audio (above).
126
+ 2. Run your system on every clip in `data/manifest.jsonl`. Each of the 1,260 clips is its own case.
127
+ 3. Keep two things per clip: the transcript, if your system exposes one, and the list of drug names it offered (charted, suggested or shown to the clinician). Write one line of JSON per clip:
128
+
129
+ ```json
130
+ {"corpus": "blind1", "id": "f001", "voice": "kokoro_af_bella", "transcript": "<text, or an empty string>", "offered": ["Apoquel", "oclacitinib"]}
131
+ ```
132
+
133
+ 4. Score it with the rule below. `scoring/README.md` has the full rule and a short reference scorer.
134
+
135
+ To read a clip in Python (needs `pip install soundfile`):
136
+
137
+ ```python
138
+ import json
139
+ import soundfile as sf
140
+
141
+ rows = [json.loads(line) for line in open("data/manifest.jsonl", encoding="utf-8")]
142
+ audio, rate = sf.read(rows[0]["file"]) # 16000 Hz, mono
143
+ ```
144
+
145
+ ## How scoring works
146
+
147
+ - **Recovered.** A drug in a row's `drugs` counts as recovered on a clip when its name appears, correctly spelled, in the transcript or in the offered list. Names are compared after lowercasing and dropping everything but letters and digits. One spelling variant is credited: cephalexin and cefalexin.
148
+ - **Missed.** A drug in `drugs` that is not recovered.
149
+ - **False offer.** A drug name your system offers on a clip that is not in the row's `drugs`. On a trap row that lists no drug, every drug offered is a false offer. Two things are never false offers: the brand or generic partner of a drug in `drugs`, and a real drug that is not on the formulary and that the row genuinely says (Proin on the Proin row).
150
+ - Each row is read by three voices. Count each clip, so a drug listed once in a row is three dictated drug instances in its corpus.
151
+ - **Report misses and false offers per corpus, as raw counts.** This repository gives no rate.
152
+
153
+ The exact rule, the sanity checks and a reference scorer are in [scoring/README.md](scoring/README.md). The companion test is the trap set, [perch-trapset](https://github.com/perchvet/perch-trapset): its 70 clips are the 70 rows of blind1 read by one voice, and blind1 adds two more voices to each row.
154
+
155
+ ## What this is not
156
+
157
+ - **Not recordings of real visits.** The rows are written dictations and the audio is synthetic speech from three Kokoro voices, not a clinician in an exam room. Treat any result as a reproducible shared test, not an absolute accuracy claim.
158
+ - **Not a set of results.** This repository holds the corpora and the rule. It reports no result for any product, and no rate.
159
+ - **Blind describes how the rows were written.** The authors never saw the matching code. That does not keep the rows unseen for every system: a system whose builders have read these rows can be tuned to them.
160
+
161
+ ## License
162
+
163
+ The rows (`data/`), the audio and the other text in this repository are licensed under **CC BY 4.0**. Code, including the reference scorer in `scoring/README.md`, is licensed under the **Apache License 2.0**. Full text of both is in `LICENSE`.
164
+
165
+ The voices are Kokoro (v1.0, by hexgrad), released under the Apache License 2.0: https://huggingface.co/hexgrad/Kokoro-82M. The audio here is the output of that model, and the credit for the voices goes to its authors.
166
+
167
+ ## Citation
168
+
169
+ See `CITATION.cff`. In short: Talcoe LLC, "Perch blind dictation corpora: 420 veterinary dictations and traps with Kokoro audio," version 1.0.0, 2026. DOI pending.
170
+
171
+ The same files are also on Hugging Face: https://huggingface.co/datasets/Talcoe/perch-vetdictation
172
+
173
+ ## Related
174
+
175
+ - [perch-trapset](https://github.com/perchvet/perch-trapset) ([Hugging Face](https://huggingface.co/datasets/Talcoe/perch-trapset)): the companion test. Blind clips built to catch a scribe that charts a drug or a dose nobody said.
176
+ - [vet-drug-pronunciations](https://github.com/perchvet/vet-drug-pronunciations) ([Hugging Face](https://huggingface.co/datasets/Talcoe/vet-drug-pronunciations)): pronunciations for veterinary drug names.
177
+ - [perch-phoneme-lane](https://github.com/perchvet/perch-phoneme-lane): the code for Perch's phoneme lane.
178
+
179
+ ---
180
+
181
+ Talcoe LLC, makers of Perch. Questions: mo@talcoe.com