Skip to content

Korean number text(한글 숫자 텍스트) <---> Arabic numerals (아라비아 숫자)

License

Notifications You must be signed in to change notification settings

ruby-kim/Kor2Num

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

korNum

Python PyPI
Change [Korean number text -> Arabic number] or
[Arabic number -> Korean number text]

Installation

  • pypi: pip install korNum
  • source code:
    git clone https://github.com/ruby-kim/korNum.git
    cd knum
    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

About

Korean number text(한글 숫자 텍스트) <---> Arabic numerals (아라비아 숫자)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages