vineelagampa AyushSankar13 commited on
Commit
39e7c2e
·
verified ·
1 Parent(s): dd75344

Update bert.py (#10)

Browse files

- Update bert.py (6a8e2a451460d20d48e20ce7b894a980f7366f9c)


Co-authored-by: Ayush Sankar <AyushSankar13@users.noreply.huggingface.co>

Files changed (1) hide show
  1. bert.py +0 -3
bert.py CHANGED
@@ -198,9 +198,6 @@ nlp = spacy.load("en_core_web_sm")
198
  nlp.add_pipe("negex", config={"ent_types": ["DISEASE"]}, last=True)
199
  matcher = Matcher(nlp.vocab)
200
 
201
- clinical_bert_model = BertForSequenceClassification.from_pretrained("emilyalsentzer/Bio_ClinicalBERT")
202
- clinical_bert_tokenizer = BertTokenizer.from_pretrained("emilyalsentzer/Bio_ClinicalBERT")
203
-
204
  past_patterns = [
205
  [{"LOWER": "clinical"}, {"LOWER": "history:"}],
206
  [{"LOWER": "past"}, {"LOWER": "medical:"}],
 
198
  nlp.add_pipe("negex", config={"ent_types": ["DISEASE"]}, last=True)
199
  matcher = Matcher(nlp.vocab)
200
 
 
 
 
201
  past_patterns = [
202
  [{"LOWER": "clinical"}, {"LOWER": "history:"}],
203
  [{"LOWER": "past"}, {"LOWER": "medical:"}],