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

Demo 2

Array
(
    [data] => 264
    [mining] => 163
    [data mining] => 135
    [learning] => 61
    [software] => 41
    [information] => 37
    [analysis] => 36
    [machine] => 35
    [archived] => 32
    [edit] => 26
)
======================
Text: data mining - wikipedia jump to content main menu main menu move to si...
Total nGrams: 13344
======================

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();
        
?>