# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("rajpurkarlab/gilbert")
model = AutoModelForTokenClassification.from_pretrained("rajpurkarlab/gilbert")Quick Links
To use our fine-tuned BioBERT model to remove references to priors from radiology reports, run the following:
from transformers import AutoTokenizer, AutoModelForTokenClassification
modelname = "rajpurkarlab/gilbert"
tokenizer = AutoTokenizer.from_pretrained(modelname)
model = AutoModelForTokenClassification.from_pretrained(modelname)
- Downloads last month
- 38
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="rajpurkarlab/gilbert")