Python under stuttering Chinese participle

Source: Internet
Author: User

http://blog.csdn.net/pipisorry/article/details/45311229

The use of Jieba Chinese participle

import  jiebasentences =  [  "I like potatoes" ,  "potatoes are a lot of things" ,  "I don't like the haze of Beijing Today" ,  ' costumer Service ' ]# jieba.suggest_freq (' Haze ', True)  # jieba.suggest_freq (' Yum ', True)  words =  [list  (Jieba.cut (DOC) ) for  doc in  sentences]print  (words) [[' I ', ' like ', ' eat ', ' potatoes '], [' potatoes ', ' yes ', ' a ', ' match ', ' The ', ' Something '], [' me ', ' no ', ' like ', ' Today ', ' Haze ', ' ', ' Beijing '], [' costumer ', ', ' service '] 
[Https://github.com/fxsjy/jieba]

from:http://blog.csdn.net/pipisorry/article/details/45311229


Python under stuttering Chinese participle

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.