Download instructions.py from unitxt/data: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/datasets/unitxt/data/resolve/2aa918a61ba35a1eb6644cfa3b68f0763548af48/instructions.py
- Command line
-
hf download hf://datasets/unitxt/data@2aa918a61ba35a1eb6644cfa3b68f0763548af48/instructions.py
-
curl -L -o instructions.py https://huggingface.co/datasets/unitxt/data/resolve/2aa918a61ba35a1eb6644cfa3b68f0763548af48/instructions.py
399 Bytes
| from .artifact import Artifact | |
| class TextualInstruction(Artifact): | |
| """The role of TextualInstruction is to arrange potential instructions in the catalog, expressed as formatting strings. | |
| The (formatted) instructions are added to the instances, in field named "instruction" via the Template Operator. | |
| """ | |
| text: str | |
| def get_instruction(self) -> str: | |
| return self.text | |