1Lingua::Stem::Pt(3) User Contributed Perl Documentation Lingua::Stem::Pt(3)
2
3
4
6 Lingua::Stem::Pt - Stemming algorithm for Portuguese
7
9 use Lingua::Stem::Pt;
10 my $stems = Lingua::Stem::Pt::stem({ -words => $word_list_reference,
11 -locale => 'pt',
12 -exceptions => $exceptions_hash,
13 });
14
16 This routine applies a stemming slgorithm to a passed anon array of
17 Portuguese words, returning the stemmed words as an anon array.
18
19 It is a 'convienence' wrapper for 'Lingua::Stemmer::PT' that provides a
20 standardized interface and caching.
21
23 2.31 2020.09.26 - Fix for Latin1/UTF8 issue in documentation
24
25 2.30 2020.06.20 - Version renumber for module consistency
26
27 1.01 2003.09.28 - Documenation fix
28
29 1.00 2003.04.05 - Initial release
30
32 stem({ -words => \@words, -locale => 'pt', -exceptions => \%exceptions
33 });
34 Stems a list of passed words using the rules of Portuguese. Returns
35 an anonymous array reference to the stemmed words.
36
37 Example:
38
39 my $stemmed_words = Lingua::Stem::Pt::stem({ -words => \@words,
40 -locale => 'pt',
41 -exceptions => \%exceptions,
42 });
43
44 stem_caching({ -level => 0|1|2 });
45 Sets the level of stem caching.
46
47 '0' means 'no caching'. This is the default level.
48
49 '1' means 'cache per run'. This caches stemming results during a
50 single
51 call to 'stem'.
52
53 '2' means 'cache indefinitely'. This caches stemming results until
54 either the process exits or the 'clear_stem_cache' method is
55 called.
56
57 clear_stem_cache;
58 Clears the cache of stemmed words
59
61 This code is a wrapper around Lingua::Stem::Snowball::Pt written by Ask
62 Solem Hoel, <ask@unixmonks.net>
63
65 Lingua::Stem Lingua::PT::Stemmer;
66
68 Integration in Lingua::Stem by
69 Jerilyn Franz, FreeRun Technologies,
70 <cpan@jerilyn.info>
71
73 Jerilyn Franz, FreeRun Technologies
74
75 This code is freely available under the same terms as Perl.
76
79perl v5.36.0 2023-01-20 Lingua::Stem::Pt(3)