Download blocks.py from unitxt/data: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/datasets/unitxt/data/resolve/009cdd342d9f94fa053c94925fa52143bf8ced77/blocks.py
- Command line
-
hf download hf://datasets/unitxt/data@009cdd342d9f94fa053c94925fa52143bf8ced77/blocks.py
-
curl -L -o blocks.py https://huggingface.co/datasets/unitxt/data/resolve/009cdd342d9f94fa053c94925fa52143bf8ced77/blocks.py
1.18 kB
| from .card import TaskCard | |
| from .catalog import LocalCatalog | |
| from .collections import ItemPicker, RandomPicker | |
| from .instructions import ( | |
| TextualInstruction, | |
| ) | |
| from .loaders import LoadFromIBMCloud, LoadFromKaggle, LoadHF | |
| from .metrics import Accuracy | |
| from .normalizers import NormalizeListFields | |
| from .operators import ( | |
| AddFields, | |
| AddID, | |
| CastFields, | |
| CopyFields, | |
| DivideAllFieldsBy, | |
| MapInstanceValues, | |
| RenameFields, | |
| ) | |
| from .processors import ToString, ToStringStripped | |
| from .recipe import SequentialRecipe | |
| from .splitters import RandomSampler, SliceSplit, SplitRandomMix, SpreadSplit | |
| from .stream import MultiStream | |
| from .struct_data_operators import ( | |
| ListToKeyValPairs, | |
| SerializeKeyValPairs, | |
| SerializeTableAsIndexedRowMajor, | |
| SerializeTableAsMarkdown, | |
| SerializeTableRowAsList, | |
| SerializeTableRowAsText, | |
| SerializeTriples, | |
| TruncateTableCells, | |
| TruncateTableRows, | |
| ) | |
| from .task import FormTask, Task | |
| from .templates import ( | |
| InputOutputTemplate, | |
| MultiLabelTemplate, | |
| MultiReferenceTemplate, | |
| OutputQuantizingTemplate, | |
| SpanLabelingTemplate, | |
| Template, | |
| TemplatesDict, | |
| TemplatesList, | |
| ) | |