arxiv-classifier / README.md
ag2435's picture
removed restriction on paper versions for major, minor, all2023
f7685b7
|
raw
history blame
2.18 kB
metadata
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

Set up dependencies

Get subfields to ignore and subfield aliases:

# in your conda env
git clone https://github.com/ag2435/arxiv-classifier-next
cd arxiv-classifier-next
conda develop .

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

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).