tner/bc5cdr
Viewer • Updated • 16.4k • 2.02k • 5
How to use sschet/biobert_chemical_ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="sschet/biobert_chemical_ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("sschet/biobert_chemical_ner")
model = AutoModelForTokenClassification.from_pretrained("sschet/biobert_chemical_ner")BioBERT model fine-tuned in NER task with BC5CDR-chemicals and BC4CHEMD corpus.
This was fine-tuned in order to use it in a BioNER/BioNEN system which is available at: https://github.com/librairy/bio-ner