ProbabilisticNonprojectiveParser.train(graphs, dependency_scorer)[source]

Trains a DependencyScorerI from a set of DependencyGraph objects, and establishes this as the parser’s scorer. This is used to initialize the scores on a DependencyGraph during the parsing procedure.

  • graphs (list(DependencyGraph)) – A list of dependency graphs to train the scorer.
  • dependency_scorer (DependencyScorerI) – A scorer which implements the DependencyScorerI interface.