nltk.parse.ProbabilisticNonprojectiveParser.train¶
-
ProbabilisticNonprojectiveParser.
train
(graphs, dependency_scorer)[source]¶ Trains a
DependencyScorerI
from a set ofDependencyGraph
objects, and establishes this as the parser’s scorer. This is used to initialize the scores on aDependencyGraph
during the parsing procedure.Parameters: - graphs (list(DependencyGraph)) – A list of dependency graphs to train the scorer.
- dependency_scorer (DependencyScorerI) – A scorer which implements the
DependencyScorerI
interface.