-
Notifications
You must be signed in to change notification settings - Fork 505
[WIP] Adding Google SVQ dataset + some refactoring #3529
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
Draft
silky1708
wants to merge
8
commits into
embeddings-benchmark:maeb
Choose a base branch
from
silky1708:google_svq
base: maeb
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1e0e4b9
add task subtype
silky1708 58b477c
add voxlingua107-top10 dataset
silky1708 a546ae0
updates
silky1708 b3c9573
Merge branch 'embeddings-benchmark:maeb' into maeb
silky1708 db70816
rename audio reranking
silky1708 3b93da7
add google svq dataset
silky1708 8108372
rename audio reranking
silky1708 f0fb1bd
make lint
silky1708 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
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
2 changes: 2 additions & 0 deletions
2
mteb/tasks/audio/any_2_any_retrieval/multilingual/__init__.py
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
58 changes: 58 additions & 0 deletions
58
mteb/tasks/audio/any_2_any_retrieval/multilingual/google_svq.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| from mteb.abstasks.image.abs_task_any2any_retrieval import AbsTaskAny2AnyRetrieval | ||
| from mteb.abstasks.task_metadata import TaskMetadata | ||
|
|
||
| # Google SVQ supports 17 languages | ||
| _EVAL_LANGS = { | ||
| "ar_eg": ["arz"], | ||
| "ar_x_gulf": ["acm"], | ||
| "ar_x_levant": ["apc"], | ||
| "ar_x_maghrebi": ["arq"], | ||
| "bn_bd": ["ben"], | ||
| "bn_in": ["ben"], | ||
| "en_au": ["eng"], | ||
| "en_gb": ["eng"], | ||
| "en_in": ["eng"], | ||
| "en_ph": ["eng"], | ||
| "en_us": ["eng"], | ||
| "fi_fi": ["fin"], | ||
| "id_id": ["ind"], | ||
| "ko_kr": ["kor"], | ||
| "ru_ru": ["rus"], | ||
| "sw": ["swa"], | ||
| "te_in": ["tel"], | ||
| } | ||
|
|
||
|
|
||
| class GoogleSVQA2TRetrieval(AbsTaskAny2AnyRetrieval): | ||
| metadata = TaskMetadata( | ||
| name="GoogleSVQA2TRetrieval", | ||
| description="Natural language transcription for short voice questions", | ||
| reference="https://github.com/nateraw/download-musiccaps-dataset", | ||
| dataset={ | ||
| "path": "google/svq", | ||
| "revision": "177e4fa88e59148dc746471e164b0b46b193f41f", | ||
| }, | ||
| type="Any2AnyRetrieval", | ||
| category="a2t", | ||
| modalities=["audio", "text"], | ||
| eval_splits=["test"], | ||
| eval_langs=_EVAL_LANGS, | ||
| main_score="cv_recall_at_5", | ||
| date=("2025-01-01", "2025-12-31"), | ||
| domains=["Spoken"], | ||
| task_subtypes=["Speech Transcription Retrieval"], | ||
| license="cc-by-4.0", | ||
| annotations_creators="human-annotated", | ||
| dialect=[], | ||
| sample_creation="human-translated", | ||
| bibtex_citation=r""" | ||
| @inproceedings{ | ||
| heigold2025massive, | ||
| title={Massive Sound Embedding Benchmark ({MSEB})}, | ||
| author={Georg Heigold and Ehsan Variani and Tom Bagby and Cyril Allauzen and Ji Ma and Shankar Kumar and Michael Riley}, | ||
| booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems Datasets and Benchmarks Track}, | ||
| year={2025}, | ||
| url={https://openreview.net/forum?id=X0juYgFVng} | ||
| } | ||
| """, | ||
| ) | ||
2 changes: 1 addition & 1 deletion
2
mteb/tasks/audio/audio_reranking/eng/audio_caps_mini_reranking.py
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
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
2 changes: 1 addition & 1 deletion
2
mteb/tasks/audio/audio_reranking/eng/fs_dnoisy18k_audio_reranking.py
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
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
2 changes: 1 addition & 1 deletion
2
mteb/tasks/audio/audio_reranking/eng/urban_sound8_k_audio_reranking.py
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
2 changes: 1 addition & 1 deletion
2
mteb/tasks/audio/audio_reranking/eng/vocal_sound_audio_reranking.py
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
Oops, something went wrong.
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.
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.
After #3528 you need to inherit from
AbsTaskRetrieval