D4 records: train 78,686 / dev 2,468 / holdout 2,462
Browse files- code/render_d4.py +3 -1
- data/dev.jsonl +2 -2
- data/holdout.jsonl +2 -2
- data/train.jsonl +2 -2
- stats.json +6 -6
code/render_d4.py
CHANGED
|
@@ -304,7 +304,9 @@ def render_tenk(rng, f, name, cookbook_groups, industry_groups):
|
|
| 304 |
if len(siblings) >= 2 and group in siblings and not sic.endswith("00") and rng.random() < 0.6:
|
| 305 |
text, key = pick(rng, TENK, "industry", held)
|
| 306 |
text = text.format(major=MAJOR_NAMES[major])
|
| 307 |
-
|
|
|
|
|
|
|
| 308 |
crit, label, style = {g: industry_groups[g] for g in siblings}, group, "codes"
|
| 309 |
else:
|
| 310 |
names = {g: slug(industry_groups[g].split(";")[0]) for g in siblings}
|
|
|
|
| 304 |
if len(siblings) >= 2 and group in siblings and not sic.endswith("00") and rng.random() < 0.6:
|
| 305 |
text, key = pick(rng, TENK, "industry", held)
|
| 306 |
text = text.format(major=MAJOR_NAMES[major])
|
| 307 |
+
# A slug is named after the group's first SEC title, which misnames a group with several
|
| 308 |
+
# (679's first is "oil royalty traders", its REITs included), so those sets use codes.
|
| 309 |
+
if rng.random() < 0.5 or any(";" in industry_groups[g] for g in siblings):
|
| 310 |
crit, label, style = {g: industry_groups[g] for g in siblings}, group, "codes"
|
| 311 |
else:
|
| 312 |
names = {g: slug(industry_groups[g].split(";")[0]) for g in siblings}
|
data/dev.jsonl
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:8fe3c64ad17311d6af7589f2a0bad17860e370dfe91c50606022a391bf22a4d7
|
| 3 |
+
size 54601344
|
data/holdout.jsonl
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:7232a1e0f2d47f25bbb38610a595b53e703b622c65e74c60e259d88d783ccf51
|
| 3 |
+
size 53303080
|
data/train.jsonl
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:8d7a90b8dddf79a0d3b7cf365c999105fd0fdb561ff36d31fa958ecec3667f4e
|
| 3 |
+
size 1752092954
|
stats.json
CHANGED
|
@@ -29,8 +29,8 @@
|
|
| 29 |
"division:slugs_bare": 3448,
|
| 30 |
"division:slugs_titled": 3379,
|
| 31 |
"division:slugs_with_groups": 3340,
|
| 32 |
-
"industry:codes":
|
| 33 |
-
"industry:slugs":
|
| 34 |
"major:cookbook75": 9659,
|
| 35 |
"major:official_codes": 4071,
|
| 36 |
"major:official_slugs_bare": 2670,
|
|
@@ -178,8 +178,8 @@
|
|
| 178 |
"division:slugs_bare": 91,
|
| 179 |
"division:slugs_titled": 118,
|
| 180 |
"division:slugs_with_groups": 110,
|
| 181 |
-
"industry:codes":
|
| 182 |
-
"industry:slugs":
|
| 183 |
"major:cookbook75": 318,
|
| 184 |
"major:official_codes": 129,
|
| 185 |
"major:official_slugs_bare": 83,
|
|
@@ -327,8 +327,8 @@
|
|
| 327 |
"division:slugs_bare": 96,
|
| 328 |
"division:slugs_titled": 103,
|
| 329 |
"division:slugs_with_groups": 105,
|
| 330 |
-
"industry:codes":
|
| 331 |
-
"industry:slugs":
|
| 332 |
"major:cookbook75": 294,
|
| 333 |
"major:official_codes": 102,
|
| 334 |
"major:official_slugs_bare": 89,
|
|
|
|
| 29 |
"division:slugs_bare": 3448,
|
| 30 |
"division:slugs_titled": 3379,
|
| 31 |
"division:slugs_with_groups": 3340,
|
| 32 |
+
"industry:codes": 14084,
|
| 33 |
+
"industry:slugs": 299,
|
| 34 |
"major:cookbook75": 9659,
|
| 35 |
"major:official_codes": 4071,
|
| 36 |
"major:official_slugs_bare": 2670,
|
|
|
|
| 178 |
"division:slugs_bare": 91,
|
| 179 |
"division:slugs_titled": 118,
|
| 180 |
"division:slugs_with_groups": 110,
|
| 181 |
+
"industry:codes": 424,
|
| 182 |
+
"industry:slugs": 6,
|
| 183 |
"major:cookbook75": 318,
|
| 184 |
"major:official_codes": 129,
|
| 185 |
"major:official_slugs_bare": 83,
|
|
|
|
| 327 |
"division:slugs_bare": 96,
|
| 328 |
"division:slugs_titled": 103,
|
| 329 |
"division:slugs_with_groups": 105,
|
| 330 |
+
"industry:codes": 409,
|
| 331 |
+
"industry:slugs": 9,
|
| 332 |
"major:cookbook75": 294,
|
| 333 |
"major:official_codes": 102,
|
| 334 |
"major:official_slugs_bare": 89,
|