Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lingua::stem::it(3pm) [debian man page]

It(3pm) 						User Contributed Perl Documentation						   It(3pm)

NAME
Lingua::Stem::It - Porter's stemming algorithm for Italian SYNOPSIS
use Lingua::Stem::It; my $stems = Lingua::Stem::It::stem({ -words => $word_list_reference, -locale => 'it', -exceptions => $exceptions_hash, }); my $stem = Lingua::Stem::It::stem_word( $word ); DESCRIPTION
This module applies the Porter Stemming Algorithm to its parameters, returning the stemmed words. The algorithm is implemented exactly (I hope :-) as described in: http://snowball.tartarus.org/algorithms/italian/stemmer.html The code is carefully crafted to work in conjunction with the Lingua::Stem module by Benjamin Franz, from which I've also borrowed some functionalities (caching and exception list). METHODS
stem({ -words => @words, -locale => 'it', -exceptions => \%exceptions }); Stems a list of passed words. Returns an anonymous list reference to the stemmed words. Example: my $stemmed_words = Lingua::Stem::It::stem({ -words => @words, -locale => 'it', -exceptions => \%exceptions, }); stem_word( $word ); Stems a single word and returns the stem directly. Example: my $stem = Lingua::Stem::It::stem_word( $word ); stem_caching({ -level => 0|1|2 }); Sets the level of stem caching. '0' means 'no caching'. This is the default level. '1' means 'cache per run'. This caches stemming results during a single call to 'stem'. '2' means 'cache indefinitely'. This caches stemming results until either the process exits or the 'clear_stem_cache' method is called. clear_stem_cache; Clears the cache of stemmed words EXPORT None by default. AUTHOR
Aldo Calpini, dada@perl.it SEE ALSO
Lingua::Stem COPYRIGHT
Copyright (c) Aldo Calpini, dada@perl.it. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2007-06-08 It(3pm)

Check Out this Related Man Page

Lingua::Stem::Da(3pm)					User Contributed Perl Documentation				     Lingua::Stem::Da(3pm)

NAME
Lingua::Stem::Da - Stemming algorithm for Danish SYNOPSIS
use Lingua::Stem::Da; my $stems = Lingua::Stem::Da::stem({ -words => $word_list_reference, -locale => 'da', -exceptions => $exceptions_hash, }); DESCRIPTION
This routine applies a stemming slgorithm to a passed anon array of Danish words, returning the stemmed words as an anon array. It is a 'convienence' wrapper for 'Lingua::Stem::Snowball::Da' that provides a standardized interface and caching. CHANGES
1.01 2003.09.28 - Documentation fix. 1.00 2003.04.05 - Initial release METHODS
stem({ -words => @words, -locale => 'da', -exceptions => \%exceptions }); Stems a list of passed words using the rules of Danish. Returns an anonymous array reference to the stemmed words. Example: my $stemmed_words = Lingua::Stem::Da::stem({ -words => @words, -locale => 'da', -exceptions => \%exceptions, }); stem_caching({ -level => 0|1|2 }); Sets the level of stem caching. '0' means 'no caching'. This is the default level. '1' means 'cache per run'. This caches stemming results during a single call to 'stem'. '2' means 'cache indefinitely'. This caches stemming results until either the process exits or the 'clear_stem_cache' method is called. clear_stem_cache; Clears the cache of stemmed words NOTES
This code is a wrapper around Lingua::Stem::Snowball::Da written by Dennis Haney <davh@davh.dk> and Ask Solem Hoel, <ask@unixmonks.net> (Swedish version) SEE ALSO
Lingua::Stem Lingua::Stem::Snowball::Da AUTHOR
Integration in Lingua::Stem by Benjamin Franz, FreeRun Technologies, snowhare@nihongo.org or http://www.nihongo.org/snowhare/ COPYRIGHT
Benjamin Franz, FreeRun Technologies This code is freely available under the same terms as Perl. BUGS
TODO
perl v5.10.1 2007-10-23 Lingua::Stem::Da(3pm)
Man Page