Datasets:

Modalities:
Tabular
Text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
Kanishka Misra commited on
Commit
33bc2f5
·
1 Parent(s): be43cd2

id format

Browse files
Files changed (1) hide show
  1. comps.py +2 -2
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"