carisackc commited on
Commit
edabc76
·
1 Parent(s): ebe0cda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -155,7 +155,7 @@ def genEntities(ann, entity):
155
 
156
 
157
  ##======================== Start of NER Tagging ========================
158
- @st.cache
159
  #lemmatizing the notes to capture all forms of negation(e.g., deny: denies, denying)
160
  def lemmatize(note, nlp):
161
  doc = nlp(note)
@@ -250,7 +250,7 @@ def visualize (run_text,output):
250
  splitoutput = [x for x in output.split('.')]
251
  return splitoutput,splitruntext
252
 
253
-
254
  def run_model(input_text):
255
  if model == "BertSummarizer":
256
  output = original_text['BertSummarizer2s'].values
 
155
 
156
 
157
  ##======================== Start of NER Tagging ========================
158
+
159
  #lemmatizing the notes to capture all forms of negation(e.g., deny: denies, denying)
160
  def lemmatize(note, nlp):
161
  doc = nlp(note)
 
250
  splitoutput = [x for x in output.split('.')]
251
  return splitoutput,splitruntext
252
 
253
+ @st.cache
254
  def run_model(input_text):
255
  if model == "BertSummarizer":
256
  output = original_text['BertSummarizer2s'].values