date-spacy
A spaCy extension for enhanced date and number entity recognition and extraction as structured data.
What it is and what it does
Date spaCy is a lightweight spaCy pipeline component that finds date expressions in text and converts them to structured datetime objects. It works by applying regex patterns to locate date strings, then passes them to dateparser for parsing into standardized datetime format. The parsed result is attached to each matched entity via a custom `._.date` extension, making it accessible during spaCy's standard entity iteration.
The component is designed to integrate into existing spaCy pipelines (ideally before the NER model) or to run on a blank model. Its main limitation is that dates without an explicit year default to the current year. Since the package is abandoned with no releases after August 2023, it is best suited for projects with stable, unchanging requirements and no expectation of upstream maintenance.
Use it for:
- Extract and normalize dates from unstructured text in documents or emails for downstream processing.
- Build a temporal information extraction pipeline as part of a larger spaCy NLP workflow.
- Convert informal date expressions (e.g., 'twelfth of October') into machine-readable datetime objects for database storage.
- Augment spaCy's default entity recognition with specialized date handling before applying other NER models.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds a spaCy pipeline component that identifies date entities in text using regex and converts them to structured datetime objects via dateparser, storing results in a custom token extension.
Yes, if your date extraction needs are simple and stable. The package is low-friction to install and has no known vulnerabilities. However, it is abandoned (last updated 2023-08-24) with no ongoing maintenance, so install only if the fixed functionality is sufficient and you do not expect bug fixes or compatibility updates with future spacy or dateparser versions.
Install
date-spacy on PyPI
pip
pip install date-spacyuv
uv add date-spacypoetry
poetry add date-spacyInstalling date-spacy
Before you install
Low friction install with only two runtime dependencies (spacy and dateparser). However, the package is abandoned—last release was 2023-08-24 with no updates since, and the repository shows no recent activity. Use only if the fixed functionality meets your needs without expecting maintenance or bug fixes.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.
Quickstart
pip install date-spacy
import spacy
from date_spacy import find_dates
nlp = spacy.blank('en')
nlp.add_pipe('find_dates')
doc = nlp("Meeting on 25th August 2023")
for ent in doc.ents:
if ent.label_ == "DATE":
print(ent._.date)
Requires spacy and dateparser to be installed; assumes current year if no year is provided in the date text.
Verify before relying
- Whether the regex-based approach handles all date formats you need (e.g., ISO, locale-specific, ambiguous formats).
- Compatibility with recent spacy versions (package last released 2023-08-24).
- Performance characteristics on large document volumes or complex date patterns.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — spacy, dateparser |
| Maintenance | abandoned — 1,086 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 89,185/month — #13,675 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: date_spacy-0.0.1-py3-none-any.whl
Tags
More Linguistic packages
Detects and normalizes text encoding from…
permissive · top 100 on PyPI
tiktokentiktoken is a fast BPE tokenizer that converts…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
text-unidecodeConverts Unicode text to ASCII by…
copyleft · top 1,000 on PyPI
larkLark is a parsing library that builds abstract…
permissive · top 1,000 on PyPI
tree-sitterPython bindings to the tree-sitter parsing…
permissive · top 1,000 on PyPI
negspacyAdds negation detection to spaCy pipelines…
permissive · top 15,000 on PyPI
spacyspaCy is an industrial-strength NLP library…
permissive · top 1,000 on PyPI
recognizers-text-date-timeRecognizes and resolves date and time entities…
permissive · top 15,000 on PyPI
datefinderDatefinder extracts date and time expressions…
permissive · top 5,000 on PyPI
dateparserParses dates from text in multiple languages…
permissive · top 1,000 on PyPI
spacy-language-detectionAdds language detection to spaCy pipelines at…
copyleft · top 5,000 on PyPI
textacytextacy extends spaCy's NLP capabilities with…
permissive · top 15,000 on PyPI
spacy-legacyProvides legacy registered functions and model…
permissive · top 5,000 on PyPI
nr-dateA pure-Python date parser using regex patterns…
permissive · top 15,000 on PyPI
spacy-alignmentsAligns tokenizations between spaCy and…
permissive · top 15,000 on PyPI