langid-rs 1.1.0

A fast and lightweight language identification library in Rust, inspired by py3langid.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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);
}
```