'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.
:type graphs: list(DependencyGraph)
:param graphs: A list of dependency graphs to train the scorer.
:type dependency_scorer: DependencyScorerI
:param dependency_scorer: A scorer which implements the
``DependencyScorerI`` interface.'

def train(self, graphs, dependency_scorer):

    self._scorer = dependency_scorer
    self._scorer.train(graphs)
