poio to manipulate eaf files

16 views
Skip to first unread message

Aliabbas Petiwala

unread,
Aug 11, 2013, 9:55:05 AM8/11/13
to poio-discuss, pbo...@cidles.eu
I have some eaf files for  a specific template(schema) and now my template has changed slightly , hence I need to transform the old schema based eaf files to the new template. I know it involves XML transformations , but  Its difficult to achieve using that , how can I use GRaf api to do this? if not how can I use XML transformation for this? I am attaching the files as sample old.eaf is the old format and new.eaf is the new(target) format, the major change it the introduction of parent tier "transcript" for most of the other tiers.

--
new.eaf
old.eaf

pbouda

unread,
Aug 13, 2013, 7:24:15 AM8/13/13
to poio-d...@googlegroups.com, pbo...@cidles.eu
That is indeed one of the use cases that I had in mind for Poio API. You might also be able to do this with XML transformations, but in Poio API it's just a matter of creating edges between nodes on the parent tier and the child tier. It is still not very convenient, but I wrote a short script that points you in the direction:

https://gist.github.com/pbouda/6220175

You might still want to remove the regions from the nodes (as they are not time-aligned in your new.eaf, as far as I see) and then change the linguistic types of the tiers. Let me know if I can help with anything, from here on.

Best,
Peter
Reply all
Reply to author
Forward
0 new messages