iemocap#

(s3prl.dataio.corpus.iemocap)

Parse the IEMOCAP corpus

Authors:
  • Leo 2022

  • Cheng Liang 2022

IEMOCAP#

class s3prl.dataio.corpus.iemocap.IEMOCAP(dataset_root: str, n_jobs: int = 4)[source][source]#

Bases: Corpus

Parse the IEMOCAP dataset

Parameters:

dataset_root – (str) The dataset root of IEMOCAP

property all_data[source]#

Return: dict

all the data points of IEMOCAP in the format of

data_id1:
    wav_path (str): The waveform path
    speaker (str): The speaker name
    act (str): improvised / scripted
    emotion (str): The emotion label
    session_id (int): The session

data_id2:
    ...
get_whole_session(session_id: int)[source][source]#
Parameters:

session_id (int) – The session index selected from 1, 2, 3, 4, 5

Returns:

dict

data points in a single session (containing improvised and scripted recordings) in the same format as all_data

get_session_with_act(session_id: int, act: str)[source][source]#
Parameters:
  • session_id (int) – The session index selected from 1, 2, 3, 4, 5

  • act (str) – ‘improvised’ or ‘scripted’

Returns:

s3prl.base.container.Container

data points in a single session with a specific act (either improvised or scripted) in the same format as all_data

classmethod download_dataset(tgt_dir: str) None[source][source]#
property data_split[source]#
abstract property data_split_ids[source]#
static dataframe_to_datapoints(df: DataFrame, unique_name_fn: callable)[source]#