Skip to content

Commit

Permalink
Added Date spaCy to universe (#13415) [ci skip]
Browse files Browse the repository at this point in the history
Co-authored-by: Ines Montani <[email protected]>
  • Loading branch information
wjbmattingly and ines committed Sep 10, 2024
1 parent f1a5ff9 commit 30f1f33
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions website/meta/universe.json
Original file line number Diff line number Diff line change
Expand Up @@ -5530,6 +5530,48 @@
"transcription",
"nlp"
]
},
{
"id": "date-spacy",
"title": "Date spaCy",
"slogan": "Effortless Date Recognition in Text with spaCy",
"description": "Date spaCy is a spaCy pipeline component designed to identify and parse date entities in text effortlessly. It uses Regular Expressions (RegEx) to detect a wide range of date formats and leverages the 'dateparser' library for accurate conversion into structured datetime objects. Particularly useful in NLP tasks involving date information extraction, this component seamlessly integrates into existing or new spaCy pipelines. The tool assumes the current year for dates without a specified year, ensuring sensible defaults while maintaining flexibility. The parsed dates are stored in a custom entity extension, providing easy access and manipulation within spaCy's ecosystem. This makes Date spaCy a go-to solution for developers and data scientists dealing with temporal data in natural language.",
"github": "wjbmattingly/date-spacy",
"pip": "date-spacy",
"code_example": [
"import spacy",
"from date_spacy import find_dates",
"",
"nlp = spacy.blank('en')",
"nlp.add_pipe('find_dates')",
"",
"doc = nlp(\"\"\"The event is scheduled for 25th August 2023.",
" We also have a meeting on 10 September and another one on the twelfth of October and a",
" final one on January fourth.\"\"\")",
"",
"for ent in doc.ents:",
" if ent.label_ == 'DATE':",
" print(f'Text: {ent.text} -> Parsed Date: {ent._.date}')"
],
"code_language": "python",
"url": "https://github.com/wjbmattingly/date-spacy",
"thumb": "https://github.com/wjbmattingly/date-spacy/raw/main/images/date-spacy-logo.png?raw=true",
"image": "https://github.com/wjbmattingly/date-spacy/raw/main/images/date-spacy-logo.png?raw=true",
"author": "W.J.B. Mattingly",
"author_links": {
"twitter": "wjb_mattingly",
"github": "wjbmattingly",
"website": "https://wjbmattingly.com"
},
"category": [
"pipeline"
],
"tags": [
"dates",
"ner",
"nlp",
"spacy"
]
}
],
"categories": [
Expand Down

0 comments on commit 30f1f33

Please sign in to comment.