Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokenmill/snowball
Snowball version of the Porter stemmer for the Lithuanian language.
https://github.com/tokenmill/snowball
lithuanian-language nlp porter-stemmer snowball stemmer
Last synced: 4 days ago
JSON representation
Snowball version of the Porter stemmer for the Lithuanian language.
- Host: GitHub
- URL: https://github.com/tokenmill/snowball
- Owner: tokenmill
- License: other
- Created: 2015-06-23T08:27:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T10:59:45.000Z (about 5 years ago)
- Last Synced: 2024-05-07T18:28:19.401Z (6 months ago)
- Topics: lithuanian-language, nlp, porter-stemmer, snowball, stemmer
- Homepage:
- Size: 32.2 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://snowball.tartarus.org/dist/snowball_code.tgz).
## License
Copyright © 2019 [TokenMill UAB](http://www.tokenmill.lt).
Distributed under the The Apache License, Version 2.0.