Kanishka Misra commited on
Commit ·
33bc2f5
1
Parent(s): be43cd2
id format
Browse files
comps.py
CHANGED
|
@@ -105,12 +105,12 @@ class Comps(datasets.GeneratorBasedBuilder):
|
|
| 105 |
for line in f:
|
| 106 |
line_dict = json.loads(line)
|
| 107 |
if "wugs" in self.config.name:
|
| 108 |
-
id_ = line_dict["base_id"] + "_" + line_dict["distraction_type"]
|
| 109 |
feats = {
|
| 110 |
**line_dict
|
| 111 |
}
|
| 112 |
else:
|
| 113 |
-
id_ = line_dict['id']
|
| 114 |
feats = {
|
| 115 |
**line_dict,
|
| 116 |
"distraction_type": "none"
|
|
|
|
| 105 |
for line in f:
|
| 106 |
line_dict = json.loads(line)
|
| 107 |
if "wugs" in self.config.name:
|
| 108 |
+
id_ = str(line_dict["base_id"]) + "_" + line_dict["distraction_type"]
|
| 109 |
feats = {
|
| 110 |
**line_dict
|
| 111 |
}
|
| 112 |
else:
|
| 113 |
+
id_ = str(line_dict['id'])
|
| 114 |
feats = {
|
| 115 |
**line_dict,
|
| 116 |
"distraction_type": "none"
|