CtmInterval#

class montreal_forced_aligner.data.CtmInterval(begin, end, label, confidence=None, *args, **kwargs)[source]#

Bases: object

Data class for intervals derived from CTM files

Parameters:
  • begin (float) – Start time of interval

  • end (float) – End time of interval

  • label (str) – Text of interval

  • confidence (float, optional) – Confidence score of the interval

to_tg_interval(file_duration=None)[source]#

Converts the CTMInterval to PraatIO’s Interval class

Returns:

Derived PraatIO Interval

Return type:

praatio.utilities.constants.Interval