Spaces:
Runtime error
Runtime error
ajitrajasekharan
commited on
Commit
·
f02a176
1
Parent(s):
4cf6282
Update aggregate_server_json.py
Browse files- aggregate_server_json.py +1 -1
aggregate_server_json.py
CHANGED
@@ -224,7 +224,7 @@ class AggregateNER:
|
|
224 |
|
225 |
def check_if_entity_in_arr(self,entity,arr):
|
226 |
for node in arr:
|
227 |
-
if (entity == node["e"]):
|
228 |
return True
|
229 |
return False
|
230 |
|
|
|
224 |
|
225 |
def check_if_entity_in_arr(self,entity,arr):
|
226 |
for node in arr:
|
227 |
+
if (entity == node["e"].split('[')[0]):
|
228 |
return True
|
229 |
return False
|
230 |
|