![]()
AnvilConverter for Annotation Graphs (AG)
This website gives ANVIL related information for the 2007 Multimodal Annotation Tools Workshop in Chicago. The organizers proposed Annotation Graphs (AGs) as an interoperability format. Here, you will find source code and documentation for an Anvil-AG conversion in both directions.
One key difference between ANVIL and AG is that ANVIL keeps structural information in a separate file called specification. It contains track definitions, annotation element structure (typed attributes), group structure etc.
The tool AnvilConverter does the following conversions:
- Anvil -> AG: This is straightforward, a valid AG file is produced. The specification file location is stored as metadata in the produced AG file.
- AG -> Anvil:
- Case A: You have an ANVIL specification for your AG file (because you initially converted from ANVIL or you wrote one by hand). In this case conversion is also straightforward - no data is lost!
- Case B: You do not have an ANVIL specification. The tool automatically extracts a specification from the AG file. The resulting specification can only produce tracks where non-empty tracks were found in the AG file. The same applies for attributes.
An interesting side-effect: If you do a "round trip" from ANVIL to AG to ANVIL, without keeping the specification, you will get an ANVIL annotation stripped of all empty tracks and attributes.
Now for the resources:
- AnvilConverter files (download all, put in a single directory, start the .bat file under Windows):
convert.bat AnvilConverter.jar agtk.jar (NEW!) anvil.jar- AnvilConverter source code: AnvilConverter-Src.zip
- Notes on AnvilConverter: word document
- Samples of converted files are here (NEW!)
- The workshop organizers also provide several ANVIL annotation files, complete with video and ANVIL specification: Workshop resources
For questions or feedback please contact me under:
kipp (at) dfki (dot) de