-
Notifications
You must be signed in to change notification settings - Fork 233
In CommonVoice corpus, use .tsv headers to parse and not column index #1328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you, this looks good, LMK when it's ready to merge. |
lhotse/recipes/commonvoice.py
Outdated
@@ -207,9 +208,16 @@ def _prepare_part( | |||
futures = [] | |||
recordings = [] | |||
supervisions = [] | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary whitespace
audio_infos = iter(f.readlines()) | ||
# Create a dict for each row | ||
# Ex: {'client_id': '0da3ad6381619ef478d86896731ccbf88c6209354a892a5c69b8259a67919b4755b14427ef80b197c4c3886e906849dd6af792d3e631eb9ac1cbc110019f5201', 'path': 'common_voice_de_19058316.mp3', 'sentence_id': '9416f9e6c0524877a0437e143c62c8502160b0bf6246126c94894deca0fcad28', 'sentence': 'Alle Fluchtwege sind abgeschnitten.', 'sentence_domain': '', 'up_votes': '2', 'down_votes': '0', 'age': 'teens', 'gender': 'male_masculine', 'accents': 'Deutschland Deutsch', 'variant': '', 'locale': 'de', 'segment': ''} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here
I think it ready |
Thanks! |
Minor parsing change, fix for #1325