Spaces:
Runtime error
Runtime error
Commit
·
f82ead3
1
Parent(s):
d845c1b
Update aggregate_server_json.py
Browse files- aggregate_server_json.py +2 -2
aggregate_server_json.py
CHANGED
@@ -248,7 +248,7 @@ class AggregateNER:
|
|
248 |
n1 = flip_category(orig_cs_entity)
|
249 |
n1["e"] = prefix + n1["e"]
|
250 |
n2 = flip_category(consolidated_entity)
|
251 |
-
ret_obj["e"] =
|
252 |
return ret_obj
|
253 |
else:
|
254 |
#if we come here consolidated is same as cs prediction. So we try to either use ci or the second cs prediction if ci is out of domain
|
@@ -262,7 +262,7 @@ class AggregateNER:
|
|
262 |
n1["e"] = prefix + n1["e"]
|
263 |
n2 = flip_category(orig_ci_entity)
|
264 |
n2["e"] = prefix + n2["e"]
|
265 |
-
ret_obj["e"] =
|
266 |
return ret_obj
|
267 |
else:
|
268 |
#We come here for the case where CI is not in server list. So we pick the second cs as an option if meaningful
|
|
|
248 |
n1 = flip_category(orig_cs_entity)
|
249 |
n1["e"] = prefix + n1["e"]
|
250 |
n2 = flip_category(consolidated_entity)
|
251 |
+
ret_obj["e"] = n1["e"] + "/" + n2["e"]
|
252 |
return ret_obj
|
253 |
else:
|
254 |
#if we come here consolidated is same as cs prediction. So we try to either use ci or the second cs prediction if ci is out of domain
|
|
|
262 |
n1["e"] = prefix + n1["e"]
|
263 |
n2 = flip_category(orig_ci_entity)
|
264 |
n2["e"] = prefix + n2["e"]
|
265 |
+
ret_obj["e"] = n1["e"] + "/" + n2["e"]
|
266 |
return ret_obj
|
267 |
else:
|
268 |
#We come here for the case where CI is not in server list. So we pick the second cs as an option if meaningful
|