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

Demo 2

Array
(
    [data] => 279
    [mining] => 181
    [data mining] => 156
    [learning] => 56
    [software] => 44
    [information] => 38
    [conference] => 37
    [analysis] => 35
    [machine] => 33
    [knowledge] => 32
)
======================
Text: data mining - wikipedia data mining from wikipedia the free encyclopedia...
Total nGrams: 13122
======================

Demo2.php

<?php

//Top N-Grams (including lower N-grams) as an array
$tm = new TextMiner();

$tm->addFile("http://en.wikipedia.org/wiki/Data_mining");
$tm->setN(3);

$tm->convertToLower TRUE;
$tm->includeLowerNGrams TRUE// include all lower N-Grams

$tm->process();

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