- 博客(4)
- 收藏
- 关注
原创 batch_prob_classify
更新至nltk 3后batch_prob_classify()需要更新为 prob_classify_many()word_fd.inc(word) 需要更新为 word_fd[word] += 1
2017-05-24 13:15:34 604
原创 python2.7 爬虫中文显示错误
import:BeautifulSoup,seleniumtext1 = soup.find(class_='hot_recommend').find_all('p')print(text)输出的text是/u开头字符串以为是编码的原因最后发现只要把text分行输出即可for text in text1: text_w = str(text) #
2017-05-05 15:42:45 329
原创 Lucene 第一次建索引报错
第一次创建索引时报错,错误信息如下:Exception in thread "main" org.apache.lucene.index.IndexNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@C:\ lockFactory=org.apache.lucene.st
2016-12-06 12:57:20 2270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人