pyeeg.features.alignment.Interval

class pyeeg.features.alignment.Interval(start: float, end: float, label: str, tier: str)

Represents an interval (tier item) in a TextGrid file.

Parameters:
  • start (float) – Start time of the interval in seconds.

  • end (float) – End time of the interval in seconds.

  • label (str) – Label of the interval (e.g. the transcribed word or phone).

  • tier (str) – Name of the tier this interval belongs to.

Methods

Interval.contains(time)

Check whether a time point falls inside the interval.

Interval.duration()

Duration of the interval in seconds.