Repository navigation
Tusom2021: add a loader for the East Tusom word list - #21
Merged
Merged
Conversation
Issue KoelLabs#18 asks for data loaders for a multilingual speech2ipa leaderboard. Tusom2021 is next on the list after DoReCo. It is a small set of words and short phrases from one speaker, with phone labels that people wrote. The loader reads the dataset's own train, dev and test files, or all of mapping.yml, and returns the labels with no tones. WAV files that have no label are skipped and counted. 340 labels have spaces between words and 6 have a control character. Both come out of the IPA, the way VoxAngeles takes spaces out, and the exact label stays in the speaker info.
The dataset writes each label in three ways, with no tones, with tones as combining marks, and with Chao tone letters. Work on phones wants the first and work on tone wants the others, so the form is now one argument. The default stays no tones, so every item of the default form is the same as in the previous commit. It is the form the paper's experiments use, and evaluate.py drops every tone mark before FER.
Someone who has not downloaded the data, or whose copy is damaged, should get an error that names the file and gives the command that fixes it. A missing folder or YAML file now gives the git clone command, an unknown split or tone form lists the valid ones, and a WAV that the labels list but the disk does not have is named. soundfile returns a shorter clip from a WAV that was cut short, with no error, so the size field of the RIFF header is checked first. Every item of every split and form is the same as in the previous commit.
Alex asked for notes on each dataset, such as how much of the annotation was done by people or by machine, how the annotators were trained, and what cleaning was done or is still needed. These are the notes for Tusom2021. They sit next to the DoReCo notes that PR 20 proposes, so this place is only a proposal, and the file is easy to move. The notes list the labels that look wrong and the places where the paper and the data differ. The loader leaves those labels as they are, so Alex can decide. No code changes.
A review of the first four commits found places to tighten. Every error about the data files now says how to get or repair them, from the repo root. The loader counts the labels it takes white space out of and prints that count, since the IPA differs from mapping.yml for those items. A WAV that is not mono 16 bit audio now fails, and so does a blank label. include_timestamps=True raises ValueError in place of an assert, which python -O would skip. Every item of every split and form is the same as in the previous commit.
A review checked the notes against the paper and the data. Some lines said more than the sources do, such as that no G2P was used, where the paper only names none. The older transcriptions.tsv is shifted against mapping.yml in some stems, so it can only label the 137 unlabeled files with listening. Numbers of findings that only we know are replaced by the facts, and long sentences are split. No code changes.
A second review found two errors that named no file and gave no fix. A YAML file with bytes that are not UTF-8 raised a bare decode error, and a WAV that goes away after the dataset is built raised a plain open error. Both now give the file and the same fix text as the other errors. A comment that gave the wrong reason for using soundfile is corrected. Every item of every split and form is the same as in the previous commit.
A second review found two lines that said too much. The docstring of simplify_ipa does not mention tones. The function only calls a helper that removes them. And not all of the other token groups are real differences between tokens, since two are plainly different words. No code changes.
SanderGi
marked this pull request as ready for review
November 20, 2026 04:27
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Summary
tonespicks the label form,noneby default,diacriticsorletters.docs/datasets/Tusom2021.md.Worth a look
VoxAngeles.py. The original label is kept inraw_label.Q/A checklist
pip freeze > requirements.txtgitleaks detect && zizmor . && black .Legal Boilerplate
Look, I get it. The entity doing business as "Koel Labs" needs some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Koel Labs can use, modify, copy, and redistribute my contributions, under its choice of terms.