Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CurrySoftware/rust-stemmers
A rust implementation of some popular snowball stemming algorithms
https://github.com/CurrySoftware/rust-stemmers
information-retrieval nlp-stemming snowball
Last synced: 4 months ago
JSON representation
A rust implementation of some popular snowball stemming algorithms
- Host: GitHub
- URL: https://github.com/CurrySoftware/rust-stemmers
- Owner: CurrySoftware
- License: mit
- Created: 2017-02-07T13:00:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-23T15:52:39.000Z (11 months ago)
- Last Synced: 2024-02-25T08:04:33.514Z (5 months ago)
- Topics: information-retrieval, nlp-stemming, snowball
- Language: Rust
- Size: 2.33 MB
- Stars: 94
- Watchers: 4
- Forks: 15
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - rust-stemmers
README
# Rust Stemmers
This crate implements some stemmer algorithms found in the [snowball project](http://snowballstem.org/) which are compiled to rust using the rust-backend of the [snowball compiler](https://github.com/snowballstem/snowball).
# Supported Algorithms
- Arabic
- Armenian
- Danish
- Dutch
- English
- French
- German
- Greek
- Hungarian
- Italian
- Norwegian
- Portuguese
- Romanian
- Russian
- Spanish
- Swedish
- Tamil
- Turkish# Usage
```rust
extern crate rust_stemmers;
use rust_stemmers::{Algorithm, Stemmer};// Create a stemmer for the english language
let en_stemmer = Stemmer::create(Algorithm::English);// Stemm the word "fruitlessly"
// Please be aware that all algorithms expect their input to only contain lowercase characters.
assert_eq!(en_stemmer.stem("fruitlessly"), "fruitless");
```# Related Projects
- The [stemmer](https://github.com/lise-henry/stemmer-rs) crate provides bindings to the C Snowball implementation.