Upload schema.py with huggingface_hub
Browse files28 unmodified lines293031323233343528 unmodified linesclass ToUnitxtGroup(StreamInstanceOperatorValidator): group: str metrics: List[str] = None postprocessors: List[str] = field(default_factory=lambda: ["to_string"]) postprocessors: List[str] = field(default_factory=lambda: ["to_string_stripped"]) remove_unnecessary_fields: bool = True
def process(self, instance: Dict[str, Any], stream_name: str = None) -> Dict[str, Any]:schema.py+1-1