GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Lingua::Stem::Sv(3) User Contributed Perl Documentation Lingua::Stem::Sv(3)

Lingua::Stem::Sv - Stemming algorithm for Swedish

    use Lingua::Stem::Sv;
    my $stems   = Lingua::Stem::Sv::stem({ -words => $word_list_reference,
                                          -locale => 'sv',
                                      -exceptions => $exceptions_hash,
                                     });

This routine applies a stemming slgorithm to a passed anon array of Swedish words, returning the stemmed words as an anon array.

It is a 'convienence' wrapper for 'Lingua::Stem::Snowball::Se' 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 renumbering for module consistency

1.01 2003.09.28 - Documentation fix

1.00 2003.04.05 - Initial release

stem({ -words => \@words, -locale => 'sv', -exceptions => \%exceptions });
Stems a list of passed words using the rules of Swedish. Returns an anonymous array reference to the stemmed words.

Example:

  my $stemmed_words = Lingua::Stem::Sv::stem({ -words => \@words,
                                              -locale => 'sv',
                                          -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.

clear_stem_cache;
Clears the cache of stemmed words

This code is a wrapper around Lingua::Stem::Snowball::Sv written by Ask Solem Hoel, <ask@unixmonks.net>

 Lingua::Stem Lingua::Stem::Snowball::Sv

  Integration in Lingua::Stem by Jerilyn Franz

Jerilyn Franz

2020-09-26 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.