types#

Classes

BaseData([id])

A common dataclass for representing examples in a dataset.

Example([id, question, answer])

A common dataclass for representing examples in a dataset.

HotPotQAData([id, question, answer, gold_titles])

A dataclass for representing examples in the HotPotQA dataset.

TrecData([id, question, class_name, class_index])

A dataclass for representing examples in the TREC dataset.

class BaseData(id: str = 'd1bfa711-900b-4d00-98bc-8c9502dd6404')[source]#

Bases: DataClass

A common dataclass for representing examples in a dataset.

id: str = 'd1bfa711-900b-4d00-98bc-8c9502dd6404'#
class Example(id: str = 'bb33e8bd-717c-476c-ba00-e7e69940c2e4', question: str = None, answer: str = None)[source]#

Bases: DataClass

A common dataclass for representing examples in a dataset.

id: str = 'bb33e8bd-717c-476c-ba00-e7e69940c2e4'#
question: str = None#
answer: str = None#
class HotPotQAData(id: str = 'bb33e8bd-717c-476c-ba00-e7e69940c2e4', question: str = None, answer: str = None, gold_titles: set = None)[source]#

Bases: Example

A dataclass for representing examples in the HotPotQA dataset.

gold_titles: set = None#
class TrecData(id: str = 'd1bfa711-900b-4d00-98bc-8c9502dd6404', question: str = None, class_name: str = None, class_index: int = -1)[source]#

Bases: BaseData

A dataclass for representing examples in the TREC dataset.

question: str = None#
class_name: str = None#
class_index: int = -1#