$stopWords
$stopWords :
List of common words to ignore
Create a summary from long text blocks
php-teaser is based on the original TextTeaser project written in Scala by Mojojolo and PyTeaser by xiaoxu193. It's completely re-written in PHP. The aim of php-teaser is is to take any news article and extract a brief summary from it.
php-teaser requires php-readability
createSummary(String $text, String $type, String $title = "", Int $count = 3) : Array
Summarize some text, optionally by extracting an article from a URL namespace PhpTeaser;
String | $text | Accepts a block or text or a URL |
String | $type | The type of text given |
String | $title | The title (optional) |
Int | $count | The number of sentences to return (optional) |
The resulting sentences