code: def cut(sentence, HMM=True):
      
      global dt
      if jieba.pool is None:
          for w in dt.cut(sentence, HMM=HMM):
              yield w
      else:
          parts = strdecode(sentence).splitlines(True)
          if HMM:
              result = jieba.pool.map(_lcut_internal, parts)
          else:
              result = jieba.pool.map(_lcut_internal_no_hmm, parts)
          for r in result:
              for w in r:
                  yield w
docs: Global `cut` function that supports parallel processing.
  
      Note that this only works using dt, custom POSTokenizer
      instances are not supported.