skillfed

date-spacy

A spaCy extension for enhanced date and number entity recognition and extraction as structured data.

date-spacy v0.0.1 89.2K downloads/30d#13,675 on PyPI22
Permissive license Abandoned released

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-spacy

uv

uv add date-spacy

poetry

poetry add date-spacy

Installing 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

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3

Tags

spacy date entity extractionnlp date parsing pipelineextract dates from textspacy custom componentsdateparser integrationtemporal entity recognitiondate normalization nlp
nlpdate-extractionabandoned

More Linguistic packages