Skip to content

OlaSearch/datextractor

Repository files navigation

Date and Number extractor for python

For python 2+ or 3. No external dependencies

Usage

pip install -e git+ssh://[email protected]/olasearch/datextractor.git#egg=datextractor

In your python file

from datextractor import datetime_parsing

// Outputs an array of tuples
print datetime_parsing('The game is this year')

[('this year', datetime.datetime(2016, 1, 1, 0, 0), (12, 21))]

1. String that was matched `this year`
2. datetime object
3. string position `start` and `end`

About

Extract dates, numbers from unstructured text

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages