Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
Tags:
long context
File size: 3,298 Bytes
3d71fdf f9bd921 d4bf86d f9bd921 3d71fdf d4bf86d 3d71fdf 6d2e2a2 3d71fdf ba43144 3d71fdf ba43144 3d71fdf 31eaed9 3d71fdf |
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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
---
language: en
size_categories: 10K<n<100K
task_categories:
- text-classification
task_ids:
- multi-class-classification
- topic-classification
tags:
- long context
dataset_info:
- config_name: default
features:
- name: text
dtype: string
- name: label
dtype:
class_label:
names:
'0': math.AC
'1': cs.CV
'2': cs.AI
'3': cs.SY
'4': math.GR
'5': cs.CE
'6': cs.PL
'7': cs.IT
'8': cs.DS
'9': cs.NE
'10': math.ST
splits:
- name: train
num_bytes: 1650691690
num_examples: 28388
- name: validation
num_bytes: 144469423
num_examples: 2500
- name: test
num_bytes: 141183324
num_examples: 2500
download_size: 1011043995
dataset_size: 1936344437
- config_name: no_ref
features:
- name: text
dtype: string
- name: label
dtype:
class_label:
names:
'0': math.AC
'1': cs.CV
'2': cs.AI
'3': cs.SY
'4': math.GR
'5': cs.CE
'6': cs.PL
'7': cs.IT
'8': cs.DS
'9': cs.NE
'10': math.ST
splits:
- name: train
num_bytes: 1650587077
num_examples: 28388
- name: validation
num_bytes: 144460101
num_examples: 2500
- name: test
num_bytes: 141174323
num_examples: 2500
download_size: 1010911333
dataset_size: 1936221501
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
- split: test
path: data/test-*
- config_name: no_ref
data_files:
- split: train
path: no_ref/train-*
- split: validation
path: no_ref/validation-*
- split: test
path: no_ref/test-*
---
**Arxiv Classification: a classification of Arxiv Papers (11 classes).**
This dataset is intended for long context classification (documents have all > 4k tokens). \
Copied from "Long Document Classification From Local Word Glimpses via Recurrent Attention Learning"
```
@ARTICLE{8675939,
author={He, Jun and Wang, Liqun and Liu, Liu and Feng, Jiao and Wu, Hao},
journal={IEEE Access},
title={Long Document Classification From Local Word Glimpses via Recurrent Attention Learning},
year={2019},
volume={7},
number={},
pages={40707-40718},
doi={10.1109/ACCESS.2019.2907992}
}
```
* See: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8675939
* See: https://github.com/LiqunW/Long-document-dataset
It contains 11 slightly unbalanced classes, 33k Arxiv Papers divided into 3 splits: train (28k), val (2.5k) and test (2.5k).
2 configs:
* default
* no_ref, removes references to the class inside the document (eg: [cs.LG] -> [])
Compatible with [run_glue.py](https://github.com/huggingface/transformers/tree/master/examples/pytorch/text-classification) script:
```
export MODEL_NAME=roberta-base
export MAX_SEQ_LENGTH=512
python run_glue.py \
--model_name_or_path $MODEL_NAME \
--dataset_name ccdv/arxiv-classification \
--do_train \
--do_eval \
--max_seq_length $MAX_SEQ_LENGTH \
--per_device_train_batch_size 8 \
--gradient_accumulation_steps 4 \
--learning_rate 2e-5 \
--num_train_epochs 1 \
--max_eval_samples 500 \
--output_dir tmp/arxiv
``` |