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