''

def segment_file(self, input_file_path):

    cmd = [self._java_class, u'-loadClassifier', self._model, u'-keepAllWhitespaces', self._keep_whitespaces, u'-textFile', input_file_path]
    if (self._sihan_corpora_dict is not None):
        cmd.extend([u'-serDictionary', self._dict, u'-sighanCorporaDict', self._sihan_corpora_dict, u'-sighanPostProcessing', self._sihan_post_processing])
    stdout = self._execute(cmd)
    return stdout
