File size: 526 Bytes
31bb457 c08d258 935d4eb 2a0fd88 7f26536 935d4eb c08d258 7f26536 935d4eb 16adfc9 2a0fd88 7f26536 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from typing import List
from .artifact import Artifact
from .collections import Collection
from .dataclass import OptionalField
from .loaders import Loader
from .operator import StreamingOperator
from .splitters import RandomSampler, Sampler
from .task import FormTask
class TaskCard(Artifact):
loader: Loader
task: FormTask
preprocess_steps: List[StreamingOperator] = None
templates: Collection = None
instructions: Collection = None
sampler: Sampler = OptionalField(default_factory=RandomSampler)
|