code: def segment(self, text, lower=True, use_stop_words=True, use_speech_tags_filter=False):
          
          jieba_result = cut_for_search(text)
          jieba_result = [w for w in jieba_result]
  
          # 去除特殊符号
          word_list = [w.strip() for w in jieba_result]
          word_list = [word for word in word_list if len(word) > 0]
  
          if use_speech_tags_filter == False:
              jieba_result = [w for w in jieba_result]
  
          if lower:
              word_list = [word.lower() for word in word_list]
  
          if use_stop_words:
              word_list = [word.strip() for word in word_list if word.strip() not in self.stop_words]
  
          return word_list
docs: 对一段文本进行分词，返回list类型的分词结果
  
          Keyword arguments:
          lower                  -- 是否将单词小写（针对英文）
          use_stop_words         -- 若为True，则利用停止词集合来过滤（去掉停止词）
          use_speech_tags_filter -- 是否基于词性进行过滤。若为True，则使用self.default_speech_tag_filter过滤。否则，不过滤。