Downloads · 30 days
6
20% of all-time downloads
cxx5208/NER_finetuned
NER_finetuned is a token classification model from cxx5208. Use it when you need labels on individual words, such as names. It is set up for transformers.
Downloads · 30 days
6
20% of all-time downloads
All-time downloads
30
Public
Parameters
65.2M
261 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors261 MB · 100%
From the Hugging Face model README
This repository contains a DistilBERT model fine-tuned for Named Entity Recognition (NER). The model has been trained to identify and classify named entities such as names of people, places, organizations, and dates in text.
You can use this model with the Hugging Face transformers library to perform NER on your text data. Below are examples of how to use the model and tokenizer.
First, make sure you have the transformers library installed:
pip install transformers
from transformers import pipeline
# Load the model and tokenizer
token_classifier = pipeline(
"token-classification",
model="cxx5208/NER_finetuned",
tokenizer="cxx5208/NER_finetuned",
aggregation_strategy="simple"
)
# Example text
text = "My name is Yeshvanth Raju Kurapati. I study at San Jose State University"
# Perform NER
entities = token_classifier(text)
print(entities)
[
{'entity_group': 'PER',
'score': 0.99808735,
'word': 'Yeshvanth Raju Kurapati',
'start': 11,
'end': 34},
{'entity_group': 'ORG',
'score': 0.9923826,
'word': 'San Jose State University',
'start': 47,
'end': 72}
]
The model was fine-tuned using the following hyperparameters:
The training process involved using a standard NER dataset (e.g., CoNLL-2003) and included steps for tokenization, data preprocessing, and evaluation.
The model was evaluated using precision, recall, F1-score, and accuracy metrics. The performance metrics are as follows:
DistilBERT is a smaller, faster, cheaper version of BERT developed by Hugging Face. It retains 97% of BERT’s language understanding capabilities while being 60% faster and 40% smaller.
This model is released under the MIT License.