'Train MaltParser from a list of ``DependencyGraph`` objects
:param depgraphs: list of ``DependencyGraph`` objects for training input data
:type depgraphs: DependencyGraph'

def train(self, depgraphs, verbose=False):

    with tempfile.NamedTemporaryFile(prefix=u'malt_train.conll.', dir=self.working_dir, mode=u'w', delete=False) as input_file:
        input_str = u'\n'.join((dg.to_conll(10) for dg in depgraphs))
        input_file.write(text_type(input_str))
    self.train_from_file(input_file.name, verbose=verbose)
    os.remove(input_file.name)
