Demo 0 | Demo 1 | Demo 2 | Demo 3 | Demo 4 | Demo 5 | Code | Matt Smith

Demo 1


Warning: file_get_contents(http://www.google.com/search?q=data+mining): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in /home2/sx/public_html/m.smithworx.com/tools/textmining/v2/TextMiner.php on line 29
Array
(
    [text added] => 1
)
======================
Text: text can be added this way...
Total nGrams: 1
======================

Demo1.php

<?php

//Top Keywords as an array

$tm = new TextMiner();

//add any number of files and or text
$tm->addFile("http://www.google.com/search?q=data+mining");
$tm->addText("Text can be added this way.");

$tm->convertToLower TRUE// optional

$tm->process();//should be called before accessing keywords

printa($tm->getTopNGrams(10));
echo 
$tm->printSummary();
        
?>