Downloads · 30 days
0
starkdv123/conll2003-bert-ner-lora
conll2003-bert-ner-lora is a token classification model from starkdv123. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains LoRA adapter weights trained on CoNLL-2003 for BERT base cased.
Downloads · 30 days
0
Access
Public
Updated Sep 22, 2025
Repo size
3.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors3.9 MB · 81%
From the Hugging Face model README
This repository contains LoRA adapter weights trained on CoNLL-2003 for BERT base cased.
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
from peft import PeftModel
base = "bert-base-cased"
adapter = "starkdv123/conll2003-bert-ner-lora"
tok = AutoTokenizer.from_pretrained(base)
base_model = AutoModelForTokenClassification.from_pretrained(base, num_labels=9)
model = PeftModel.from_pretrained(base_model, adapter)
clf = pipeline("token-classification", model=model, tokenizer=tok, aggregation_strategy="simple")
clf("Chris Hoiles hit his 22nd homer for Baltimore.")
LOC MISC O ORG PER
LOC 384 6 35 43 5
MISC 12 2138 80 100 33
O 57 119 38060 58 21
ORG 43 109 36 2304 11
PER 1 27 18 22 2705