jieba分词基本使用

时间:2017-12-06 15:57:23   收藏:0   阅读:203
1 import jieba
2 with open(lagoujobdatails.txt,encoding=utf-8) as f:
3     tmp_line=f.read()
4     jieba_cut=jieba.cut(tmp_line)
5     ans= .join(jieba_cut)
6     with open(jieba5.txt,w,encoding=utf-8) as f2:
7         f2.write(ans)

 

原文:http://www.cnblogs.com/realmonkeykingsun/p/7992850.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!