eriktks/conll2003
Updated β’ 39.3k β’ 166
How to use starkdv123/conll2003-bert-ner-full with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="starkdv123/conll2003-bert-ner-full") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("starkdv123/conll2003-bert-ner-full")
model = AutoModelForTokenClassification.from_pretrained("starkdv123/conll2003-bert-ner-full")This repository contains a BERT base cased model fine-tuned on CoNLL-2003 (parquet version). Evaluated with seqeval (entity-level F1).
from transformers import pipeline
clf = pipeline("token-classification", model="starkdv123/conll2003-bert-ner-full", aggregation_strategy="simple")
clf("Chris Hoiles hit his 22nd homer for Baltimore.")
bert-base-cased LOC MISC O ORG PER
LOC 411 6 21 32 3
MISC 9 2213 51 76 14
O 67 110 38063 58 17
ORG 31 77 32 2353 10
PER 3 42 15 24 2689