File: stem.example.php

Recommend this page to a friend!
  Classes of Roberto Mirizzi  >  Italian Stemmer  >  stem.example.php  >  Download  
File: stem.example.php
Role: Example script
Content type: text/plain
Description: Simple Example
Class: Italian Stemmer
Compute stem strings from Italian words
Author: By
Last change:
Date: 14 years ago
Size: 320 bytes
 

 

Contents

Class file image Download
<?php

include('stem.class.php');

$stemmer = new ItalianStemmer();

$parola = "armoniosamente";
$stemmed_word = $stemmer->stem($parola);
echo
sprintf("%-30s%s\n", $parola, $stemmed_word);

$parola = "armonia";
$stemmed_word = $stemmer->stem($parola);
echo
sprintf("%-30s%s\n", $parola, $stemmed_word);

?>


For more information send a message to info at phpclasses dot org.