Download processors.py from unitxt/data: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/datasets/unitxt/data/resolve/175f6e2aa0fa60b211efee6eec0f334080d771ae/processors.py
- Command line
-
hf download hf://datasets/unitxt/data@175f6e2aa0fa60b211efee6eec0f334080d771ae/processors.py
-
curl -L -o processors.py https://huggingface.co/datasets/unitxt/data/resolve/175f6e2aa0fa60b211efee6eec0f334080d771ae/processors.py
209 Bytes
| from .operator import BaseFieldOperator | |
| class ToString(BaseFieldOperator): | |
| def process(self, instance): | |
| return str(instance) | |
| # add_to_catalog(ToString('prediction'), 'processors', 'to_string') | |