Skip to content

使用TF-IDF算法提取关键词[Extracting the key words with TF-IDF algorithm]

Notifications You must be signed in to change notification settings

xumeng123/tf-idf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于TD-IDF算法的关键词提取

运行环境: python3.5(python2也可以,基本没啥改动) 结巴分词工具 pip3 install jieba

TF-IDF关键词提取

用法: 1.先运行GetIDF.py得到IDF(逆文档频率)(已训练好),无需再运行 2.输入参数,直接运行TF-IDF.py即可

注:该repo中提供的idf.txt由清华NLP组的新闻数据集训练获得。

About

使用TF-IDF算法提取关键词[Extracting the key words with TF-IDF algorithm]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages