Skip to content

Snowball version of the Porter stemmer for the Lithuanian language.

License

Notifications You must be signed in to change notification settings

tokenmill/snowball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snowball

Old version of Snowball version of Porter stemmer for Lithuanian language is in the file lithuanian.sbl.

New version is in the file conservative.sbl.

The difference between the new and old versions is that the new one is less aggressive. This means that there should be fewer words that are overstemmed.

The new stemmer was created with search applications in mind. Therefore, nouns are considered as more important then adjectives, verbs, etc. This means that some suffixes, such as -ut- like in 'kalakutas', are left untouched during stemming. On the other hand, this leaves some adjectives understemmed, e.g. 'sveikutis -> sveikut'. There will always be trade-offs.

NOTE:

Current stemmer version uses length of the string to prevent overstemming. Stemmer created with snowball* program extends org.tartarus.snowball.SnowballProgram class and gets length of the current string using Java's current.length() call.

Whereas Lucene 4.10.1 implements SnowballProgram in such a way that attribute current is private, therefore current.length() doesn't compile for Lucene. Workaround is to substitute current.length() with getCurrent().length() on line 589.

  • snowball program was downloaded from here.

License

Copyright © 2019 TokenMill UAB.

Distributed under the The Apache License, Version 2.0.

About

Snowball version of the Porter stemmer for the Lithuanian language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages