Downloads · 30 days
7
15% of all-time downloads
D3VILAni/event-period-ner-bert
event-period-ner-bert is a token classification model from D3VILAni. Use it when you need labels on individual words, such as names. The card lists the license as apache-2.0.
This model extracts events (spike/dip) and time periods (months, quarters, years) from natural language queries.
Downloads · 30 days
7
15% of all-time downloads
All-time downloads
48
Public
Parameters
108M
431 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors431 MB · 100%
From the Hugging Face model README
This model extracts events (spike/dip) and time periods (months, quarters, years) from natural language queries.
This model is designed to extract structured information from business analytics queries:
from transformers import pipeline
# Load the model
ner = pipeline(
"token-classification",
model="D3VILAni/event-period-ner-bert",
aggregation_strategy="simple"
)
# Extract events and periods
result = ner("spike in December 2024")
# Output:
# [
# {'word': 'spike', 'entity_group': 'EVENT_SPIKE', 'score': 0.98},
# {'word': 'December 2024', 'entity_group': 'PERIOD', 'score': 0.96}
# ]
| Label | Description | Example |
|---|---|---|
O | Outside (irrelevant tokens) | "in", "from", "to" |
B-EVENT_SPIKE | Positive event | spike, rise, surge, jump, increase, growth |
B-EVENT_DIP | Negative event | dip, drop, decline, decrease, fall, down |
B-PERIOD | Beginning of time period | February, Q1, 2024 |
I-PERIOD | Inside multi-token period | In "December 2024", "2024" is I-PERIOD |
For production use, implement post-processing to:
@misc{event-period-ner-bert,
author = {Your Name},
title = {{Event-Period NER BERT Model}},
year = {2025},
publisher = {{Hugging Face}},
url = {{https://huggingface.co/{username}/{CONFIG['repo_name']}}}
}
For questions or feedback, please open an issue on the model repository.