An open API service indexing awesome lists of open source software.

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

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);
}
```