-
-
26 Sep 2020 06:27:58 UTC
- Distribution: Lingua-Stem
- Module version: 2.31
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (57 / 0 / 0)
- Kwalitee
Bus factor: 1- 63.82% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (1.29MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Lingua::Stem::Gl - Stemming algorithm for Galacian
SYNOPSIS
use Lingua::Stem::Gl; my $stems = Lingua::Stem::Gl::stem({ -words => $word_list_reference, -locale => 'gl', -exceptions => $exceptions_hash, });
DESCRIPTION
This routine applies a stemming algorithm to a passed anon array of Galician words, returning the stemmed words as an anon array.
It is a 'convienence' wrapper for 'Lingua::Stemmer::GL' that provides a standardized interface and caching.
CHANGES
2.31 2020.09.26 - Fix for Latin1/UTF8 issue in documentation
2.30 2020.06.20 - Version renumber for module consistency
1.02 2004.04.26 - Documenation fix
1.01 2003.09.28 - Documentation fix
1.00 2003.04.05 - Initial release
METHODS
- stem({ -words => \@words, -locale => 'gl', -exceptions => \%exceptions });
-
Stems a list of passed words using the rules of Galican. Returns an anonymous list reference to the stemmed words.
Example:
my $stemmed_words = Lingua::Stem::Gl::stem({ -words => \@words, -locale => 'gl', -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.
NOTES
This code is a wrapper around Lingua::Stemmer::GL written by xern <xern@cpan.org>
SEE ALSO
Lingua::Stem Lingua::Stemmer::GL;
AUTHOR
Integration in Lingua::Stem by Jerilyn Franz, FreeRun Technologies, <cpan@jerilyn.info>
COPYRIGHT
Jerilyn Franz, FreeRun Technologies
This code is freely available under the same terms as Perl.
BUGS
TODO
Module Install Instructions
To install Lingua::Stem, copy and paste the appropriate command in to your terminal.
cpanm Lingua::Stem
perl -MCPAN -e shell install Lingua::Stem
For more information on module installation, please visit the detailed CPAN module installation guide.