dopefishh / pympi

A python module for processing ELAN and Praat annotation files
MIT License
93 stars 39 forks source link

Bug fixes in 'Elan.extract' #53

Closed coxchristopher closed 10 months ago

coxchristopher commented 10 months ago

Extracting a section of an ELAN transcript (via 'ELAN.extract') occasionally failed in recent versions of pympi-ling, since it sometimes removed parent annotations on time-aligned tiers before the child annotations on reference tiers that pointed to them. This caused 'remove_annotation' to fail when those child annotations were eventually removed. The changes in this branch fix that problem by removing annotations on reference tiers first, then those on time-aligned tiers.

dopefishh commented 10 months ago

thanks!