4 stable releases
Uses new Rust 2024
| 1.1.0 | Sep 19, 2025 |
|---|---|
| 1.0.2 | Jul 18, 2025 |
#173 in Internationalization (i18n)
388 downloads per month
1.5MB
283 lines
LangId
This is a rust conversion of the py3langid library.
This is only a deployment of the library. For training use the original library.
use langid_rs::Model;
fn main() {
let model = Model::load(false).unwrap();
//model.set_langs(Some(vec![...])).unwrap();
let text = "This text is in English.";
let classification = model.classify(text).unwrap();
println!("{:?}", classification);
}