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

NAME

6       Lingua::Stem::Fr - Perl French Stemming
7

SYNOPSIS

9           use Lingua::Stem::Fr;
10
11           my $stems = Lingua::Stem::Fr::stem({ -words => $word_list_reference,
12                                                -locale => 'fr',
13                                                -exceptions => $exceptions_hash,
14                                             });
15
16           my $stem = Lingua::Stem::Fr::stem_word( $word );
17

DESCRIPTION

19       This module use the a modified version of the Porter Stemming Algorithm
20       to return a stemmed words.
21
22       The algorithm is implemented as described in:
23
24       http://snowball.tartarus.org/french/stemmer.html
25
26       with some improvement.
27
28       The code is carefully crafted to work in conjunction with the
29       Lingua::Stem module by Benjamin Franz.  This french version is based
30       too, on the work of Aldo Calpini (Italian Version)
31

METHODS

33       ·   stem({ -words => \@words, -locale => 'fr', -exceptions =>
34           \%exceptions }); Stems a list of passed words. Returns an anonymous
35           list reference to the stemmed words.
36
37           Example:
38
39               my $stemmed_words = Lingua::Stem::Fr::stem({ -words => \@words,
40                                                            -locale => 'fr',
41                                                            -exceptions => \%exceptions,
42                                                         });
43
44       ·   stem_word( $word );
45
46           Stems a single word and returns the stem directly.
47
48           Example:
49
50               my $stem = Lingua::Stem::Fr::stem_word( $word );
51
52       ·   stem_caching({ -level => 0|1|2 });
53
54           Sets the level of stem caching.
55
56           '0' means 'no caching'. This is the default level.
57
58           '1' means 'cache per run'. This caches stemming results during a
59           single
60               call to 'stem'.
61
62           '2' means 'cache indefinitely'. This caches stemming results until
63               either the process exits or the 'clear_stem_cache' method is
64           called.
65
66       ·   clear_stem_cache;
67
68           Clears the cache of stemmed words
69

HISTORY

71       0.01    Original version; created by h2xs 1.23 with options
72
73                 -ACX
74                       -n
75                       Lingua::Stem::Fr
76
77       0.02    Minor change in documentation and disable of limitation to perl
78               5.8.3+
79

SEE ALSO

81       You can see the French stemming algorithm from Mr Porter here :
82
83       http://snowball.tartarus.org/french/stemmer.html
84
85       Another French stemming tool in Perl (French page) :
86
87       http://www.univ-nancy2.fr/pers/namer/Telecharger_Flemm.html
88

AUTHOR

90       Sebastien Darribere-Pleyt, <sebastien.darribere@lefute.com>
91
93       Copyright (C) 2003 by Aldo Calpini <dada@perl.it>
94
95       Copyright (C) 2004 by Sebastien Darribere-Pleyt
96       <sebastien.darribere@lefute.com>
97
98       This library is free software; you can redistribute it and/or modify it
99       under the same terms as Perl itself, either Perl version 5.8.3 or, at
100       your option, any later version of Perl 5 you may have available.
101

POD ERRORS

103       Hey! The above document had some coding errors, which are explained
104       below:
105
106       Around line 563:
107           Expected '=item *'
108
109       Around line 571:
110           Expected '=item *'
111
112       Around line 583:
113           Expected '=item *'
114
115
116
117perl v5.12.1                      2004-04-27               Lingua::Stem::Fr(3)
Impressum