ajitrajasekharan commited on
Commit
a69e30b
1 Parent(s): d3d39c9

Update aggregate_server_json.py

Browse files
Files changed (1) hide show
  1. aggregate_server_json.py +1 -2
aggregate_server_json.py CHANGED
@@ -298,8 +298,7 @@ class AggregateNER:
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)
 
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 (is_cs_included and self.check_if_entity_in_arr(m2_cs,ret_arr)):
 
302
  ret_obj = results[server_index]["ner"][run_index].copy()
303
  dummy,prefix = prefix_strip(ret_obj["e"])
304
  n1 = flip_category(orig_cs_second_entity)