code: private List<Word> seg(String text){
          if(text == null){
              return Collections.emptyList();
          }
          if(segmentation == null){
              //延迟初始化
              segmentation = SegmentationFactory.getSegmentation(SegmentationAlgorithm.MaxNgramScore);
          }
          List<Word> words = segmentation.seg(text);
          if(filterStopWord) {
              //停用词过滤
              StopWord.filterStopWords(words);
          }
          return words;
      }
docs: 对文本进行分词
  @param text 文本
  @return 分词结果