1Lingua::Stem::Da(3)   User Contributed Perl Documentation  Lingua::Stem::Da(3)
2
3
4

NAME

6       Lingua::Stem::Da - Stemming algorithm for Danish
7

SYNOPSIS

9           use Lingua::Stem::Da;
10           my $stems   = Lingua::Stem::Da::stem({ -words => $word_list_reference,
11                                                 -locale => 'da',
12                                             -exceptions => $exceptions_hash,
13                                            });
14

DESCRIPTION

16       This routine applies a stemming slgorithm to a passed anon array of
17       Danish words, returning the stemmed words as an anon array.
18
19       It is a 'convienence' wrapper for 'Lingua::Stem::Snowball::Da' that
20       provides a standardized interface and caching.
21

CHANGES

23       1.01 2003.09.28 - Documentation fix.
24
25       1.00 2003.04.05 - Initial release
26

METHODS

28       stem({ -words => \@words, -locale => 'da', -exceptions => \%exceptions
29       });
30           Stems a list of passed words using the rules of Danish. Returns an
31           anonymous array reference to the stemmed words.
32
33           Example:
34
35             my $stemmed_words = Lingua::Stem::Da::stem({ -words => \@words,
36                                                         -locale => 'da',
37                                                     -exceptions => \%exceptions,
38                                     });
39
40       stem_caching({ -level => 0|1|2 });
41           Sets the level of stem caching.
42
43           '0' means 'no caching'. This is the default level.
44
45           '1' means 'cache per run'. This caches stemming results during a
46           single
47               call to 'stem'.
48
49           '2' means 'cache indefinitely'. This caches stemming results until
50               either the process exits or the 'clear_stem_cache' method is
51           called.
52
53       clear_stem_cache;
54           Clears the cache of stemmed words
55

NOTES

57       This code is a wrapper around Lingua::Stem::Snowball::Da written by
58
59       Dennis Haney <davh@davh.dk>
60
61       and
62
63       Ask Solem Hoel, <ask@unixmonks.net> (Swedish version)
64

SEE ALSO

66        Lingua::Stem Lingua::Stem::Snowball::Da
67

AUTHOR

69         Integration in Lingua::Stem by
70         Benjamin Franz, FreeRun Technologies,
71         snowhare@nihongo.org or http://www.nihongo.org/snowhare/
72
74       Benjamin Franz, FreeRun Technologies
75
76       This code is freely available under the same terms as Perl.
77

BUGS

TODO

80perl v5.12.1                      2010-09-14               Lingua::Stem::Da(3)
Impressum