Rebecca Leeb
Visit the site.. http://www.fashonhair.net/blonde-hair-colors/
Visit the site.. http://www.fashonhair.net/blonde-hair-colors/
Its a very interesting and naturally rich place of Nepal. Its very close to Kathmandu- Capital city of Nepal
echo countFiles('/usr/local/'); // outputs 27 function countFiles($dir){
$files = array();
$directory = opendir($dir);
while($item = readdir($directory)){
// We filter the elements that we don't want to appear ".", ".." and ".svn"
if(($item != ".") && ($item != "..") && ($item != ".svn") ){
$files[] = $item;
}
}
$numFiles = count($files);
return $numFiles;
} ?> // Tokenization Function
function tokenization($text){
// Removing punctuation in the text.
$text = preg_replace('/[?!.,()*]|[-]|\'/','', $text);
// Convert text to lower case
$text = strtolower(trim($text));
// Tokenization
$word = explode(" ",$text);
$tok = $word;
for($i=0;$i<=(count($tok)-1);$i++){
for($j=0;$j<=(count($tok)-1);$j++){
if ($word[$i] == $tok[$j]){
$freq[$word[$i]]+=1;
array_splice($word,$i,1);
}
}
}
// Sort the results of tokenization based on the largest frequency
arsort($freq);
// Returns the result of Tokenization
return $freq;
}
$news = "Information retrieval (IR) is the area of study concerned with searching for documents, for information within documents, and for metadata about documents, as well as that of searching relational databases and the World Wide Web. There is overlap in the usage of the terms data retrieval, document retrieval, information retrieval, and text retrieval, but each also has its own body of literature, theory, praxis, and technologies. IR is interdisciplinary, based on computer science, mathematics, library science, information science, information architecture, cognitive psychology, linguistics, and statistics.";
$result = tokenization($news);
// The result in table
echo "| Result | News |
|---|---|
| $news |