Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
unitxt
/
metric
like
0
Running
App
Files
Files
Community
f414f88
metric
/
processors.py
Elron
Upload processors.py with huggingface_hub
2636a15
over 1 year ago
raw
Copy download link
history
blame
Safe
201 Bytes
from
.operator
import
FieldOperator
class
ToString
(
FieldOperator
):
def
process
(
self, instance
):
return
str
(instance)
# add_to_catalog(ToString('prediction'), 'processors', 'to_string')