Closed mmcauliffe closed 3 years ago
Thanks for the PR! I will review this over the weekend.
There have been a lot of changes in Praatio 5--I don't think I've added a lot of validation to textgrid reading, so I can take a look into adding that as well.
Thanks!
Resolves #30
So added in the fixes to get parsing working for the Elan textgrids, added a version of the bobby_phones as well to test it. I did some slight refactoring of the loading code to lean on regular expressions, it should be simpler and faster.
One additional thing that I noticed is that the
hasData
bool isn't used, and there isn't any validation checks for whether it was correctly parsed. You might already be planning on that for 5.0, but it'd be helpful for debugging purposes if tgio would throw an error when it doesn't find any parse-able tiers but it's not a huge thing.