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