Skip to content

hal609/date-fuzz

Repository files navigation

date-fuzz

Release Build status Commit activity License

date-fuzz for Python 🗓️

What Is date-fuzz?

Lightweight Python package to fuzzy extract dates from a corpus of text.

Installation

pip install date_fuzz

Usage

from date_fuzz import find_dates

text = "A thing happened on Jan 1st 2012 and the next morning at 09:15 and also jan 15th at 12am in 2018."
dates = find_dates(text)
print(dates)

# Output
[
    ('2012-01-01', 4),
    ('2012-01-02 09:15', 9),
    ('2018-01-15 12:00', 15)
]

About

Python module to fuzzy extract dates from text.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published