carisackc commited on
Commit
31de096
·
1 Parent(s): d1b2192

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -156,14 +156,12 @@ def genEntities(ann, entity):
156
 
157
  ##======================== Start of NER Tagging ========================
158
  #lemmatizing the notes to capture all forms of negation(e.g., deny: denies, denying)
159
- @st.cache
160
  def lemmatize(note, nlp):
161
  doc = nlp(note)
162
  lemNote = [wd.lemma_ for wd in doc]
163
  return " ".join(lemNote)
164
 
165
  #function to modify options for displacy NER visualization
166
- @st.cache
167
  def get_entity_options():
168
  entities = ["DISEASE", "CHEMICAL", "NEG_ENTITY"]
169
  colors = {'DISEASE': 'pink', 'CHEMICAL': 'orange', "NEG_ENTITY":'white'}
 
156
 
157
  ##======================== Start of NER Tagging ========================
158
  #lemmatizing the notes to capture all forms of negation(e.g., deny: denies, denying)
 
159
  def lemmatize(note, nlp):
160
  doc = nlp(note)
161
  lemNote = [wd.lemma_ for wd in doc]
162
  return " ".join(lemNote)
163
 
164
  #function to modify options for displacy NER visualization
 
165
  def get_entity_options():
166
  entities = ["DISEASE", "CHEMICAL", "NEG_ENTITY"]
167
  colors = {'DISEASE': 'pink', 'CHEMICAL': 'orange', "NEG_ENTITY":'white'}