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