divineomega/php-summary
最新稳定版本:v3.0.0
Composer 安装命令:
composer require divineomega/php-summary
包简介
PHP Summarization Library
README 文档
README
A PHP library to automatically summarise text using a naive summerisation algorithm.
This summerisation algorithm in use takes the key sentence from each paragraph. It then strings these resulting sentences together to form the summary.
For more details on this algorithm, see this blog post by Shlomi Babluki.
Installation
Require this package, with Composer, in the root directory of your project.
composer require divineomega/php-summary
Usage
To use PHP Summary, you should create a new SummaryTool object, passing it the text content of your article. You can then call its getSummary method to retrieve the shortened summary of the article.
Note: The article content must have its paragraphs seperated by two new line characters.
$summary = (new SummaryTool($content))->getSummary();
统计信息
- 总下载量: 33.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 35
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2015-12-08