Skip to content

Tusom2021: add a loader for the East Tusom word list - #21

Merged
SanderGi merged 9 commits into
KoelLabs:mainfrom
RaunakGengiti2725:tusom2021-loader
Nov 20, 2026
Merged

SanderGi merged 9 commits into
KoelLabs:mainfrom
RaunakGengiti2725:tusom2021-loader

Conversation

@RaunakGengiti2725

@RaunakGengiti2725 RaunakGengiti2725 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

PR Description

Summary

  • Adds a loader for Tusom2021, an East Tusom word list from one speaker. It has 2,255 items, 52 minutes, and labels written by hand.
  • Uses the dataset's own train, dev and test splits.
  • tones picks the label form, none by default, diacritics or letters.
  • Tested on every item with the real audio. Notes are in docs/datasets/Tusom2021.md.

Worth a look

  • Spaces are removed from the IPA, like in VoxAngeles.py. The original label is kept in raw_label.
  • A few labels look wrong. I left them in and listed them in the notes.
  • The data has an MIT license, which is written for software. It may not cover the recordings.

Q/A checklist

  • If you added new dependencies, did you update the requirements.txt file? pip freeze > requirements.txt
  • Run formatting and security checks gitleaks 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.

RaunakGengiti2725 and others added 9 commits November 9, 2026 10:12
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
SanderGi marked this pull request as ready for review November 20, 2026 04:27

@SanderGi SanderGi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SanderGi
SanderGi merged commit 3595ec5 into KoelLabs:main Nov 20, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
security — 83c0acb3 Deployed Nov 20, 2026 by SanderGi via gitleaks #385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants