Skip to content

Language Profiler: Classify a string as either English, Chinese, or Pinyin.

License

Notifications You must be signed in to change notification settings

sotch-pr35mac/chinese_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chinese_detection

v2.0.0

About

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

Usage

extern crate chinese_detection;

use chinese_detection::{ClassificationResult, classify};

assert_eq!(ClassificationResult::EN, classify("test"));
assert_eq!(ClassificationResult::PY, classify("shiyan")); 
assert_eq!(ClassificationResult::ZH, classify("实验")); 

License

MIT

About

Language Profiler: Classify a string as either English, Chinese, or Pinyin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages