Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Date spaCy to universe (#13415) [ci skip] #13415

Merged
merged 4 commits into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading