Downloads · 30 days
10
3% of all-time downloads
Astral7/roberta-large-finetuned-ner
roberta-large-finetuned-ner is a token classification model from Astral7. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
probably proofread and complete it, then remove this comment. --
Downloads · 30 days
10
3% of all-time downloads
All-time downloads
393
Public
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.h51.4 GB · 100%
From the Hugging Face model README
roberta-large-finetuned-ner is a fine-tuned Roberta model that is ready to use for Named Entity Recognition. It has been trained to recognize eight types of entities: Geographical, Organization, Person, Geopolitical Entity, Time indicator, Artifact, Event, Natural Phenomenon. This model is a fine-tuned version of FacebookAI/roberta-large on an Named Entity Recognition (NER) Corpus dataset.
It achieves the following results on the evaluation set:
You can use this model with Transformers pipeline for NER.
from transformers import AutoTokenizer, TFAutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("Astral7/roberta-large-finetuned-ner",add_prefix_space=True)
model = TFAutoModelForTokenClassification.from_pretrained("Astral7/roberta-large-finetuned-ner")
nlp_pipe = pipeline("token-classification", model=model,tokenizer=tokenizer )
example = "My name is Clara and I live in Berkeley, California."
results=nlp_pipe(example)
print(results)
This model is limited by its training dataset of Annotated Corpus for Named Entity Recognition is annotated Corpus for Named Entity Recognition using GMB(Groningen Meaning Bank) corpus for entity classification with enhanced and popular features by Natural Language Processing applied to the data set.
This model was fine-tuned on Corpus for Named Entity Recognition Dataset.
As in the dataset, each token will be classified as one of the following classes:
| Abbreviation | Description |
|---|---|
| B-eve | Event |
| I-eve | Event |
| B-org | Organization |
| I-org | Organization |
| B-gpe | Geopolitical Entity |
| I-gpe | Geopolitical Entity |
| B-geo | Geographical |
| I-geo | Geographical |
| B-nat | Natural Phenomenon |
| I-nat | Natural Phenomenon |
| B-per | Person |
| I-per | Person |
| B-art | Art |
| I-art | Art |
| B-tim | Time |
| I-tim | Time |
This model was trained on a single T4 GPU.
The following hyperparameters were used during training:
| Train Loss | Validation Loss | Train Precision | Train Recall | Train F1 | Train Accuracy | Epoch |
|---|---|---|---|---|---|---|
| 0.1164 | 0.0878 | 0.8442 | 0.8358 | 0.8400 | 0.9718 | 0 |