Spaces:
Build error
Build error
Update app.py
Browse files
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(
|
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)
|