项目作者: dayrev

项目描述 :
Text Summarizer
高级语言: PHP
项目地址: git://github.com/dayrev/summarizer.git
创建时间: 2017-03-31T09:21:54Z
项目社区:https://github.com/dayrev/summarizer

开源协议:Apache License 2.0

下载


Summarizer

Build Status
Coverage Status
Latest Stable Version

Overview

Summarizer provides an elegant interface to summarize text using a variety of third-party providers.

Supported Providers:

Installation

Run the following composer command to add the package to your project:

  1. composer require dayrev/summarizer

Alternatively, add "dayrev/summarizer": "^1.0" to your composer.json file.

Usage

  1. $summarizer = DayRev\Summarizer\Provider::instance('smmry', ['api_key' => 'YOURKEYHERE']);
  2. $content = $summarizer->summarize($text);

Tests

To run the test suite, run the following commands from the root directory:

  1. composer install
  2. vendor/bin/phpunit -d smmry_api_key=YOUR_SMMRY_API_KEY

Note: A valid Smmry API key is required when running the integration tests.