Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dchest/stemmer
Stemmer packages for Go programming language. Includes English, German and Dutch stemmers.
https://github.com/dchest/stemmer
Last synced: about 2 months ago
JSON representation
Stemmer packages for Go programming language. Includes English, German and Dutch stemmers.
- Host: GitHub
- URL: https://github.com/dchest/stemmer
- Owner: dchest
- License: bsd-2-clause
- Created: 2011-03-21T02:08:12.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T10:24:03.000Z (about 8 years ago)
- Last Synced: 2024-10-14T12:07:59.845Z (about 2 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/dchest/stemmer
- Size: 615 KB
- Stars: 52
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - stemmer - Stemmer packages for Go programming language. Includes English and German stemmers. (Natural Language Processing / Tokenizers)
- zero-alloc-awesome-go - stemmer - Stemmer packages for Go programming language. Includes English and German stemmers. (Natural Language Processing / Tokenizers)
- awesome-cobol - stemmer - Stemmer packages for Cobol programming language. Includes English and German stemmers. (Natural Language Processing / Middlewares)
- awesome-go - stemmer - Stemmer packages for Go programming language. Includes English, German and Dutch stemmers. - ★ 41 (Natural Language Processing)
- awesome-go-extra - stemmer - 03-21T02:08:12Z|2016-12-07T10:24:03Z| (Bot Building / Tokenizers)
- awesome-go-zh - stemmer
README
Stemmer package for Go
======================Stemmer package provides an interface for stemmers and includes English,
German and Dutch stemmers as sub-packages:- `porter2` sub-package implements English (Porter2) stemmer as described in
- `german` sub-package implements German stemmer as described in
- `dutch` sub-package implements Dutch stemmer as described in
Installation
-------------English stemmer:
go get github.com/dchest/stemmer/porter2
German stemmer:
go get github.com/dchest/stemmer/german
Dutch stemmer:
go get github.com/dchest/stemmer/dutch
This will also install the top-level `stemmer` package.
Example
-------import (
"github.com/dchest/stemmer/porter2"
"github.com/dchest/stemmer/german"
"github.com/dchest/stemmer/dutch"
)// English.
eng := porter2.Stemmer
eng.Stem("delicious") // => delici
eng.Stem("deliciously") // => delici// German.
ger := german.Stemmer
ger.Stem("abhängen") // => abhang
ger.Stem("abhängiger") // => abhang// Dutch.
dt := dutch.Stemmer
dt.Stem("lichamelijke") // => licham
dt.Stem("opglimpende") // => opglimpTests
-----Included `test_output.txt` and `test_voc.txt` are from the referenced original
implementations, used only when running tests with `go test`.License
-------2-clause BSD-like (see LICENSE and AUTHORS files).