Hi (is Han still running the show? If so - Hi Han!)!
I’m doing the unthinkable, which is trying to force a tier structure (e.g., both Parent and Child tiers) on an ELAN file that currently consists only of Parent tiers. This is because I did data cleaning in R using the .csv and then reimported back to ELAN, but now I want to get the dependencies sorted so that the ELAN file is functional for coding going forward.
For very good reasons, I understand that you can’t simply import the .csv into a template with dependent tiers, as because of the constraints, some annotations might dissapear if the alignment of any of the proposed child annotations are slightly out of sync with the proposed parent annotations. I have however time aligned all the dependent annotations in R on the .csv, so am confident that if I could do this, I won’t lose anything (and can run checks to determine if anything has dissapeared).
So as I understand it, my options are “Change Parent of Tier” or “Copy Annotations from Tier to Tier” from within ELAN. However, I will have to do this across multiple files, with multiple tiers per file, introducing the possibility of errors if I do this tier by tier, file by file (although it’s not impossible, and I can run automatic checks on the files after to make sure it’s been done correctly).
I’ve tried scripting it, by directly editing the xml in R (following Amalia Skilton’s excellent GitHub repository of code - github[dot]com/amaliaskilton/eaf_scripts), however my understanding of the XML is limited, and editing all the different elements of the annotation script for each annotation (e.g., moving from TIME_SLOT_REF to ANNOTATION_REF) is an intense process, especially in R. Again, not theoretically impossible, but perhaps at this point, a longer task than the edits using ELAN.
So my question is - is there anything I’ve missed - i.e., some functionality I don’t know about (e.g., within the Multi File Editor) that can make this task easier? No problem if not, of course, the options that exist within ELAN are still incredibly helpful - this issue has arisen because of misuse of ELAN…
Thanks!
Ed
