文件名称:summarize:简单的基于多语言Python和NLTK的文本摘要实现
文件大小:7KB
文件格式:ZIP
更新时间:2024-06-03 14:15:34
Python
summary.py 简单的基于多语言Python和NLTK的文本摘要实现。 安装 $ pip install pysummarize 设置 使用之前,请确保已下载stopwords和punkt NLTK软件包: import nltk nltk . download ([ 'stopwords' , 'punkt' ]) 快速开始 from summarize import summarize summarize ( "Alice and Bob are friends. Alice is fun and cuddly." " Bob is cute and quirky. Together they go on wonderful" " adventures in the land of tomorrow. Alice's cuddline
【文件预览】:
summarize-master
----.travis.yml(207B)
----tests()
--------test_language.py(820B)
--------test_summarize.py(2KB)
--------__init__.py(0B)
----tox.ini(110B)
----LICENSE(1KB)
----setup.cfg(40B)
----setup.py(1KB)
----.gitignore(37B)
----README.md(2KB)
----summarize()
--------language.py(656B)
--------__init__.py(65B)
--------summarize.py(1KB)