You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
304 B
Python

from typing import *
from dataclasses import dataclass
@dataclass
class PromptSample:
prompt: str
code: str
extra: dict = None
PromptDataset = Iterable[PromptSample]
@dataclass
class LabelSample:
prompt: str
label: int
extra: dict = None
LabelDataset = Iterable[LabelSample]