@register_task(TaskType.qa_bool_dureader)
@dataclass
class QuestionAnsweringBoolDureader(QuestionAnswering):
task: TaskType = TaskType.qa_bool_dureader
question_column: str = "question"
context_column: str = "documents"
answers_column: str = "answers"
answers: {"text": "xxx", "yesno_answer":"Yes"}
answers = {"text": answer_text, "answer_start": answer_start}
(1) answers = [{"text": answer_text, "answer_start": answer_start}]
(2) answers = {"text": [answer_text], "answer_start": [answer_start]}
1. cmrc2019
load_dataset("gaokao2018_np1", "cloze-multiple-choice")2. dureader_yesno
answerbeanswers?contextas a columnqa_extractive? it should be qa_multiple_choice or qa_bool?3. dureader_search
qa_extractivewhile the context_column = "documents" is not a string4. ckbqa
5. coqa
6. dureader_robust
DataLab/datasets/dureader_robust/dureader_robust.py
Line 79 in 76548db
7. ccpm
QuestionAnsweringMultipleChoiceWithoutContextfor this dataset8. cail2019
ccks2019_fin
ccks2020_fin_ee
ccks2021_fin_ea
argumentsis different from the above one, so we probably need to modify the task name a little bitccks2021_fin_ea?ccks2021_fin_re
event_relation_extraction