File size: 1,977 Bytes
64a6ac3
 
0337404
64a6ac3
 
0337404
64a6ac3
0337404
 
d063f3e
 
0337404
d063f3e
0337404
 
 
 
 
64a6ac3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b1e8bb0
64a6ac3
 
 
b1e8bb0
 
 
 
 
 
 
 
d063f3e
b1e8bb0
d063f3e
 
 
b1e8bb0
64a6ac3
d063f3e
b1e8bb0
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
---
configs:
- config_name: default
  data_files:
  - split: train
    path: "minor/train.json"
  - split: test
    path: "minor/test.json"
- config_name: major
  data_files:
  - split: train
    path: "major/train.json"
  - split: test
    path: "major/test.json"
- config_name: all2023
  data_files:
  - split: val
    path: "all2023/val.json"
---

# arXiv Classifier Data

Standardized terminology:
- Field: Bio/cs/physics
- Subfield: Subcategories within each
    - Primary subfield (bio., cs.LG): Given primary subfield, you can infer the field
    - Secondary subfields: Includes primary subfield, but also includes any subfields that were tagged in the paper (1-5)

Old terminology to standardized terminology translation:
- Prime category = Primary subfield
- Abstract category = secondary subfield
- Major category = field

Original data: https://www.dropbox.com/scl/fo/wwu0ifghw4sco09g67frb/h?rlkey=6ddg3yab9la3zeddvmnsfktxq&e=1&dl=0

<!-- Working doc: https://docs.google.com/document/d/1ZTiR5M7NBpsfYbJdlP6qcIldBJVzJI1Hm8srgI8hfnI/edit?usp=sharing -->

## Preprocessing

Transform raw data into JSON format:
```
# major/minor cats data
python preprocess_major_minor.py -d <DATASET NAME> -s <SPLIT> -op <PATH TO SAVE PREPROCESSED DATA>
# all 2023 corpus (abstract only)
python preprocess_all2023.py
```
<!-- [4782 Kaggle](https://www.kaggle.com/competitions/cs-4782-2024/overview) code: [4782_preprocess_data.ipynb](4782_preprocess_data.ipynb)

[Internal Kaggle](https://www.kaggle.com/competitions/ar-xive-project-baselines/overview) code: [clean_data_for_hugging_face.ipynb](https://huggingface.co/datasets/mlcore/arxiv-classifier/blob/main/clean_data_for_hugging_face.ipynb) -->

NOTE: We only include v1 of papers (to avoid any data leakage between train and test splits). There might be a better way of deduplicating (TODO).

<!-- ## Todo

- Can we get the full text for the 2023 corpus/all papers?
- Can we incorporate additional metadata (e.g., authors)? -->