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 = '60c04aa1-ebc8-4636-b0ce-62c7dbf7faf2')[source]#

Bases: DataClass

A common dataclass for representing examples in a dataset.

id: str = '60c04aa1-ebc8-4636-b0ce-62c7dbf7faf2'#
class Example(id: str = '93dba5b1-12eb-4569-a6e4-dd2130aacf61', question: str = None, answer: str = None)[source]#

Bases: DataClass

A common dataclass for representing examples in a dataset.

id: str = '93dba5b1-12eb-4569-a6e4-dd2130aacf61'#
question: str = None#
answer: str = None#
class HotPotQAData(id: str = '93dba5b1-12eb-4569-a6e4-dd2130aacf61', 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 = '60c04aa1-ebc8-4636-b0ce-62c7dbf7faf2', 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#