Issues parsing TextGrids from ELAN
See original GitHub issueI’ve had a couple of users reporting issues with loading TextGrids exported from ELAN. The issue seems to be that the “item [1]” lines are formatted without a space (“item[1]”), so the parsing in https://github.com/timmahrt/praatIO/blob/master/praatio/tgio.py#L1896 fails. I think a reasonable fix would be something like re.split(r'item ?\[', data, flags=re.MULTILINE)[1:]
.
Looks like you’re working on a 5.0, so don’t know if that would be the place to fix it or if it would be better for me to submit a PR for the main branch.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
1.4.2. Import from
Praat TextGrid file (Section 1.4.2.7) ... ELAN supports the import of documents from Toolbox, allowing you to link transcribed and/or ... Remaining issues:....
Read more >Some tips and tricks for using ELAN - Kelsey C. Neely
How to import Praat TextGrids to ELAN (and vice-versa) and link Praat ... Mode: a new mode in ELAN 5 and higher that...
Read more >Speeding Up Segmentation | Naomi Peck
This outputs a TextGrid, which can then be imported into ELAN and adjusted ... of the parse and I can adjust the settings...
Read more >praat2yaml.pl fails (#5) · Issues · cpran / plugin_serialise · GitLab
I am running praat2yaml.pl on a file exported from ELAN and it fails, but I... ... Object class: TextGrid xmin: 0.0 xmax: 69.172...
Read more >Advanced ELAN manipulation and analysis
This approach also has its own issues, and it is never trivial to run old code on a new computer ... not necessarily...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll pin the version for the next release I’ll be doing shortly, and then I’ll work on upgrading for 5.0 for the following one. I don’t imagine the changes will be too much, since I’m just relying on a very small subset of the praatio functionality.
Closing this out since it should be all resolved and everything has been migrated over to 5.0 in MFA.