-
Notifications
You must be signed in to change notification settings - Fork 568
Add IEMOCAP dataset #2380
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
Closed
Closed
Add IEMOCAP dataset #2380
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.abstasks.Audio.AbsTaskAudioClassification import ( | ||
| AbsTaskAudioClassification, | ||
| ) | ||
| from mteb.abstasks.TaskMetadata import TaskMetadata | ||
|
|
||
|
|
||
| class IEMOCAP(AbsTaskAudioClassification): | ||
| metadata = TaskMetadata( | ||
| name="IEMOCAP", | ||
| description="""IEMOCAP was recorded from ten actors in dyadic sessions with markers on the face, head, | ||
| and hands, which provide detailed information about their facial expression and | ||
| hand movements during scripted and spontaneous spoken communication scenarios. | ||
| actors performed selected emotional scripts and also improvised hypothetical | ||
| scenarios designed to elicit specific types of emotions (happiness, anger, sadness, frustration and neutral state). | ||
| After autmoated annotations, the final emotional categories selected for annotation were : | ||
| anger, sadness, happiness, disgust, fear and surprise, plus frustration, excited and neutral states | ||
| """, | ||
| reference="https://huggingface.co/datasets/AbstractTTS/IEMOCAP", | ||
| dataset={ | ||
| "path": "AbstractTTS/IEMOCAP", | ||
| "revision": "9f1696a135a65ce997d898d4121c952269a822ca", | ||
| }, | ||
| type="AudioClassification", | ||
| category="a2t", | ||
| eval_splits=["train"], | ||
| eval_langs=["eng-Latn"], | ||
| main_score="accuracy", | ||
| date=("2024-08-09", "2024-08-11"), | ||
| domains=["Spoken"], | ||
| task_subtypes=["Emotion classification"], | ||
| license="not specified", | ||
| annotations_creators="automatic-and-reviewed", | ||
| dialect=[], | ||
| modalities=["audio"], | ||
| sample_creation="created", | ||
| bibtex_citation="""@article{article, | ||
| author = {Busso, Carlos and Bulut, Murtaza and Lee, Chi-Chun and Kazemzadeh, Abe and Mower Provost, Emily and Kim, Samuel and Chang, Jeannette and Lee, Sungbok and Narayanan, Shrikanth}, | ||
| year = {2008}, | ||
| month = {12}, | ||
| pages = {335-359}, | ||
| title = {IEMOCAP: Interactive emotional dyadic motion capture database}, | ||
| volume = {42}, | ||
| journal = {Language Resources and Evaluation}, | ||
| doi = {10.1007/s10579-008-9076-6} | ||
| }""", | ||
| # https://ecs.utdallas.edu/research/researchlabs/msp-lab/publications/Busso_2008_5.pdf | ||
| descriptive_stats={ | ||
| "n_samples": {"train": 10039}, | ||
| }, | ||
| ) | ||
|
|
||
| audio_column_name: str = "audio" | ||
| label_column_name: str = "major_emotion" | ||
| samples_per_label: int = 10 | ||
| is_cross_validation: bool = True | ||
|
|
||
| def dataset_transform(self): | ||
| ## required to run the dataloader for cross-validation | ||
| import torch | ||
|
|
||
| torch.multiprocessing.set_sharing_strategy("file_system") | ||
| ######################################################### | ||
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.
This is checked but I don't see that completed in the PR.