The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
id: string
input: string
hazards: list<item: struct<code_event: struct<id: string, title: string>, code_source: struct<id: string, tit (... 125 chars omitted)
child 0, item: struct<code_event: struct<id: string, title: string>, code_source: struct<id: string, title: string> (... 113 chars omitted)
child 0, code_event: struct<id: string, title: string>
child 0, id: string
child 1, title: string
child 1, code_source: struct<id: string, title: string>
child 0, id: string
child 1, title: string
child 2, code_nature: struct<id: string, title: string>
child 0, id: string
child 1, title: string
child 3, code_body: struct<id: string, title: string>
child 0, id: string
child 1, title: string
child 4, severity: string
citations: list<item: null>
child 0, item: null
naics: string
naics_subsector: string
event_date: timestamp[s]
inspection_nr: string
source: string
split: string
heading: string
text: string
subpart: string
citation: string
to
{'citation': Value('string'), 'heading': Value('string'), 'subpart': Value('string'), 'text': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1816, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
id: string
input: string
hazards: list<item: struct<code_event: struct<id: string, title: string>, code_source: struct<id: string, tit (... 125 chars omitted)
child 0, item: struct<code_event: struct<id: string, title: string>, code_source: struct<id: string, title: string> (... 113 chars omitted)
child 0, code_event: struct<id: string, title: string>
child 0, id: string
child 1, title: string
child 1, code_source: struct<id: string, title: string>
child 0, id: string
child 1, title: string
child 2, code_nature: struct<id: string, title: string>
child 0, id: string
child 1, title: string
child 3, code_body: struct<id: string, title: string>
child 0, id: string
child 1, title: string
child 4, severity: string
citations: list<item: null>
child 0, item: null
naics: string
naics_subsector: string
event_date: timestamp[s]
inspection_nr: string
source: string
split: string
heading: string
text: string
subpart: string
citation: string
to
{'citation': Value('string'), 'heading': Value('string'), 'subpart': Value('string'), 'text': Value('string')}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1869, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
citation string | heading string | subpart string | text string |
|---|---|---|---|
1926.1 | § 1926.1 Purpose and scope. | Subpart A—General | (a) This part sets forth the safety and health standards promulgated by the Secretary of Labor under section 107 of the Contract Work Hours and Safety Standards Act. The standards are published in subpart C of this part and following subparts.
(b) Subpart B of this part contains statements of general policy and interpr... |
1926.2 | § 1926.2 Variances from safety and health standards. | Subpart A—General | (a) Variances from standards which are, or may be, published in this part may be granted under the same circumstances whereunder variances may be granted under section 6(b)(A) or 6(d) of the Williams-Steiger Occupational Safety and Health Act of 1970 (29 U.S.C. 65). The procedures for the granting of variances and for ... |
1926.3 | § 1926.3 Inspections—right of entry. | Subpart A—General | (a) It shall be a condition of each contract which is subject to section 107 of the Contract Work Hours and Safety Standards Act that the Secretary of Labor or any authorized representative shall have a right of entry to any site of contract performance for the following purposes:
(1) To inspect or investigate the matt... |
1926.4 | § 1926.4 Rules of practice for administrative adjudications for enforcement of safety and health standards. | Subpart A—General | (a) The rules of practice for administrative adjudications for the enforcement of the safety and health standards contained in subpart C of this part and the following subparts shall be the same as those published in part 6 of this title with respect to safety and health violations of the Service Contract Act of 1965 (... |
1926.5 | § 1926.5 OMB control numbers under the Paperwork Reduction Act. | Subpart A—General | The following sections or paragraphs each contain a collection of information requirement which has been approved by the Office of Management and Budget under the control number listed.
29 CFR citation OMB control No. 1926.33 1218-0065 1926.50 1218-0093 1926.52 1218-0048 1926.53 1218-0103 1926.59 1218-0072 1926.60 1218... |
1926.6 | § 1926.6 Incorporation by reference. | Subpart A—General | (a) The standards of agencies of the U.S. Government, and organizations which are not agencies of the U.S. Government which are incorporated by reference in this part, have the same force and effect as other standards in this part. Only the mandatory provisions ( i.e., provisions containing the word “shall” or other ma... |
1926.10 | § 1926.10 Scope of subpart. | Subpart B—General Interpretations | (a) This subpart contains the general rules of the Secretary of Labor interpreting and applying the construction safety and health provisions of section 107 of the Contract Work Hours and Safety Standards Act (83 Stat. 96). Section 107 requires as a condition of each contract which is entered into under legislation sub... |
1926.11 | § 1926.11 Coverage under section 103 of the act distinguished. | Subpart B—General Interpretations | (a) Coverage under section 103. It is important to note that the coverage of section 107 differs from that for the overtime requirements of the Contract Work Hours and Safety Standards Act. The application of the overtime requirements is governed by section 103, which subject to specific exemptions, includes: (1) Feder... |
1926.12 | § 1926.12 Reorganization Plan No. 14 of 1950. | Subpart B—General Interpretations | (a) General provisions. Reorganization Plan No. 14 of 1950 relates to the prescribing by the Secretary of Labor of “appropriate standards, regulations, and procedures” with respect to the enforcement of labor standards under Federal and federally assisted contracts which are subject to various statutes subject to the P... |
1926.13 | § 1926.13 Interpretation of statutory terms. | Subpart B—General Interpretations | (a) The terms construction, alteration, and repair used in section 107 of the Act are also used in section 1 of the Davis-Bacon Act (40 U.S.C. 276a), providing minimum wage protection on Federal construction contracts, and section 1 of the Miller Act (40 U.S.C. 270a), providing performance and payment bond protection o... |
1926.14 | § 1926.14 Federal contract for “mixed” types of performance. | Subpart B—General Interpretations | (a) It is the intent of the Congress to provide safety and health protection of Federal, federally financed, or federally assisted construction. See, for example, H. Report No. 91-241, 91st Cong., first session, p. 1 (1969). Thus, it is clear that when a Federal contract calls for mixed types of performance, such as bo... |
1926.15 | § 1926.15 Relationship to the Service Contract Act; Walsh-Healey Public Contracts Act. | Subpart B—General Interpretations | (a) A contract for “construction” is one for nonpersonal service. See, e.g., 41 CFR 1-1.208. Section 2(e) of the Service Contract Act of 1965 requires as a condition of every Federal contract (and bid specification therefor) exceeding $2,500, the “principal purpose” of which is to furnish services to the United States ... |
1926.16 | § 1926.16 Rules of construction. | Subpart B—General Interpretations | (a) The prime contractor and any subcontractors may make their own arrangements with respect to obligations which might be more appropriately treated on a jobsite basis rather than individually. Thus, for example, the prime contractor and his subcontractors may wish to make an express agreement that the prime contracto... |
1926.20 | § 1926.20 General safety and health provisions. | Subpart C—General Safety and Health Provisions | (a) Contractor requirements. (1) Section 107 of the Act requires that it shall be a condition of each contract which is entered into under legislation subject to Reorganization Plan Number 14 of 1950 (64 Stat. 1267), as defined in § 1926.12, and is for construction, alteration, and/or repair, including painting and dec... |
1926.21 | § 1926.21 Safety training and education. | Subpart C—General Safety and Health Provisions | (a) General requirements. The Secretary shall, pursuant to section 107(f) of the Act, establish and supervise programs for the education and training of employers and employees in the recognition, avoidance and prevention of unsafe conditions in employments covered by the act.
(b) Employer responsibility. (1) The emplo... |
1926.22 | § 1926.22 Recording and reporting of injuries. [Reserved] | Subpart C—General Safety and Health Provisions | |
1926.23 | § 1926.23 First aid and medical attention. | Subpart C—General Safety and Health Provisions | First aid services and provisions for medical care shall be made available by the employer for every employee covered by these regulations. Regulations prescribing specific requirements for first aid, medical attention, and emergency facilities are contained in subpart D of this part. |
1926.24 | § 1926.24 Fire protection and prevention. | Subpart C—General Safety and Health Provisions | The employer shall be responsible for the development and maintenance of an effective fire protection and prevention program at the job site throughout all phases of the construction, repair, alteration, or demolition work. The employer shall ensure the availability of the fire protection and suppression equipment requ... |
1926.25 | § 1926.25 Housekeeping. | Subpart C—General Safety and Health Provisions | (a) During the course of construction, alteration, or repairs, form and scrap lumber with protruding nails, and all other debris, shall be kept cleared from work areas, passageways, and stairs, in and around buildings or other structures.
(b) Combustible scrap and debris shall be removed at regular intervals during the... |
1926.26 | § 1926.26 Illumination. | Subpart C—General Safety and Health Provisions | Construction areas, aisles, stairs, ramps, runways, corridors, offices, shops, and storage areas where work is in progress shall be lighted with either natural or artificial illumination. The minimum illumination requirements for work areas are contained in subpart D of this part. |
1926.27 | § 1926.27 Sanitation. | Subpart C—General Safety and Health Provisions | Health and sanitation requirements for drinking water are contained in subpart D of this part. |
1926.28 | § 1926.28 Personal protective equipment. | Subpart C—General Safety and Health Provisions | (a) The employer is responsible for requiring the wearing of appropriate personal protective equipment in all operations where there is an exposure to hazardous conditions or where this part indicates the need for using such equipment to reduce the hazards to the employees.
(b) Regulations governing the use, selection,... |
1926.29 | § 1926.29 Acceptable certifications. | Subpart C—General Safety and Health Provisions | (a) Pressure vessels. Current and valid certification by an insurance company or regulatory authority shall be deemed as acceptable evidence of safe installation, inspection, and testing of pressure vessels provided by the employer.
(b) Boilers. Boilers provided by the employer shall be deemed to be in compliance with ... |
1926.30 | § 1926.30 Shipbuilding and ship repairing. | Subpart C—General Safety and Health Provisions | (a) General. Shipbuilding, ship repairing, alterations, and maintenance performed on ships under Government contract, except naval ship construction, is work subject to the Act.
(b) Applicable safety and health standards. For the purpose of work carried out under this section, the safety and health regulations in part ... |
1926.32 | § 1926.32 Definitions. | Subpart C—General Safety and Health Provisions | The following definitions shall apply in the application of the regulations in this part:
(a) Act means section 107 of the Contract Work Hours and Safety Standards Act, commonly known as the Construction Safety Act (86 Stat. 96; 40 U.S.C. 333).
(b) ANSI means American National Standards Institute.
(c) Approved means sa... |
1926.33 | § 1926.33 Access to employee exposure and medical records. | Subpart C—General Safety and Health Provisions | Note: The requirements applicable to construction work under this section are identical to those set forth at § 1910.1020 of this chapter.
[61 FR 31431, June 20, 1996] |
1926.34 | § 1926.34 Means of egress. | Subpart C—General Safety and Health Provisions | (a) General. In every building or structure exits shall be so arranged and maintained as to provide free and unobstructed egress from all parts of the building or structure at all times when it is occupied. No lock or fastening to prevent free escape from the inside of any building shall be installed except in mental, ... |
1926.35 | § 1926.35 Employee emergency action plans. | Subpart C—General Safety and Health Provisions | (a) Scope and application. This section applies to all emergency action plans required by a particular OSHA standard. The emergency action plan shall be in writing (except as provided in the last sentence of paragraph (e)(3) of this section) and shall cover those designated actions employers and employees must take to ... |
1926.50 | § 1926.50 Medical services and first aid. | Subpart D—Occupational Health and Environmental Controls | (a) The employer shall insure the availability of medical personnel for advice and consultation on matters of occupational health.
(b) Provisions shall be made prior to commencement of the project for prompt medical attention in case of serious injury.
(c) In the absence of an infirmary, clinic, hospital, or physician,... |
1926.51 | § 1926.51 Sanitation. | Subpart D—Occupational Health and Environmental Controls | (a) Potable water. (1) An adequate supply of potable water shall be provided in all places of employment.
(2) Portable containers used to dispense drinking water shall be capable of being tightly closed, and equipped with a tap. Water shall not be dipped from containers.
(3) Any container used to distribute drinking wa... |
1926.52 | § 1926.52 Occupational noise exposure. | Subpart D—Occupational Health and Environmental Controls | (a) Protection against the effects of noise exposure shall be provided when the sound levels exceed those shown in Table D-2 of this section when measured on the A-scale of a standard sound level meter at slow response.
(b) When employees are subjected to sound levels exceeding those listed in Table D-2 of this section... |
1926.53 | § 1926.53 Ionizing radiation. | Subpart D—Occupational Health and Environmental Controls | (a) In construction and related activities involving the use of sources of ionizing radiation, the pertinent provisions of the Nuclear Regulatory Commission's Standards for Protection Against Radiation (10 CFR part 20), relating to protection against occupational radiation exposure, shall apply.
(b) Any activity which ... |
1926.54 | § 1926.54 Nonionizing radiation. | Subpart D—Occupational Health and Environmental Controls | (a) Only qualified and trained employees shall be assigned to install, adjust, and operate laser equipment.
(b) Proof of qualification of the laser equipment operator shall be available and in possession of the operator at all times.
(c) Employees, when working in areas in which a potential exposure to direct or reflec... |
1926.55 | § 1926.55 Gases, vapors, fumes, dusts, and mists. | Subpart D—Occupational Health and Environmental Controls | (a) Employers must limit an employee's exposure to any substance listed in Table 1 or 2 of this section in accordance with the following:
(1) Substances with limits preceded by (C)—Ceiling Values. An employee's exposure, as determined from breathing-zone air samples, to any substance in Table 1 of this section with a p... |
1926.56 | § 1926.56 Illumination. | Subpart D—Occupational Health and Environmental Controls | (a) General. Construction areas, ramps, runways, corridors, offices, shops, and storage areas shall be lighted to not less than the minimum illumination intensities listed in Table D-3 while any work is in progress:
Table D-3—Minimum Illumination Intensities in Foot-Candles Foot-candles Area or operation 5 General cons... |
Construction Code-Citation Corpus v1
Open dataset of construction-site incident narratives paired with OIICS hazard codes (event, source, nature, body) and OSHA 29 CFR 1926 citation candidates. Built for the Adaption Labs AutoScientist Challenge ("All Other Domains" category).
Sources
- OSHA Severe Injury Reports (DOL, public domain): 2015-01 → 2025-08,
103,750 records. Each row has
Final Narrative(incident text) plus OIICS classification codes for the event, source, nature, and body part. - OSHA 29 CFR 1926 (eCFR snapshot 2025-09-16, public domain): 304 sections with explicit citations and full regulatory text.
Schema
Each row in the canonical jsonl:
{
"id": "<SIR ID>",
"input": "<Final Narrative>",
"hazards": [{
"code_event": {"id": "<OIICS event>", "title": "..."},
"code_source": {"id": "<OIICS source>", "title": "..."},
"code_nature": {"id": "<OIICS nature>", "title": "..."},
"code_body": {"id": "<OIICS body>", "title": "..."},
"severity": "low|moderate|high"
}],
"citations": [],
"naics": "<6-digit NAICS>",
"naics_subsector": "<4-digit>",
"event_date": "YYYY-MM-DD",
"inspection_nr": "<int or null>",
"source": "sir",
"split": "train|dev|test"
}
The citations field is empty in v1 (SIR does not carry OSHA standard
citations directly). Citation supervision comes from a separate join on
inspection_nr to the DOL OSHA enforcement violations corpus, planned for v2.
Splits
Stratified by NAICS subsector (first 4 digits), 70/15/15.
- train: 72,467
- dev: 15,410
- test: 15,873 (SHA-256
c9490ed3..., hash-pinned, never re-shuffled)
Known biases
- SIR over-represents severe injuries (hospitalization, amputation, loss of eye) — the corpus is by definition skewed toward high-severity events.
- Source-code distribution has a heavy long tail: 1,478 unique codes, top-75 cover only 57% of records. Models will need either a code-collapse strategy or hierarchical (division-level) prediction.
License
MIT (this dataset). OSHA SIR is public domain. OSHA 29 CFR 1926 text is public domain.
Citation
If you use this dataset, please cite:
@misc{construction-code-corpus-2026,
title = {Construction Code-Citation Corpus v1},
author = {Oversite Innovations},
year = {2026},
note = {Built for the Adaption Labs AutoScientist Challenge}
}
- Downloads last month
- 7