Code Monkey home page Code Monkey logo

cn-text-normalizer's Introduction

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

cn-text-normalizer's People

Contributors

begeekmyfriend avatar megazone87 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.