#chinese #converter #python-packages

simplet2s

A simple traditional Chinese to simplified Chinese converter

7 releases

0.2.0 Apr 6, 2020
0.1.5 Dec 1, 2018
0.1.4 Jan 1, 2018
0.1.3 Dec 31, 2017

#33 in #python-packages

Download history 7/week @ 2024-04-01

77 downloads per month

MIT license

24KB
254 lines

simplet2s

Rust Python codecov Crates.io docs.rs PyPI

A simple traditional Chinese to simplified Chinese converter

Installation

Add it to your Cargo.toml:

[dependencies]
simplet2s = "0.2"

Add extern crate simplet2s to your crate root and your're good to go!

Example

extern crate simplet2s;

fn main() {
    let simplified = simplet2s::convert("憂鬱的台灣烏龜");
    println!("{}", simplified);
}

Python package

There is also a Python package named simplet2s, you can install it via pip:

pip install -U simplet2s

Usage example:

import simplet2s

if __name__ == '__main__':
    print(simplet2s.convert("憂鬱的台灣烏龜"))

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Dependencies

~180KB