GraphParser

class graf.GraphParser(get_dependency=None, parse_anchor=<type 'int'>, constants=<class 'graf.io.Constants'>)

Used to parse the GrAF XML representation and construct the instance of C{Graph} objects.

version: 1.0.

__init__(get_dependency=None, parse_anchor=<type 'int'>, constants=<class 'graf.io.Constants'>)
parse(stream, graph=None)

Parses the XML file at the given path.

Returns:a Graph representing the annotated text in GrAF format
Return type:Graph