ajitrajasekharan commited on
Commit
d845c1b
·
1 Parent(s): a44fe85

Update aggregate_server_json.py

Browse files
Files changed (1) hide show
  1. aggregate_server_json.py +2 -2
aggregate_server_json.py CHANGED
@@ -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"] = 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
@@ -302,7 +302,7 @@ class AggregateNER:
302
  n1["e"] = prefix + n1["e"]
303
  n2 = flip_category(orig_cs_entity)
304
  n2["e"] = prefix + n2["e"]
305
- ret_obj["e"] = n2["e"] + "/" + n1["e"]
306
  return ret_obj
307
  else:
308
  return flip_category(results[server_index]["ner"][run_index])
 
262
  n1["e"] = prefix + n1["e"]
263
  n2 = flip_category(orig_ci_entity)
264
  n2["e"] = prefix + n2["e"]
265
+ ret_obj["e"] = n2["e"] + "/" + n1["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
 
302
  n1["e"] = prefix + n1["e"]
303
  n2 = flip_category(orig_cs_entity)
304
  n2["e"] = prefix + n2["e"]
305
+ ret_obj["e"] = n2["e"] + "/" + n1["e"] #when using single server twice, best to keep cs first
306
  return ret_obj
307
  else:
308
  return flip_category(results[server_index]["ner"][run_index])