Spaces:
Runtime error
Runtime error
ajitrajasekharan
commited on
Commit
·
2d63695
1
Parent(s):
35aea60
Update aggregate_server_json.py
Browse files- aggregate_server_json.py +2 -2
aggregate_server_json.py
CHANGED
@@ -82,8 +82,8 @@ class AggregateNER:
|
|
82 |
print("Both servers agree on prediction for term:",results[0]["ner"][pos_index]["term"],":",s1_entity)
|
83 |
#return server_index,span_count1,-1
|
84 |
#This is an override for single server response being ensembles to pick two predictions.
|
85 |
-
|
86 |
-
|
87 |
else:
|
88 |
print("Servers do not agree on prediction for term:",results[0]["ner"][pos_index]["term"],":",s1_entity,s2_entity)
|
89 |
if (s2_entity == "O"):
|
|
|
82 |
print("Both servers agree on prediction for term:",results[0]["ner"][pos_index]["term"],":",s1_entity)
|
83 |
#return server_index,span_count1,-1
|
84 |
#This is an override for single server response being ensembles to pick two predictions.
|
85 |
+
picked_server_index,cross_prediction_count = self.pick_single_server_if_possible(results,term_index,servers_arr)
|
86 |
+
return picked_server_index,span_count1,cross_prediction_count
|
87 |
else:
|
88 |
print("Servers do not agree on prediction for term:",results[0]["ner"][pos_index]["term"],":",s1_entity,s2_entity)
|
89 |
if (s2_entity == "O"):
|