Login   Register  
PHP Classes
elePHPant
Icontem

File: stem.vocabulary.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Roberto Mirizzi  >  Italian Stemmer  >  stem.vocabulary.php  >  Download  
File: stem.vocabulary.php
Role: Example script
Content type: text/plain
Description: Advanced Example
Class: Italian Stemmer
Compute stem strings from Italian words
Author: By
Last change:
Date: 2007-02-20 03:46
Size: 273 bytes
 

Contents

Class file image Download
<?php

set_time_limit
(0);

include(
'stem.class.php');

$stemmer = new ItalianStemmer();

$termine file('vocabolario.txt');
foreach(
$termine as $parola) {
    
$stemmed_word $stemmer->stem($parola);
    echo 
sprintf("%-30s%s\n",trim($parola),$stemmed_word);
}

?>