PHP Classes

PHP Lazy Copy Summary Text: Parse text copy to extract most relevant phrases

Recommend this page to a friend!
  Info   View files Example   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 109 All time: 9,514 This week: 326Up
Version License PHP version Categories
lazy-copy-summarizer 1.0.0Custom (specified...5PHP 5, Text processing
Description Author

This class can parse text copy to extract most relevant phrases.

It can take a text of a summary of a book, an article or anything else that contains text to be understood and returns a summary.

The summary can be the most relevant phrase or phrases, paragraph or
paragraphs, the shortest or the longest to summarize your content.

The number of phrase or paragraph to show can be configured.

Recommendations

Article summarizer
A class or a function which should summarize the given text

Picture of zinsou A.A.E.Mo´se
  Performance   Level  
Name: zinsou A.A.E.Mo´se is available for providing paid consulting. Contact zinsou A.A.E.Mo´se .
Classes: 50 packages by
Country: Benin Benin
Age: 33
All time rank: 7021 in Benin Benin
Week rank: 587 Up1 in Benin Benin Equal
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Details
Many articles on Internet are alike but they do not have at all the same importance as they don't have the same content.Because the advices for choose a good title are always the same, bloggers and other copy-writers are inclined to choose similar titles when they come to talk about the same theme. Users hate wasting their time.For many,time is money.And they won't read all the articles they see on the same theme exactly like you won't never click on every links on a search results page.Sometimes they click on a link that leads to your article but unfortunately they return because your article is very long and the start is boring... How then,bring the users to know what to choose and give them not the feeling of waste of time but the good feeling and the desire to read again many articles or just your articles? The present package is built with the intention to summarize copy and show your article in its best angle. You can use it to get a summary of a book, an article or anything else that contains text to be understood. This package can return the most relevant phrase or phrases , paragraph or paragraphs ,the shortest or the longest to summarize your content. And the number of phrase or paragraph to show can be chosen. ------------------------------How to use----------------------------------- <?php require_once 'KeywordGenerator.php'; require_once 'summarizer.class.php'; set_time_limit(0);//useless in most of cases; $kwObj =new summarizer( new KeywordGenerator); $str =" Many articles on Internet are alike but they do not have at all the same importance as they don't have the same content.Because the advices for choose a good title are always the same, bloggers and other copy-writers are inclined to choose similar title when they come to talk about the same theme. Users hate wasting their time.For many,time is money.And they won't read all the articles they see on the same theme exactly like you won't never click on every links on a search results page.Sometimes they click on a link that leads to your article but unfortunately they return because your article is very long and the start is boring... How then,bring the users to know what to choose and give them not the feeling of waste of time but the good feeling and the desire to read again many articles or just your articles? The present package is built with the intention to summarize copy and show your article in its best angle. You can use it to get a summary of a book, an article or anything else that contains text to be understood. This package can return the most relevant phrase or phrases , paragraph or paragraphs ,the shortest or the longest to summarize your content. And the number of phrase or paragraph to show can be chosen. "; //show the most relevant paragraph. echo ('<div style="width:800px">'.$kwObj->getSummary($str,'paragraph').'</div>'); //show most relevant phrase. echo ('<div style="width:800px">'.$kwObj->getSummary($str).'</div>'); //show 3 short most relevant phrases echo ('<div style="width:800px">'.$kwObj->getSummary($str,'',true,true,null, true,3).'<div>'); //show 3 long most relevant phrases echo ('<div style="width:800px">'.$kwObj->getSummary($str,'',false,true,null ,true,3).'<div>'); //show the short most relevant phrase echo ('<div style="width:800px">'.$kwObj->getSummary($str,'',true,true,null, true,1).'<div>'); //show the long most relevant phrase echo ('<div style="width:800px">'.$kwObj->getSummary($str,'',false,true,null, true,1).'<div>'); //show 3 short most relevant paragraphs echo ('<div style="width:800px">'.$kwObj->getSummary($str,'paragraph',true ,true,null,true,3).'<div>'); //show 6 long most relevant paragraphs echo ('<div style="width:800px">'.$kwObj->getSummary($str,'paragraph',false, ,true,null,true,6).'<div>'); //show the short most relevant paragraphs echo ('<div style="width:800px">'.$kwObj->getSummary($str,'paragraph',true, true,null,true,1).'<div>'); //show the long most relevant paragraphs echo ('<div style="width:800px">'.$kwObj->getSummary($str,'paragraph',false, true,null,true,1).'<div>'); /***remove the last parameter will lead to show a full summarize of your content with only all relevant paragraphs or phrases, longest or shortest according respectively to parameter 2 and 3.When you specify a language be sure to have first create the ignore_language file to avoid fatal error *************/ ?> for some how to use example : see the files testsummarizer{$i}.php ... Report improvement, bugs and other in the forum or feel free to contact me at leizmo@gmail.com
  Files folder image Files  
File Role Description
Accessible without login Plain text file ignore_cs.txt Data config
Accessible without login Plain text file ignore_de.txt Data config
Accessible without login Plain text file ignore_en.txt Data config
Plain text file KeywordGenerator.php Class class source
Accessible without login Plain text file license.txt Lic. license file
Accessible without login Plain text file readme.txt Doc. readme
Plain text file summarizer.class.php Class class source
Accessible without login Plain text file testsummarizer.php Example example script
Accessible without login Plain text file testsummarizer1.php Example example script
Accessible without login Plain text file testsummarizer2.php Example example script
Accessible without login Plain text file testsummarizer3.php Example example script
Accessible without login Plain text file testsummarizer4.php Example example script
Accessible without login Plain text file testsummarizer5.php Example example script
Accessible without login Plain text file testsummarizer6.php Example example script
Accessible without login Plain text file testsummarizer7.php Example example script
Accessible without login Plain text file testsummarizer9.php Example example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:109
This week:0
All time:9,514
This week:326Up