朴素贝叶斯应用:垃圾邮件分类
摘要:
import nltk from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer def preprocessing(text): tokens=[word for sent in nltk.sent_tokenize(text) for word in nltk.word_tokenize(sen... 阅读全文
posted @ 2018-12-03 11:43 玉滨的博客 阅读(1157) 评论(0) 推荐(0) 编辑