nltk.DependencyGraph.load

static DependencyGraph.load(filename, zero_based=False, cell_separator=None, top_relation_label=u'ROOT')[source]
Parameters:
  • filename – a name of a file in Malt-TAB format
  • zero_based – nodes in the input file are numbered starting from 0

rather than 1 (as produced by, e.g., zpar) :param str cell_separator: the cell separator. If not provided, cells are split by whitespace. :param str top_relation_label: the label by which the top relation is identified, for examlple, ROOT, null or TOP.

Returns:a list of DependencyGraphs