PHP Summarizer

PHP Summarizer

Released 7 years ago , Last update 4 years ago

Summarizer is a standalone PHP class that allows the quick creation of a summary for a given text or HTML page.

This tool will give a summary for the given text by ranking each sentence by its relevance.

Features

  • Summary output with configurable treshold - only the lines with a frequency over the treshold will be returned
  • Best words extraction - most relevant keyword will be extracted (ordered by their relevance)
  • Sentences splitter - the given text is automatically split into sentences
  • Common words skip - in order to provide better results, common words are skipped based on a dictionary (only for English language provided)
  • Minimal dependencies - all you need is PHP 5 to run it
  • Incredibly fast - in most cases, the summary is returned in less than 0.1 seconds
  • Low memory usage - with regular articles less than 1MB of memory is used
  • Natural language processing - much better results when using non-standard languages (e.g. Russian, Farsi, Arabic, Chinese)
5.0
  • 5 2
  • 4 0
  • 3 0
  • 2 0
  • 1 0
2 Reviews Read Reviews

Pricing

14 day 14-day money-back guarantee

$15.99

Personal License

  • Perpetual license

  • 1 site, unlimited servers

  • No distribution (hosted use only)

  • Commercial use

Documentation

Basic usage

Here is how to create the summary of a given text.

From local file:

require_once(dirname(__FILE__) . '/Summarizer.php');

$text = file_get_contents(dirname(__FILE__) . '/test_files/cap1.txt');
$summarizer = new Summarizer();
$summarizer->loadText($text);
$summary = $summarizer->run();
print_r($summary);

From remote url:

require_once(dirname(__FILE__) . '/Summarizer.php');

$url = 'http://edition.cnn.com/2011/LIVING/02/07/russell.simmons.super.rich/index.html?hpt=C2';
$summarizer = new Summarizer();
$summarizer->loadUrl($url);
$summary = $summarizer->run();
print_r($summary);

API documentation

To view all of the available class methods take a look at the API reference.

Demo

If you are looking for a demo of the Summarizer script you can find here a fully working summarizer.

2 licenses, starting from From » $15.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
  • C Cris License holderPersonal License
    Purchased on Aug 20, 2017
    6 days ago
    Is this script works in php7+ . Thanks in advance
    • C Cris 4 days ago
      any idea ??
    • CR Cristian Radu Publisher 1 day ago
      Yes, the script works fine with both PHP 7.0 and PHP 7.1.
    • C Cris 20 hours ago
      Thanks .. Purchased :)
  • A Anil License holderPersonal License
    Purchased on May 12, 2017
    3 months ago
    When we use very large files- Suppose take an example of pasting 1000 pages text document to generate summary report. The tool don't have capability to house large data. Is there any option to extend this size and fields from your end.
    • CR Cristian Radu Publisher 3 months ago
      The online tool is for demonstration purpose only with limited resources (text length). If you want to summarize large texts, you can purchase the script and host your own server to perform the operation.
    • C Cris 4 days ago
      Hi Cristian , Will this script work in PHP7+ . Thanks in advance ..
    • CR Cristian Radu Publisher 1 day ago
      Yes, the script works with PHP7+.