Skip to content

A python module that convert chinese written string to read string. 一个python包:将中文书面字符串转换为口语字符串。

License

Notifications You must be signed in to change notification settings

beyondboy/cn-text-normalizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro.

Convert chinese written string to read string. 将中文书面字符串转换为口语字符串。

Usage

from cntn import w2s

print(w2s("小王的身高是153.5cm,梦想是打篮球!我觉得有0.1%的可能性。"))
# 小王的身高是一百五十三点五厘米,梦想是打篮球!我觉得有百分之零点一的可能性。
print(w2s("小王的钱包有1116$,可以买个iphone7s。"))
# 小王的钱包有一千一百一十六$,可以买个IPHONE七S。

Install

# from pip
pip install cntn

# from source
git clone https://github.com/open-speech/cn-text-normalizer.git
cd cn-text-normalizer
python setup install
# or
pip install git+https://github.com/open-speech/cn-text-normalizer

Config

About

A python module that convert chinese written string to read string. 一个python包:将中文书面字符串转换为口语字符串。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%