Lingua::Stem::De(3pm) | User Contributed Perl Documentation | Lingua::Stem::De(3pm) |
Lingua::Stem::De - Stemming algorithm for German
use Lingua::Stem::De; my $stems = Lingua::Stem::De::stem({ -words => $word_list_reference, -locale => 'de', -exceptions => $exceptions_hash, });
This routine applies a stemming slgorithm to a passed anon array of German words, returning the stemmed words as an anon array.
It is a 'convienence' wrapper for 'Text::German' that provides a standardized interface and caching.
2.31 2020.09.26 - Fix for Latin1/UTF8 issue in documentation
2.30 2020.06.20 - Version renumber for module consistency
1.01 2003.09.28 - Documentation fix
1.00 2003.04.05 - Initial release
Example:
my $stemmed_words = Lingua::Stem::De::stem({ -words => \@words, -locale => 'de', -exceptions => \%exceptions, });
'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.
This code is almost entirely derived from Text::German written by Ulrich Pfeifer
Lingua::Stem Text::German
Ulrich Pfeifer Integration in Lingua::Stem by Jerilyn Franz, FreeRun Technologies, <cpan@jerilyn.info>
Ulrich Pfeifer Jerilyn Franz, FreeRun Technologies
This code is freely available under the same terms as Perl.
2022-07-15 | perl v5.34.0 |