![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nltk
野指针呀
嗯哼,奋斗吧少年。
展开
-
自然语言处理学习 nltk----分词
1. nltk.word_tokenize ( text ) : 直接的分词,比如:“ isn't ” 被分割为 " is " 和 “ n't ”2. WordPunctTokenizer ( ) : 单词标点分割,比如:“ isn't ”被分割为" isn ", " ' " 和 " t " 注意WordPunctTokenizer ( )的用法。3. Tre...原创 2020-04-21 21:49:14 · 1434 阅读 · 0 评论 -
安装nltk遇到的坑:下载失败+安装成功但导入不了
在jupyter notebook上运行代码时:import nltkparagraph = "i am a good boy ! are you ok? hahaha i am fine"words_list = nltk.word_tokenize(paragraph)print(words_list)出现错误:ModuleNotFoundError ...原创 2020-04-19 20:03:40 · 14096 阅读 · 13 评论