Instructions to use obi/deid_bert_i2b2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use obi/deid_bert_i2b2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="obi/deid_bert_i2b2")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("obi/deid_bert_i2b2") model = AutoModelForTokenClassification.from_pretrained("obi/deid_bert_i2b2") - Notebooks
- Google Colab
- Kaggle
Error in trying to follow along in lambda function steps
#2
by brookbi - opened
Hi, I'm trying to follow-along with the jupyter notebook instructions here (https://github.com/obi-ml-public/ehr_deidentification/blob/main/steps/forward_pass/Forward%20Pass.ipynb) at step 0 and erroring out at the line:
from robust_deid.ner_datasets import DatasetCreator
I'm not sure if I'm not in the right environment or something else. I see there's a "deid.yml" file referenced in the readme but I'm not seeing it after cloning the repo. Has anyone else ever encounter this before or have any ideas? Thanks
