#109 · Primary category: NLP Tools & Text Processing

cn2an

arabic-numbers arabic-numerals asr chinese-numerals cn2an nlp-library nlp-tool pypi python speech-recognition

Quickly convert Chinese numerals and Arabic numerals (latest features: fractions, dates, temperatures, etc.)

Project last updated:04/23/26

GitHub Stars

766

Forks

84

Contributors

5

License

MIT

Why we included this project

Chinese-language products have a recurring data problem: numbers arrive as characters, not digits. cn2an converts between the two in both directions, and it handles the awkward cases that trip up naive parsers, including uppercase financial characters, mixed forms like "1百23", decimals, negatives, and dates, fractions, percentages, and temperatures embedded in sentences. That makes it useful for ASR post-processing, where a recognizer returns "一百二十三" and downstream logic needs 123, and for normalizing text before it reaches analytics. The API is small enough to wire into a pipeline in minutes, and an HTTP endpoint is available if you would rather call it as a service。

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category