|
from typing import Optional, Union |
|
|
|
from configs.fs import FSConfig |
|
|
|
|
|
class BoolQConfig(FSConfig): |
|
def __init__(self, **kwargs): |
|
super().__init__(**kwargs) |
|
|
|
@property |
|
def id_key(self) -> str: |
|
return "idx" |
|
|
|
@property |
|
def source_key(self) -> str: |
|
return "passage" |
|
|
|
@property |
|
def question_key(self) -> Union[str, None]: |
|
return "question" |
|
|
|
@property |
|
def target_key(self) -> str: |
|
return "label" |
|
|
|
@property |
|
def train_file(self) -> str: |
|
return "train.jsonl" |
|
|
|
@property |
|
def validation_file(self) -> str: |
|
return "val.jsonl" |
|
|
|
@property |
|
def test_file(self) -> str: |
|
return "test.jsonl" |
|
|