Repository navigation
AISHELL3: add a loader for AISHELL-3 - #23
Merged
Merged
Conversation
AISHELL-3 adds 218 Mandarin speakers for issue KoelLabs#18. Its labels are pinyin written by annotators, so the loader turns them into IPA with a fixed, sourced table in aishell3_pinyin_ipa.json. It offers the archive's train and test folders, a test_new_speakers split with only speakers who never appear in train, and optional Chao tone letters. Erhua syllables and a few nonstandard ones skip the utterance and are counted. Each WAV is checked by its data chunk, since most files in the archive have a wrong RIFF size field.
The notes answer the questions on human and machine labels, the annotators and cleaning. People wrote the pinyin by listening, and the IPA comes from a fixed table, so it is phonemic. They give the counts, the splits, the WAV quirks, what evaluation drops, and the license conflict that needs a decision before any release.
The old steps stripped one top folder from the archive, which was never checked. The new steps unpack in place and say to move the files up if tar made a folder. The header also says only what the paper says, that people wrote the pinyin by listening. No code changes.
The neutral tone now takes its pitch from the last full tone, 2 after tone 1, 3 after tone 2, 4 after tone 3 and 1 after tone 4, as the cited source gives. Only tones="letters" changes. The speaker info gains the ISO code and Glottocode, a missing WAV names its path, a name twice in content.txt fails, and chunks after the WAV data are allowed.
The notes now give the neutral tone rule and its source, flag r and iong for a check, and correct the count of test lines shared with train to 11,066.
The table now lists the LibreTexts page behind the neutral tone rule, and says why lo is skipped. The final o of the table is uo, which holds only after b, p, m and f. Dates are in Pacific time. Labels do not change.
The notes now cite LibreTexts, give the reason lo is skipped, and use Pacific time, as the table does.
SanderGi
marked this pull request as ready for review
November 20, 2026 23:53
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
aishell3_pinyin_ipa.json, so the labels are phonemic.test_new_speakerswith the 44 unseen speakers. Tones are off by default, andtones="letters"adds them.docs/datasets/AISHELL3.md.Worth a look
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.