Spaces:
Sleeping
Sleeping
JasonTPhillipsJr
commited on
Commit
•
340e947
1
Parent(s):
a3ad8d6
Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ 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 |
-
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)
|
|
|
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)
|