aboustayyef/summarizer

a utility class that summarizes text based on the flipboard method

dev-master 2015-09-20 14:17 UTC

This package is not auto-updated.

Last update: 2024-03-20 07:56:08 UTC


README

#Summary

This is a utility class for extracting a summary from large texts.

##Usage

<?php

$document = new Aboustayyef\Summarizer;
 
$document->text = <<<EOD
This is where you put a text. It can include <em>tags</em>. But they will be removed.
EOD;

echo $document->summarize(2); // number of sentences wanted

?>