nltk.parse.ProbabilisticNonprojectiveParser.initialize_edge_scores

ProbabilisticNonprojectiveParser.initialize_edge_scores(graph)[source]

Assigns a score to every edge in the DependencyGraph graph. These scores are generated via the parser’s scorer which was assigned during the training process.

Parameters:graph (DependencyGraph) – A dependency graph to assign scores to.