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
Release files for korNum 0.0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| korNum-0.0.2.2.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| korNum-0.0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / korNum-0.0.2.2.tar.gz
| Download URL | korNum-0.0.2.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78c5127144d89106265f682e5bd756f2d8b7d42921372cb255540b397efcd22b
|
|
BLAKE2b-256 checksum How to use checksums |
60510d98c9964f53571361db7616c958aac757458b524619882fc46646dd3877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / korNum-0.0.2.2-py3-none-any.whl
| Download URL | korNum-0.0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6efc0d58d7774e70f9457a96e037c9e2f92b7f2830a75f89b6db2341ab3c51c
|
|
BLAKE2b-256 checksum How to use checksums |
5a94ccbac756660d3a708b6625ee942e958d0ce0785d7b35a92b553e0b7d4f74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|