Upload blocks.py with huggingface_hub
Browse files
blocks.py
CHANGED
@@ -2,12 +2,9 @@ from .card import TaskCard
|
|
2 |
from .catalog import LocalCatalog
|
3 |
from .collections import ItemPicker, RandomPicker
|
4 |
from .instructions import (
|
5 |
-
Instruction,
|
6 |
-
InstructionsDict,
|
7 |
-
InstructionsList,
|
8 |
TextualInstruction,
|
9 |
)
|
10 |
-
from .loaders import LoadFromIBMCloud, LoadHF
|
11 |
from .metrics import Accuracy
|
12 |
from .normalizers import NormalizeListFields
|
13 |
from .operators import (
|
@@ -21,16 +18,24 @@ from .operators import (
|
|
21 |
)
|
22 |
from .processors import ToString, ToStringStripped
|
23 |
from .recipe import SequentialRecipe
|
24 |
-
from .serializers import (
|
25 |
-
IndexedRowMajorTableSerializer,
|
26 |
-
MarkdownTableSerializer,
|
27 |
-
)
|
28 |
from .splitters import RandomSampler, SliceSplit, SplitRandomMix, SpreadSplit
|
29 |
from .stream import MultiStream
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
from .task import FormTask
|
31 |
from .templates import (
|
32 |
InputOutputTemplate,
|
33 |
MultiLabelTemplate,
|
|
|
34 |
OutputQuantizingTemplate,
|
35 |
SpanLabelingTemplate,
|
36 |
Template,
|
|
|
2 |
from .catalog import LocalCatalog
|
3 |
from .collections import ItemPicker, RandomPicker
|
4 |
from .instructions import (
|
|
|
|
|
|
|
5 |
TextualInstruction,
|
6 |
)
|
7 |
+
from .loaders import LoadFromIBMCloud, LoadFromKaggle, LoadHF
|
8 |
from .metrics import Accuracy
|
9 |
from .normalizers import NormalizeListFields
|
10 |
from .operators import (
|
|
|
18 |
)
|
19 |
from .processors import ToString, ToStringStripped
|
20 |
from .recipe import SequentialRecipe
|
|
|
|
|
|
|
|
|
21 |
from .splitters import RandomSampler, SliceSplit, SplitRandomMix, SpreadSplit
|
22 |
from .stream import MultiStream
|
23 |
+
from .struct_data_operators import (
|
24 |
+
ListToKeyValPairs,
|
25 |
+
SerializeKeyValPairs,
|
26 |
+
SerializeTableAsIndexedRowMajor,
|
27 |
+
SerializeTableAsMarkdown,
|
28 |
+
SerializeTableRowAsList,
|
29 |
+
SerializeTableRowAsText,
|
30 |
+
SerializeTriples,
|
31 |
+
TruncateTableCells,
|
32 |
+
TruncateTableRows,
|
33 |
+
)
|
34 |
from .task import FormTask
|
35 |
from .templates import (
|
36 |
InputOutputTemplate,
|
37 |
MultiLabelTemplate,
|
38 |
+
MultiReferenceTemplate,
|
39 |
OutputQuantizingTemplate,
|
40 |
SpanLabelingTemplate,
|
41 |
Template,
|