eriktks/conll2003
Updated β’ 38.6k β’ 166
How to use starkdv123/conll2003-bert-ner-lora-merged with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="starkdv123/conll2003-bert-ner-lora-merged") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("starkdv123/conll2003-bert-ner-lora-merged")
model = AutoModelForTokenClassification.from_pretrained("starkdv123/conll2003-bert-ner-lora-merged")This repository contains the merged model (LoRA merged into base) trained on CoNLL-2003.
from transformers import pipeline
clf = pipeline("token-classification", model="starkdv123/conll2003-bert-ner-lora-merged", aggregation_strategy="simple")
clf("Chris Hoiles hit his 22nd homer for Baltimore.")