Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
unitxt
/
metric
Like
0
Running
App
Files
Files
Community
59ca01e
metric
/
processors.py
Elron
Upload processors.py with huggingface_hub
2636a15
about 3 years ago
Raw
Download with hf CLI
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')