carisackc commited on
Commit
7b16692
·
1 Parent(s): ea300d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,8 +23,8 @@ if "visibility" not in st.session_state:
23
 
24
  #nlp = en_core_web_lg.load()
25
  nlp = spacy.load("en_ner_bc5cdr_md")
26
- nlp0 = spacy.load("en_ner_bc5cdr_md")
27
- nlp1 = spacy.load("en_ner_bc5cdr_md")
28
 
29
  st.set_page_config(page_title ='Clinical Note Summarization',
30
  #page_icon= "Notes",
@@ -258,7 +258,7 @@ options = get_entity_options()
258
  #list of negative concepts from clinical note identified by negspacy
259
  results0 = negation_handling("en_ner_bc5cdr_md", lem_clinical_note, neg_model)
260
 
261
- matcher = match(nlp1, results0,"NEG_ENTITY")
262
 
263
  #doc0: new doc object with added "NEG_ENTITY label"
264
  doc0 = overwrite_ent_lbl(matcher,doc)
 
23
 
24
  #nlp = en_core_web_lg.load()
25
  nlp = spacy.load("en_ner_bc5cdr_md")
26
+ #nlp0 = spacy.load("en_ner_bc5cdr_md")
27
+ #nlp1 = spacy.load("en_ner_bc5cdr_md")
28
 
29
  st.set_page_config(page_title ='Clinical Note Summarization',
30
  #page_icon= "Notes",
 
258
  #list of negative concepts from clinical note identified by negspacy
259
  results0 = negation_handling("en_ner_bc5cdr_md", lem_clinical_note, neg_model)
260
 
261
+ matcher = match(nlp, results0,"NEG_ENTITY")
262
 
263
  #doc0: new doc object with added "NEG_ENTITY label"
264
  doc0 = overwrite_ent_lbl(matcher,doc)