![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自然语言处理
qestion_yz_10086
这个作者很懒,什么都没留下…
展开
-
python自然语言处理2
词性标注 import nltk from nltk import word_tokenize s='I was watching TV' print(nltk.pos_tag(word_tokenize(s))) 斯坦福标注器 from nltk.tag.stanford import StanfordPOSTagger import nltk stan_tagger=StanfordPOSTagger('models/english-bidirectional-distdim.tagger','st原创 2020-07-21 11:15:53 · 77 阅读 · 0 评论 -
python自然语言处理
python自然语言处理 句子拆分器 sent_tokenize from nltk.tokenize import sent_tokenize inputstring='This is an example sent. The sen' \ 'tence splitter will split on sent markers. Ohh really !!' all_sent=sent_tokenize(inputstring) print(all_sent) 标记解析 rege原创 2020-07-21 10:58:10 · 100 阅读 · 0 评论