nltk.parse.TransitionParser.parse

TransitionParser.parse(depgraphs, modelFile)[source]
Parameters:
  • depgraphs (list(DependencyGraph)) – the list of test sentence, each sentence is represented as a dependency graph where the ‘head’ information is dummy
  • modelfile (str) – the model file
Returns:

list (DependencyGraph) with the ‘head’ and ‘rel’ information