Rendering GrAF xml files

31 views
Skip to first unread message

Emanuele Lapponi

unread,
Jul 31, 2013, 5:21:21 AM7/31/13
to poio-d...@googlegroups.com
Hi there! I am working with LAF/GrAF for a system we are developing at the University of Oslo--- http://www.mn.uio.no/ifi/english/research/projects/clarino/ ---and I just started using the graf-python library. While the documentation is clear in terms of parsing and working with existing GrAF files, I am specifically looking into rendering GRaF xml files from existing annotations (a dataset in CoNLL format, say). It looks like graf.GrafRenderer might help me out with that, but I am having trouble figuring out how it works. Are there any tutorials/examples I could take a look at? Thanks in advance!

pbouda

unread,
Jul 31, 2013, 12:01:14 PM7/31/13
to poio-d...@googlegroups.com
Hi Emanuele,

the GrafRenderer is indeed the class to render the content of a GrAF object. If you constructed your GrAF object you may call it like this:

renderer = graf.GrafRenderer("filename.xml")
renderer.render(graf_object)

We have another library to support the handling of tier-based annotations (like Typcraft or Elan XML files) as GrAF objects, with parsing and writing between file formats as a main activity. It uses GrAF as pivot structures and is called Poio API:

http://media.cidles.eu/poio/poio-api/

Maybe CoNLL would be candidate for support in Poio API? Can you point me to a good description of CoNLL?

Best,
Peter

Emanuele Lapponi

unread,
Aug 1, 2013, 4:29:45 AM8/1/13
to poio-d...@googlegroups.com
Hi Peter and thanks for your answer. 

CoNLL is a format for tab-separated, token level annotations used in CoNLL shared tasks and for example Maltparser.
The input and output file description for the parser is here: http://nextens.uvt.nl/depparse-wiki/DataFormat

Regards,
Emanuele

pbouda

unread,
Aug 11, 2013, 8:34:13 AM8/11/13
to poio-d...@googlegroups.com
Hi Emanuele,

I put the format on my list for the formats that we want to support in the future. But I cannot promise when we will be able to implement this, not too far in the future, I hope. FYI, I just updated the documentation with a description how to add new file formats to Poio API:

https://poio-api.readthedocs.org/en/latest/parserwriter_howto.html

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