Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
/ numberize Public archive

Replace english, russian and ukrainian cardinal numerals with corresponding numbers in the given text. Small library, available on PyPI.

License

Notifications You must be signed in to change notification settings

yemchenko-dan/numberize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short Info

Replace numerals with corresponding numbers in the given text. Available on PyPI. Consider checking out Wiki for more info.

Supported languages

  • Ukrainian
  • Russian
  • English

Requirements

  • python 3.6+
  • NLTK Data

How to install it?

pip install numberize

How to install requirements?

After installing this package

python -m nltk.downloader punkt

How to use it?

import numberize
numberizer = numberize.Numberizer(lang='ru')    #or 'uk', 'en'
new_text = numberizer.replace_numerals(old_text)

About

Replace english, russian and ukrainian cardinal numerals with corresponding numbers in the given text. Small library, available on PyPI.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages