Upload schema.py with huggingface_hub
Browse files
schema.py
CHANGED
@@ -29,7 +29,7 @@ UNITXT_DATASET_SCHEMA = Features(
|
|
29 |
class ToUnitxtGroup(StreamInstanceOperatorValidator):
|
30 |
group: str
|
31 |
metrics: List[str] = None
|
32 |
-
postprocessors: List[str] = field(default_factory=lambda: ["
|
33 |
remove_unnecessary_fields: bool = True
|
34 |
|
35 |
def process(self, instance: Dict[str, Any], stream_name: str = None) -> Dict[str, Any]:
|
|
|
29 |
class ToUnitxtGroup(StreamInstanceOperatorValidator):
|
30 |
group: str
|
31 |
metrics: List[str] = None
|
32 |
+
postprocessors: List[str] = field(default_factory=lambda: ["to_string_stripped"])
|
33 |
remove_unnecessary_fields: bool = True
|
34 |
|
35 |
def process(self, instance: Dict[str, Any], stream_name: str = None) -> Dict[str, Any]:
|