chinese_detection 0.1.0

Classify a string as either English, Chinese, or Pinyin.
Documentation

language_profiler

v0.1.0

About

Classify a string as either English, Chinese, or Pinyin.

Usage

extern crate chinese_detection;

use chinese_detection::ChineseDetection;

let language_detection = ChineseDetection::new();

println!("{}", language_detection.classify(String::from("test"))); // --> EN
println!("{}", language_detection.classify(String::from*("shiyan"))); // --> PY
println!("{}", language_detection.classify(String::from("实验"))); // --> ZH

Contributors

License

MIT