lukasgarbas/conll-03
Viewer • Updated • 20.7k • 137
How to use Ahmedhisham/EnglishNER_TR with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Ahmedhisham/EnglishNER_TR", trust_remote_code=True) # Load model directly
from transformers import AutoModelForTokenClassification
model = AutoModelForTokenClassification.from_pretrained("Ahmedhisham/EnglishNER_TR", trust_remote_code=True, dtype="auto")Custom English NER Transformer trained from scratch with a custom WordPiece tokenizer on CoNLL-03.
from transformers import AutoConfig, AutoModelForTokenClassification, AutoTokenizer
repo_id = "Ahmedhisham/EnglishNER_TR"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
config = AutoConfig.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForTokenClassification.from_pretrained(repo_id, trust_remote_code=True)
This repository contains custom modeling code, configuration code, tokenizer files, and training metadata.
