Improving the Performance of Radiology Report De-identification with Large-Scale Training and Benchmarking Against Cloud Vendor Methods
Paper • 2511.04079 • Published • 1
How to use StanfordAIMI/stanford-deidentifier-v2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="StanfordAIMI/stanford-deidentifier-v2") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("StanfordAIMI/stanford-deidentifier-v2")
model = AutoModelForTokenClassification.from_pretrained("StanfordAIMI/stanford-deidentifier-v2")