JasonTPhillipsJr commited on
Commit
a3ad8d6
·
verified ·
1 Parent(s): d28ebf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -140,6 +140,8 @@ def processSpatialEntities(review, nlp):
140
  # Iterate over each entity span and process only geo entities
141
  for start, end, text, label in entity_spans:
142
  if label in ['FAC', 'ORG', 'LOC', 'GPE']: # Filter to geo-entities
 
 
143
  spaBert_emb = get_spaBert_embedding(text,current_pseudo_sentences)
144
  token_embeddings.append(spaBert_emb)
145
  if(dev_mode == True):
 
140
  # Iterate over each entity span and process only geo entities
141
  for start, end, text, label in entity_spans:
142
  if label in ['FAC', 'ORG', 'LOC', 'GPE']: # Filter to geo-entities
143
+ if(dev_mode == True)
144
+ st.write("Text found:", text)
145
  spaBert_emb = get_spaBert_embedding(text,current_pseudo_sentences)
146
  token_embeddings.append(spaBert_emb)
147
  if(dev_mode == True):