https://github.com/frederik-uni/langid
Faster rewrite of the language identification tool langid/py3langid
https://github.com/frederik-uni/langid
detect-language detect-languages langid language-detection language-detection-lib language-detection-library language-detector language-identification language-recognition nlp whatlang
Last synced: 9 months ago
JSON representation
Faster rewrite of the language identification tool langid/py3langid
- Host: GitHub
- URL: https://github.com/frederik-uni/langid
- Owner: frederik-uni
- Created: 2025-07-18T10:30:32.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-18T10:55:53.000Z (11 months ago)
- Last Synced: 2025-08-25T18:39:25.304Z (9 months ago)
- Topics: detect-language, detect-languages, langid, language-detection, language-detection-lib, language-detection-library, language-detector, language-identification, language-recognition, nlp, whatlang
- Language: Rust
- Homepage:
- Size: 1.37 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LangId
This is a rust conversion of the [py3langid](https://github.com/adbar/py3langid) library.
This is only a deployment of the library. For training use the original library.
```rs
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);
}
```