nltk.parse.NaiveBayesDependencyScorer.score¶
-
NaiveBayesDependencyScorer.
score
(graph)[source]¶ Converts the graph into a feature-based representation of each edge, and then assigns a score to each based on the confidence of the classifier in assigning it to the positive label. Scores are returned in a multidimensional list.
Parameters: graph (DependencyGraph) – A dependency graph to score. Return type: 3 dimensional list Returns: Edge scores for the graph parameter.