Convert Chinese (or Japanese) numbers to numeric digits (21)
Project description
ChineseNumber
Convert Chinese (or Japanese) numbers (e.g. 二十一) to numeric digits (21).
Similar in idea to https://github.com/akshaynagpal/w2n
The resulting numbers can be sorted using https://github.com/SethMMorton/natsort
Usage
>>> from chinesenumber import NumberParser
>>> parser = NumberParser()
>>> parser.numberify('第二十二课')
'第22课'
>>> parser.simple_parse('百六十五')
165
Installation
pip install chinesenumber
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chinesenumber-0.1.1.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chinesenumber-0.1.1.tar.gz.
File metadata
- Download URL: chinesenumber-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.11.5 CPython/2.7.15 Darwin/17.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc00ee93293b5e45c4987aa8cdb78780b7daec5a799f020ddd0d35e86ba8b786
|
|
| MD5 |
064ca7bcb89df438e7896fa3b5347756
|
|
| BLAKE2b-256 |
3a5a72101d417f436401b37d0b5d6d6175e2110fde9d43d9e94f99e9cbbb12e6
|
File details
Details for the file chinesenumber-0.1.1-py3-none-any.whl.
File metadata
- Download URL: chinesenumber-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.11.5 CPython/2.7.15 Darwin/17.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce08bd08d4d11ee6ec8fcca6ad8f86e4410753a1c878b018bac88d2c666ae977
|
|
| MD5 |
e955aecc1823a98df1766fe59b4d9d07
|
|
| BLAKE2b-256 |
b827c60841d95cc472fb09a25868716b7584d5054463668106df3ba594932053
|