Universe

numerizer

Convert natural language numerics into ints and floats.

A SpaCy extension for Docs, Spans and Tokens that converts numerical words and quantitative named entities into numeric strings.

Example

from spacy import load import numerizer nlp = load('en_core_web_sm') # or any other model doc = nlp('The Hogwarts Express is at platform nine and three quarters') doc._.numerize() # {nine and three quarters: '9.75'}
Author info

Jaidev Deshpande

GitHubjaidevd/numerizer

Categories standalone

Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea label on the issue tracker.

Read the docsJSON source