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