ChrisMcCormick commited on
Commit
07bfc0b
·
verified ·
1 Parent(s): 8a6b321

D4 records: train 78,686 / dev 2,468 / holdout 2,462

Browse files
Files changed (5) hide show
  1. code/render_d4.py +3 -1
  2. data/dev.jsonl +2 -2
  3. data/holdout.jsonl +2 -2
  4. data/train.jsonl +2 -2
  5. 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
- if rng.random() < 0.5:
 
 
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:03bd672106e7abe9bdfec4e46a0140d01e85a8c9091d2cc1c063a17c94d3096d
3
- size 54644621
 
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:eff9912e43b0a26bbb5b1b3d1a1c567bd9b73897ea8fc40b24b2ca5f643ca925
3
- size 53346532
 
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:308d5bc792cd2aaacde2cc786bd1cd29ab86677d624609dcc1e9c1be90d4a0ca
3
- size 1753491837
 
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": 7180,
33
- "industry:slugs": 7203,
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": 214,
182
- "industry:slugs": 216,
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": 201,
331
- "industry:slugs": 217,
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,