The goal of numerizer is to Parse Numbers in Natural Language from Strings
You can install the released version of numerizer from CRAN with:
#install.packages("numerizer")
#using remotes
remotes::install_github("amrrs/numerizer")
#using devtools
devtools::install_github("amrrs/numerizer")
This package requires the original Python package
numerizer
. In case if you
don’t have, please make sure to install it in your default Python
environment.
pip install numerizer
library(numerizer)
numerize('twenty one thousand four hundred and seventy three')
#> 21473
numerize('one million two hundred and fifty thousand and seven')
#> 1250007