PHP Classes

File: stem.vocabulary.php

Recommend this page to a friend!
  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: 17 years ago
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);
}

?>