GraphParser

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

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'>)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

parse(stream, graph=None)[source]

Parses the XML file at the given path.

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