pytorch bert token-classification py transformers autotrain_compatible
---

language: 
  - py
metrics:
- f1

---

To use our fine-tuned BioBERT model to remove references to priors from radiology reports, run the following:

```python
from transformers import AutoTokenizer, AutoModelForTokenClassification

modelname = "rajpurkarlab/biobert-finetuned-prior-rmv"
tokenizer = AutoTokenizer.from_pretrained(modelname)
model = AutoModelForTokenClassification.from_pretrained(modelname)
```