Update car.py
Browse files
car.py
CHANGED
|
@@ -156,6 +156,8 @@ class Car(datasets.GeneratorBasedBuilder):
|
|
| 156 |
|
| 157 |
if config == "car_binary":
|
| 158 |
data["acceptability_level"] = data["acceptability_level"].apply(lambda x: 0 if x == 0 else 1)
|
|
|
|
|
|
|
| 159 |
|
| 160 |
|
| 161 |
return data
|
|
|
|
| 156 |
|
| 157 |
if config == "car_binary":
|
| 158 |
data["acceptability_level"] = data["acceptability_level"].apply(lambda x: 0 if x == 0 else 1)
|
| 159 |
+
print("data.acceptability_level.unique()")
|
| 160 |
+
print(data.acceptability_level.unique())
|
| 161 |
|
| 162 |
|
| 163 |
return data
|