jaidevd / numerizer

A Python module to convert natural language numerics into ints and floats.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

numerizer

A Python module to convert natural language numerics into ints and floats. This is a port of the Ruby gem numerizer

Installation

The numerizer library can be installed from PyPI as follows:

or from source as follows:

Usage

Using the SpaCy extension

Since version 0.2, numerizer is available as a SpaCy extension.

Any named entities of a quantitative nature within a SpaCy document can be numerized as follows:

Users can specify which entity types are to be numerized, by using the labels argument in the extension function, as follows:

The extension is available for tokens and spans as well.

Extras

For R users, a wrapper library has been developed by @amrrs. Try it out here.

About

A Python module to convert natural language numerics into ints and floats.

License:MIT License


Languages

Language:Python 100.0%