Views
No views yet
answerdotai/ModernBERT-large, fine-tuned on the English CoNLL-2003 dataset. It identifies and classifies entities into four types: Person, Organization, Location, and Miscellaneous.seqeval (overall precision, recall, F1, accuracy)| Label ID | Entity Tag |
|---|---|
| 0 | O |
| 1 | B-PER |
| 2 | I-PER |
| 3 | B-ORG |
| 4 | I-ORG |
| 5 | B-LOC |
| 6 | I-LOC |
| 7 | B-MISC |
| 8 | I-MISC |
[1e-5, 5e-4] (log scale)[8, 16, 32][2, 6][0.0, 0.1][0.0, 0.2][1, 4]train splitvalidation split (used for early stopping / best model selection)test split (final evaluation)["Micro", "##soft"] and the original tag is B-ORG, the first subword gets B-ORG and the second gets I-ORG. This is implemented in the align_labels function.1from transformers import pipeline
2
3ner = pipeline("token-classification", model="violetar/ner-model", aggregation_strategy="simple")
4sentence = "John Smith works at Microsoft in New York."
5results = ner(sentence)
6
7for entity in results:
8 print(f"{entity['word']} -> {entity['entity_group']} (score: {entity['score']:.2f})")