Upload processors.py with huggingface_hub
Browse files- processors.py +2 -2
processors.py
CHANGED
@@ -16,7 +16,7 @@ class ToStringStripped(FieldOperator):
|
|
16 |
return str(text).strip()
|
17 |
|
18 |
|
19 |
-
class
|
20 |
delimiter: str = " "
|
21 |
strip_every_element: bool = False
|
22 |
|
@@ -27,7 +27,7 @@ class Split(FieldOperator):
|
|
27 |
]
|
28 |
|
29 |
|
30 |
-
class ToListByComma(
|
31 |
delimiter = ","
|
32 |
strip_every_element = True
|
33 |
|
|
|
16 |
return str(text).strip()
|
17 |
|
18 |
|
19 |
+
class SplitStrip(FieldOperator):
|
20 |
delimiter: str = " "
|
21 |
strip_every_element: bool = False
|
22 |
|
|
|
27 |
]
|
28 |
|
29 |
|
30 |
+
class ToListByComma(SplitStrip):
|
31 |
delimiter = ","
|
32 |
strip_every_element = True
|
33 |
|