File size: 3,274 Bytes
c16a03c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
language:
- en
license: cc-by-4.0
task_categories:
- text-generation
- text-retrieval
tags:
- physics
- arxiv
- scientific-text
- ontology
- sections
configs:
- config_name: quantum-physics
  data_files:
  - split: train
    path: "quantum-physics/train-*.parquet"
---

# Physics Corpus — `konsman/physics-corpus`

arXiv physics papers exported from a PostgreSQL mirror of the Kaggle arXiv dataset,
structured for ontology extraction and downstream NLP pipelines.

## Configuration: `quantum-physics`

arXiv categories included: `quant-ph`, `hep-th`, `gr-qc`

## Schema

| Field | Type | Description |
|-------|------|-------------|
| `paper_id` | string | `arxiv:<id>v<n>` — stable across pipeline runs |
| `arxiv_id` | string | Base arXiv ID without version suffix |
| `arxiv_version` | int32 | Version number (for deduplication) |
| `doi` | string | DOI or empty string |
| `content_hash` | string | SHA-256 of `full_text` — for delta detection |
| `title` | string | Paper title |
| `abstract` | string | Paper abstract |
| `authors` | list[string] | Author names |
| `arxiv_categories` | list[string] | e.g. `["hep-th", "gr-qc"]` |
| `primary_category` | string | First listed category |
| `journal` | string | Journal reference or empty string |
| `keywords` | list[string] | Keywords (empty if unavailable) |
| `submission_date` | string | ISO date of first submission |
| `processed_date` | string | ISO date this record was exported |
| `full_text` | string | All section texts joined by `\n\n` |
| `sections` | list | Structured sections (see below) |

### Section fields

| Field | Type | Description |
|-------|------|-------------|
| `section_type` | string | `TITLE` / `ABSTRACT` / `BACKGROUND` / `METHOD` / `RESULTS` / `DISCUSSION` / `CONCLUSION` / `OTHER` |
| `section_title` | string | Raw heading text, e.g. `3. Experimental Setup` |
| `text` | string | Section body text |

## Record structure

Each row is one paper. `sections` is a list of objects — one per section:

```json
{
  "paper_id": "arxiv:2401.00123v2",
  "arxiv_id": "2401.00123",
  "arxiv_version": 2,
  "title": "...",
  "abstract": "...",
  "authors": ["Author A", "Author B"],
  "arxiv_categories": ["quant-ph"],
  "primary_category": "quant-ph",
  "full_text": "Introduction text\n\nMethod text\n\n...",
  "sections": [
    {"section_type": "BACKGROUND", "section_title": "1. Introduction", "text": "..."},
    {"section_type": "METHOD",     "section_title": "2. Methods",      "text": "..."},
    {"section_type": "RESULTS",    "section_title": "3. Results",      "text": "..."}
  ]
}
```

## Usage

```python
from datasets import load_dataset

ds = load_dataset("konsman/physics-corpus", "quantum-physics", split="train")

for paper in ds:
    print(paper["paper_id"], paper["primary_category"])
    for sec in paper["sections"]:
        print(sec["section_type"], sec["section_title"], sec["text"][:80])
```

## Source

Papers are sourced from the
[Kaggle arXiv dataset](https://www.kaggle.com/datasets/Cornell-University/arxiv)
via a PostgreSQL mirror.  Only papers with a JOIN match in the metadata table are
included (≥ 96% of sections have a match).

## License

Dataset card and structure: CC-BY-4.0.
Paper texts are subject to the individual arXiv paper licenses.