ajitrajasekharan commited on
Commit
47aa73e
1 Parent(s): 03e519a

Update aggregate_server_json.py

Browse files
Files changed (1) hide show
  1. aggregate_server_json.py +2 -2
aggregate_server_json.py CHANGED
@@ -253,7 +253,6 @@ class AggregateNER:
253
  return ret_obj
254
  else:
255
  #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
256
- print("***** here 1")
257
  if (m1 != m1_ci):
258
  #CS and CI are not same
259
  if (is_ci_included):
@@ -299,7 +298,8 @@ class AggregateNER:
299
  is_cs_included = True if (m2_cs in servers_arr[server_index]["precedence"]) else False
300
  is_cs_included = True #Disabling cs included check. If prediction above threshold is cross prediction, then letting it through
301
  assert (m2_cs != m1)
302
- if (is_cs_included and self.check_if_entity_in_arr(m2_cs,ret_arr)):
 
303
  ret_obj = results[server_index]["ner"][run_index].copy()
304
  dummy,prefix = prefix_strip(ret_obj["e"])
305
  n1 = flip_category(orig_cs_second_entity)
 
253
  return ret_obj
254
  else:
255
  #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
 
256
  if (m1 != m1_ci):
257
  #CS and CI are not same
258
  if (is_ci_included):
 
298
  is_cs_included = True if (m2_cs in servers_arr[server_index]["precedence"]) else False
299
  is_cs_included = True #Disabling cs included check. If prediction above threshold is cross prediction, then letting it through
300
  assert (m2_cs != m1)
301
+ if (True):
302
+ #if (is_cs_included and self.check_if_entity_in_arr(m2_cs,ret_arr)):
303
  ret_obj = results[server_index]["ner"][run_index].copy()
304
  dummy,prefix = prefix_strip(ret_obj["e"])
305
  n1 = flip_category(orig_cs_second_entity)