Login   Register  
PHP Classes
elePHPant
Icontem

File: stem.example.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.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: 2007-02-20 03:56
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);

?>