a simple parser for simple eaf files
✓ Published0🌍 Public
Aamundo
Last edited Jul 3, 2020
Created on Jul 2, 2020
This example parses ELAN annotation files into structured sentence data, extracting media references, time-aligned annotations, and translation tiers from the XML. It uses the DOM `querySelectorAll` API to navigate the EAF structure, building a time-slot index for resolving timestamps. The parser sorts sentences chronologically and merges referenced annotations with their alignable counterparts. It demonstrates a lightweight approach for converting EAF files into JSON-ready objects for further visualization or analysis.
AI-generated description