question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues parsing TextGrids from ELAN

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mmcauliffecommented, Aug 7, 2021

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.

0reactions
mmcauliffecommented, Nov 10, 2021

Closing this out since it should be all resolved and everything has been migrated over to 5.0 in MFA.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found