python 使用jieba 分词
代码如下:
import jieba jieba.setLogLevel(jieba.logging.INFO) # 不打印jieba自带的记录 sentence = input("输入句子:") seg_list = jieba.cut(sentence) print("输出句子:", "/".join(seg_list))
hello my world
本文来自博客园,作者:slowlydance2me,转载请注明原文链接:https://www.cnblogs.com/slowlydance2me/p/16838648.html