nltk.parse.ProbabilisticProjectiveDependencyParser.parse

ProbabilisticProjectiveDependencyParser.parse(tokens)[source]

Parses the list of tokens subject to the projectivity constraint and the productions in the parser’s grammar. This uses a method similar to the span-concatenation algorithm defined in Eisner (1996). It returns the most probable parse derived from the parser’s probabilistic dependency grammar.