PHP Classes

File: testsummarizer6.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  PHP Lazy Copy Summary Text  >  testsummarizer6.php  >  Download  
File: testsummarizer6.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Lazy Copy Summary Text
Parse text copy to extract most relevant phrases
Author: By
Last change:
Date: 3 years ago
Size: 515 bytes
 

Contents

Class file image Download
<?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=file_get_contents('https://www.phpclasses.org/blog/post/559-A-Better-Way-to-Find-Your-Next-Job.html');

echo (
'<div style="width:800px">'.$kwObj->getSummary($str).$kwObj->getSummary($str,'paragraph').$kwObj->getSummary($str,'paragraph',false,true,null,true,4).$kwObj->getSummary($str,'',false,true,null,true,4).'<div>');
?>

For more information send a message to info at phpclasses dot org.