Function reference
Sequence Classes
These classes define attributes and methods for Intervals and Points.
Common Features
These classes define common attributes and methods available to intervals and points.
WithinMixins | A collection of attributes defining within and contains realtions |
PrecedenceMixins | Methods and attributes for SequenceIntervals and SequencePoints |
InTierMixins | Methods and attrubites relating Sequence* objects to tiers. |
Intervals
The basic SequenceInterval
class and special Top
and Bottom
classes. For customized SequenceIntervals
, see Word and Phone, or custom_classes()
.
SequenceInterval | A class to describe an interval with precedence relationships and hierarchical relationships |
Top | A top level interval class |
Bottom | A bottom level interval class |
Points
There is just a single SequencePoint class, since points don’t have hierarchical relationships defined.
SequencePoint | Sequence Points |
SequenceList
SequenceList | A list of SequenceIntervals or SequencePoints that |
Tiers
Tiers Classes
Common Features
These classes define common attributes and methods shared accross all tier and tiergroups.
TierMixins | Methods and attributes for Sequence Tiers |
TierGroupMixins | Methods and attributes for grouped tiers |
Tiers and Tier Groups
These classes define tiers and tier groups.
SequenceTier | A sequence tier |
SequencePointTier | A SequencePointTier class |
TierGroup | Tier Grouping |
PointsGroup | A collection of point tiers |
TextGrids
TextGrid Classes
AlignedTextGrid | An aligned Textgrid |
Custom Classes
Custom Classes
Custom Class Creation
This is a function that will quickly create custom classes
custom_classes | Generate custom interval classes |
custom_classes.clone_class | Clone an entry class. It will have the same name, but |
custom_classes.get_class_hierarchy | Given a SequenceInterval, this will return |
Word and Phone Classes
These are mostly intended to be used with textgrids that are the product of forced alignment.
Word | A Word subclass of SequenceInterval |
Phone | A Phone subclass of SequenceInterval |
PoLaR Classes
These are classes intended to make it easier to work with PoLaR annotation.
PrStr | PrStr tier points |
ToBI | A ToBI point class |
ToBI | A ToBI point class |
TurningPoints | A turning point class |
Ranges | A ranges interval |
Levels | A levels point class |
Misc | Misc points |
DataFrame outputs
This will return a polars dataframe given an aligned_textgrid
object
to_df | Return an aligned_textgrid object as a dataframe |