sonai 0.3.1

Generic AI Text Detection for rust
Documentation

sonai

You can run the latest pre-trained version of the model in your own projects like this

cargo add sonai
use sonai::{predict, Prediction};

fn main() {
    let Prediction { chance_ai, chance_human } = predict("Hello, world!");

    let chance_ai = chance_ai * 100;
    let chance_human = chance_human * 100;

    println!("{chance_ai}% ai, {chance_human}% human");
}

License