Skip to content

🌳从中文文本中自动提取关键词和摘要

License

Notifications You must be signed in to change notification settings

vre4/TextRank4ZH

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

在此基础上修改源码,增添了自定义词典,以及介绍了修改源码、安装、再删除的方法

自定义词典

example/dict.txt里自定义词典 需要注意的是要标明词典的性质,如果不标,默认是字符串,即/x,会在Segmentation的segment方法里被当做特殊字符去除,整个程序运行的结果反而没有自定义词汇。

修改源码、安装、再删除的方法

修改TextRank4ZH/textrank4zh相关文件的代码

安装

python setup.py install --record files.txt

卸载

sudo cat files.txt | sudo xargs rm -rf  

这种就可以反复按需要调试了

About

🌳从中文文本中自动提取关键词和摘要

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%