Groups¶
- bt4vt.groups.split_scores_by_speaker_groups(scores, speaker_metadata, speaker_groups, id_delimiter)[source]¶
Construction of a dictionary that holds a list of tuples (label, score) for the speaker groups as defined in the config file and their corresponding subgroups.
- Parameters:
scores (DataFrame) – DataFrame that contains reference and test utterances and corresponding labels and scores
speaker_metadata (DataFrame) – DataFrame that contains speaker metadata with speaker ids and speaker groups attributes as specified in config file
speaker_groups (list) – List of speaker groups as specified in config file
id_delimiter (string) – If not specified in config file, default is “/”
- Returns:
scores_by_speaker_groups
- Return type:
dict