https://github.com/amrrs/numerizer
R package to parse numbers in Natural Language - reticulated version of Python package numerizer
https://github.com/amrrs/numerizer
nlg r reticulate rstats
Last synced: 3 months ago
JSON representation
R package to parse numbers in Natural Language - reticulated version of Python package numerizer
- Host: GitHub
- URL: https://github.com/amrrs/numerizer
- Owner: amrrs
- License: other
- Created: 2020-01-09T12:26:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T15:46:57.000Z (over 5 years ago)
- Last Synced: 2025-01-15T12:02:07.151Z (4 months ago)
- Topics: nlg, r, reticulate, rstats
- Language: R
- Size: 6.84 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# numerizer
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://travis-ci.org/amrrs/numerizer)The goal of numerizer is to Parse Numbers in Natural Language from Strings
# Installation
You can install the released version of numerizer from [CRAN](https://CRAN.R-project.org) with:
### Stable Version
``` r
#install.packages("numerizer")
```### Development Version
```
#using remotes
remotes::install_github("amrrs/numerizer")#using devtools
devtools::install_github("amrrs/numerizer")
```# Requirements
This package requires the original Python package [`numerizer`](https://github.com/jaidevd/numerizer). In case if you don't have, please make sure to install it in your default Python environment.
```python
pip install numerizer
```# Loading the package
```{r package}
library(numerizer)
```# Examples
```{r}
numerize('twenty one thousand four hundred and seventy three')numerize('one million two hundred and fifty thousand and seven')
```