change Korean tex number <---> Arabian number
Project description
korNum
Change [Korean number text -> Arabic number] or
[Arabic number -> Korean number text]
Installation
- pypi:
pip install korNum - source code:
git clone https://github.com/study-ai-data/korNum.git cd korNum python setup.py install
Getting Started
- pypi
>>> from korNum.chgFormat import kor2num >>> text1 = "맛있는 포카칩이 구천팔백칠십육억오천사백삼십이만천백십일원!" >>> print(kor2num(text1)) 맛있는 포카칩이 987654321111원! >>> text2 = "맛있는 포카칩이 구천팔백칠십육억오천사백삼십이만천백십일원에서 오백십만육십구원, 만사천칠백원을 거쳐 이제는 천오백원으로!" >>> print(kor2num(text2)) 맛있는 포카칩이 987654321111원에서 5100069원, 14700원을 거쳐 이제는 1500원으로!
- source code:
python run.py
Note
- only operate about cardinal number(기수: 일, 이, 삼, 사, ...) text -> real num
- You can see more information here: docs/README.md
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
korNum-0.0.2.2.tar.gz
(4.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 korNum-0.0.2.2.tar.gz.
File metadata
- Download URL: korNum-0.0.2.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78c5127144d89106265f682e5bd756f2d8b7d42921372cb255540b397efcd22b
|
|
| MD5 |
5592787ce959e208ed79463c233cfb59
|
|
| BLAKE2b-256 |
60510d98c9964f53571361db7616c958aac757458b524619882fc46646dd3877
|
File details
Details for the file korNum-0.0.2.2-py3-none-any.whl.
File metadata
- Download URL: korNum-0.0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6efc0d58d7774e70f9457a96e037c9e2f92b7f2830a75f89b6db2341ab3c51c
|
|
| MD5 |
c2d9420a31c38c36427cfa9c30adfa7f
|
|
| BLAKE2b-256 |
5a94ccbac756660d3a708b6625ee942e958d0ce0785d7b35a92b553e0b7d4f74
|