AimeeLee77 / keyword_extraction

利用Python实现中文文本关键词抽取,分别采用TF-IDF、TextRank、Word2Vec词聚类三种方法。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stopkey = [w.strip() for w in codecs.open('data/stopWord.txt', 'r').readlines()]

shuxinjin opened this issue · comments

python3下,需要修改为:

stopkey = [w.strip() for w in codecs.open('data/stopWord.txt', 'r', encoding='UTF-8').readlines()]