Renamed source and destination to parent and child, respectively. Added support for the negative_child column.
Browse files- odinsynth_dataset.py +8 -7
- test.tar.bz2 +2 -2
- train.tar.bz2 +2 -2
- 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 |
-
"
|
46 |
-
"
|
|
|
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 |
-
"
|
144 |
-
"
|
|
|
145 |
"spec": specs[rule_id],
|
146 |
-
"step": int(row[
|
147 |
-
"length": int(row[
|
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:
|
3 |
-
size
|
|
|
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:
|
3 |
-
size
|
|
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f519bed0bb65d133b47ac183e3656a2b2dcd7280b1a0e45bba59a9919511e0c
|
3 |
+
size 1310782
|