enoriega commited on
Commit
71fcf55
1 Parent(s): 5a1e932

Renamed source and destination to parent and child, respectively. Added support for the negative_child column.

Browse files
Files changed (4) hide show
  1. odinsynth_dataset.py +8 -7
  2. test.tar.bz2 +2 -2
  3. train.tar.bz2 +2 -2
  4. val.tar.bz2 +2 -2
odinsynth_dataset.py CHANGED
@@ -42,12 +42,12 @@ class OdinsynthDatasetBuilder(datasets.GeneratorBasedBuilder):
42
  features = datasets.Features(
43
  {
44
  "rule_id": datasets.Value("int32"),
45
- "source": datasets.Value("string"),
46
- "destination": datasets.Value("string"),
 
47
  "spec": datasets.Sequence(datasets.Value("string")),
48
  "step": datasets.Value("int8"),
49
  "length": datasets.Value("int8")
50
- # These are the features of your dataset like images, labels ...
51
  }
52
  )
53
 
@@ -140,11 +140,12 @@ class OdinsynthDatasetBuilder(datasets.GeneratorBasedBuilder):
140
  if rule_id in specs:
141
  yield key, {
142
  "rule_id": rule_id,
143
- "source": row[1],
144
- "destination": row[2],
 
145
  "spec": specs[rule_id],
146
- "step": int(row[3]),
147
- "length": int(row[4]),
148
  }
149
  # Increase the key after yielding the instacne
150
  key += 1
 
42
  features = datasets.Features(
43
  {
44
  "rule_id": datasets.Value("int32"),
45
+ "parent": datasets.Value("string"),
46
+ "child": datasets.Value("string"),
47
+ "negative_child": datasets.Value("string"),
48
  "spec": datasets.Sequence(datasets.Value("string")),
49
  "step": datasets.Value("int8"),
50
  "length": datasets.Value("int8")
 
51
  }
52
  )
53
 
 
140
  if rule_id in specs:
141
  yield key, {
142
  "rule_id": rule_id,
143
+ "parent": row[1],
144
+ "child": row[2],
145
+ "negative_child": row[3],
146
  "spec": specs[rule_id],
147
+ "step": int(row[4]),
148
+ "length": int(row[5]),
149
  }
150
  # Increase the key after yielding the instacne
151
  key += 1
test.tar.bz2 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:be06c6e232ab09ff2fe448a95c5bf290213b8adf02ca7ba2fb4ed329825e46c2
3
- size 5094805
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6e7671d3c4c3844b5063b162c33bf0c1b97e84762474cd123fa93052f0c16a0
3
+ size 8405977
train.tar.bz2 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c05f65b37ba109e4e4d6f8e2c3bf563e86929a57e9b9cd194182fa5ebb8d6f17
3
- size 281312537
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8001213f8a122422d33343ae1e1317efa42318f911aeab14017f63ce0865af6
3
+ size 75909203
val.tar.bz2 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ed0a8d24ce406a861f552dc51ebfc4f368e875a4a059d90e4250b2c8d279cb67
3
- size 1255001
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f519bed0bb65d133b47ac183e3656a2b2dcd7280b1a0e45bba59a9919511e0c
3
+ size 1310782