2017 © Pedro Peláez
 

library php-teaser

image

nattaylor/php-teaser

  • Thursday, July 14, 2016
  • by nattaylor
  • Repository
  • 4 Watchers
  • 22 Stars
  • 1,284 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

php-teaser

Summarize text or articles into a few bullet points, (*1)

Usage

Basically create an instance of Teaser() then pass it either a URL or a text/title pair, and it will return a summary as an array of sentences., (*2)

//Ultra-simple Example
$teaser = new Teaser();
$teaser->createSummary("http://www.business2community.com/cloud-computing/confused-saas-paas-iaas-0687173","url"));

Notes

  • Is there a lot more to do? Yes. Does it basically work? Yes.
  • I tried to carefully document the class, but it needs more detail. This is coming soon.
  • (Obviously) This relies on the source text having some good sentences that summarize it. Without that, our summary will suck.
  • Based on https://github.com/xiaoxu193/PyTeaser based on http://www.textteaser.com/
  • What would make this a lot better? Tweaking the scoring, duh!

TODO

  • Add synonyms to the headline list
  • Try to do some NLP like: -- Stemming: https://github.com/camspiers/porter-stemmer -- Morphology: https://github.com/heromantor/phpmorphy -- WordNet: http://www.foxsurfer.com/wordnet/

The Versions

14/07 2016

dev-master

9999999-dev

  Sources   Download

MIT

by Avatar Matt
by Nat