'Train MaltParser from a file
:param conll_file: str for the filename of the training input data
:type conll_file: str'

def train_from_file(self, conll_file, verbose=False):

    if isinstance(conll_file, ZipFilePathPointer):
        with tempfile.NamedTemporaryFile(prefix=u'malt_train.conll.', dir=self.working_dir, mode=u'w', delete=False) as input_file:
            with conll_file.open() as conll_input_file:
                conll_str = conll_input_file.read()
                input_file.write(text_type(conll_str))
            return self.train_from_file(input_file.name, verbose=verbose)
    cmd = self.generate_malt_command(conll_file, mode=u'learn')
    ret = self._execute(cmd, verbose)
    if (ret != 0):
        raise Exception((u'MaltParser    training    (%s)    failed    with    exit    code    %d' % (u'    '.join(cmd), ret)))
    self._trained = True
