commit | 19b4f4109017a0921d84bf62fda956aebbae6aa7 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue Oct 29 23:13:26 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue Oct 29 23:13:26 2024 +0000 |
tree | 6ebba5a27a080841f7a6b8cb7bb997d2b4fa40c1 | |
parent | 0b439f33da14957138b75f405e6386f9f26731ff [diff] | |
parent | 7e7449ce8e79a0b992689218c57f7cdf42513744 [diff] |
Snap for 12574852 from 7e7449ce8e79a0b992689218c57f7cdf42513744 to sdk-release Change-Id: I3d0527717aa2110d1c61dd9a2dd09e53541ec934
This crate implements some stemmer algorithms found in the snowball project which are compiled to rust using the rust-backend of the snowball compiler.
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");