Replace numerals with corresponding numbers in the given text. Available on PyPI. Consider checking out Wiki for more info.
- Ukrainian
- Russian
- English
- python 3.6+
- NLTK Data
pip install numberize
After installing this package
python -m nltk.downloader punkt
import numberize
numberizer = numberize.Numberizer(lang='ru') #or 'uk', 'en'
new_text = numberizer.replace_numerals(old_text)