pnpl.tasks.armeni2022.PhonemeClassification#
- class pnpl.tasks.armeni2022.PhonemeClassification(tmin=-0.2, tmax=0.6, label_type='phoneme', exclude_phonemes=<factory>, skip_negative_onset=True, _phonemes_sorted=<factory>, _phoneme_to_id=<factory>)[source]#
Multi-class phoneme classification on Armeni 2022.
- Parameters:
tmin (float) – Start time relative to phoneme onset (seconds).
tmax (float) – End time relative to phoneme onset (seconds).
label_type (str) –
"phoneme"for multi-class,"voicing"for binary voiced/unvoiced.exclude_phonemes (list) – ARPABET symbols to drop.
skip_negative_onset (bool) – If True (default), drop events whose onset is <= 0 — pre-stimulus / sync triggers in the recording.
_phonemes_sorted (list)
_phoneme_to_id (dict)
- __init__(tmin=-0.2, tmax=0.6, label_type='phoneme', exclude_phonemes=<factory>, skip_negative_onset=True, _phonemes_sorted=<factory>, _phoneme_to_id=<factory>)#
- Parameters:
tmin (float)
tmax (float)
label_type (str)
exclude_phonemes (list)
skip_negative_onset (bool)
_phonemes_sorted (list)
_phoneme_to_id (dict)
- Return type:
None
Methods
__init__([tmin, tmax, label_type, ...])collect_samples(dataset)get_label(sample)Attributes
label_infolabel_typeskip_negative_onsettmaxtminexclude_phonemes