''

def segment_sents(self, sentences):

    encoding = self._encoding
    (_input_fh, self._input_file_path) = tempfile.mkstemp(text=True)
    _input_fh = os.fdopen(_input_fh, u'wb')
    _input = u'\n'.join((u'    '.join(x) for x in sentences))
    if (isinstance(_input, text_type) and encoding):
        _input = _input.encode(encoding)
    _input_fh.write(_input)
    _input_fh.close()
    cmd = [self._java_class, u'-loadClassifier', self._model, u'-keepAllWhitespaces', self._keep_whitespaces, u'-textFile', self._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)
    os.unlink(self._input_file_path)
    return stdout
