metric / processors.py
Elron's picture
Upload processors.py with huggingface_hub
f2336e3
raw
history blame
209 Bytes
from .operator import BaseFieldOperator
class ToString(BaseFieldOperator):
def process(self, instance):
return str(instance)
# add_to_catalog(ToString('prediction'), 'processors', 'to_string')