docstr: The main function that segments an entire sentence that contains
  Chinese characters into separated words.
  Args:
      sentence(str): The str(unicode) to be segmented.
      use_paddle(bool): Whether use jieba paddle model or not. Default as true.
      cut_all(bool): Model type. True for full pattern, False for accurate pattern.
      HMM(bool): Whether to use the Hidden Markov Model.
  
  Returns:
      results(dict): The word segmentation result of the input sentence, whose key is 'word'.
docstr_tok: ["The","main","function","that","segments","an","entire","sentence","that","contains","Chinese","characters","into","separated","words",".","Args",":","sentence","(","str",")",":","The","str","(","unicode",")","to","be","segmented",".","use_paddle","(","bool",")",":","Whether","use","jieba","paddle","model","or","not",".","Default","as","true",".","cut_all","(","bool",")",":","Model","type",".","True","for","full","pattern",",","False","for","accurate","pattern",".","HMM","(","bool",")",":","Whether","to","use","the","Hidden","Markov","Model",".","Returns",":","results","(","dict",")",":","The","word","segmentation","result","of","the","input","sentence",",","whose","key","is","'word","'","."]
code: def cut(self, sentence, use_paddle=True, cut_all=False, HMM=True):
      """
      The main function that segments an entire sentence that contains
      Chinese characters into separated words.
      Args:
          sentence(str): The str(unicode) to be segmented.
          use_paddle(bool): Whether use jieba paddle model or not. Default as true.
          cut_all(bool): Model type. True for full pattern, False for accurate pattern.
          HMM(bool): Whether to use the Hidden Markov Model.
  
      Returns:
          results(dict): The word segmentation result of the input sentence, whose key is 'word'.
      """
      self.check_dependency()
      import jieba
  
      jieba.setLogLevel(logging.ERROR)
      jieba._compat.setLogLevel(logging.ERROR)
  
      if use_paddle:
          jieba.enable_paddle()
          res = " ".join(jieba.cut(sentence, use_paddle=True))
          seg_list = res.strip(" ").split(" ")
      else:
          res = " ".join(jieba.cut(sentence, cut_all=cut_all, HMM=HMM))
          seg_list = res.strip(" ").split(" ")
  
      return seg_list
  
file_path: PaddleHub/modules/text/lexical_analysis/jieba_paddle/module.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import os
  import paddlehub
  from paddlehub.common.logger import logger
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import serving
label_desc: Use image node_id 2 for calling the JiebaPaddle obj's underlying member method code with example usage: obj.cut(sentence, use_paddle, cut_all, HMM) and returns: seg_list