initial commit 3827e1d
mathieu commited on
How to use laiking/biomedbert-outcomes-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="laiking/biomedbert-outcomes-ner") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("laiking/biomedbert-outcomes-ner")
model = AutoModel.from_pretrained("laiking/biomedbert-outcomes-ner", device_map="auto")