Commit 87bc2cdc authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 349317246
parent 16c3feab
...@@ -619,6 +619,9 @@ def postprocess_output(all_examples, ...@@ -619,6 +619,9 @@ def postprocess_output(all_examples,
null_start_logit = 0 # the start logit at the slice with min null score null_start_logit = 0 # the start logit at the slice with min null score
null_end_logit = 0 # the end logit at the slice with min null score null_end_logit = 0 # the end logit at the slice with min null score
for (feature_index, feature) in enumerate(features): for (feature_index, feature) in enumerate(features):
if feature.unique_id not in unique_id_to_result:
logging.info("Skip eval example %s, not in pred.", feature.unique_id)
continue
result = unique_id_to_result[feature.unique_id] result = unique_id_to_result[feature.unique_id]
# if we could have irrelevant answers, get the min score of irrelevant # if we could have irrelevant answers, get the min score of irrelevant
......
...@@ -686,6 +686,9 @@ def postprocess_output(all_examples, ...@@ -686,6 +686,9 @@ def postprocess_output(all_examples,
null_start_logit = 0 # the start logit at the slice with min null score null_start_logit = 0 # the start logit at the slice with min null score
null_end_logit = 0 # the end logit at the slice with min null score null_end_logit = 0 # the end logit at the slice with min null score
for (feature_index, feature) in enumerate(features): for (feature_index, feature) in enumerate(features):
if feature.unique_id not in unique_id_to_result:
logging.info("Skip eval example %s, not in pred.", feature.unique_id)
continue
result = unique_id_to_result[feature.unique_id] result = unique_id_to_result[feature.unique_id]
# if we could have irrelevant answers, get the min score of irrelevant # if we could have irrelevant answers, get the min score of irrelevant
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment