Views
No views yet
microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract on the BC5CDR dataset.1from transformers import pipeline
2
3pipe = pipeline("token-classification", model="HFpf/pubmedbert-bc5cdr-ner")
4result = pipe("The patient was treated with metformin for type 2 diabetes.")
5print(result)