bert_max_doc_str_max_str_pos_clean_doc_noise_doc/run_doc_qa.py
def normalized_result_generator(result_list):
        """The generator function for normalizing the results."""
        for result in result_list:
            qid = unique_id_to_qid[result.unique_id]
            doc_start_score = qid_to_doc_start_score[qid]
            doc_end_score = qid_to_doc_end_score[qid]
            yield RawResult(
                unique_id=result.unique_id,
                start_logits=normalize(result.start_logits, doc_start_score),
                end_logits=normalize(result.end_logits, doc_end_score)
            )
The generator function for normalizing the results.
The generator function for normalizing the results.
The generator function for normalizing the results .
def normalized_result_generator(result_list):
        for result in result_list:
            qid = unique_id_to_qid[result.unique_id]
            doc_start_score = qid_to_doc_start_score[qid]
            doc_end_score = qid_to_doc_end_score[qid]
            yield RawResult(
                unique_id=result.unique_id,
                start_logits=normalize(result.start_logits, doc_start_score),
                end_logits=normalize(result.end_logits, doc_end_score)
            )
def normalized_result_generator ( result_list ) : for result in result_list : qid = unique_id_to_qid [ result . unique_id ] doc_start_score = qid_to_doc_start_score [ qid ] doc_end_score = qid_to_doc_end_score [ qid ] yield RawResult ( unique_id = result . unique_id , start_logits = normalize ( result . start_logits , doc_start_score ) , end_logits = normalize ( result . end_logits , doc_end_score ) )
The generator function for normalizing the results.
The generator function for normalizing the results .
"""The generator function for normalizing the results."""
result_list