commit | 546f608e3982da3ad0eae4a3ede67bfa5a384c50 | [log] [tgz] |
---|---|---|
author | Grace Zhao <[email protected]> | Thu Jul 11 16:30:49 2024 -0700 |
committer | Grace Zhao <[email protected]> | Mon Jul 15 11:49:15 2024 -0700 |
tree | 311451f88d79244f36a7f42b5bd8909af18296b7 | |
parent | 3c2c110ff94248b105a241a651d084ba00100c03 [diff] |
Remove rust test targets that cannot be run on Android. - These tests depend on some data files that are under the GPL license, which were not included in the import into AOSP. - This library was originally imported in ag/27243328 (import proposal bug: b/330901042) Test: m librust_stemmers Bug: 344915547 Bug: 330901042 Change-Id: I0e89758b1f08f570b53d908b89f1162a8b87bd35
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");