FilomKhash commited on
Commit
7791de1
·
verified ·
1 Parent(s): 62c8b23

README finalized (v1).

Browse files
Files changed (1) hide show
  1. README.md +34 -13
README.md CHANGED
@@ -12,29 +12,50 @@ configs:
12
  - config_name: default
13
  data_files:
14
  - split: train
15
- path: "train.zip"
16
  - split: validation
17
- path: "val.zip"
18
  - split: test
19
- path: "test.zip"
 
20
  ---
21
  ## Dataset Description
22
- The text data (title and abstract) of 164230 arXiv preprints which are associated with at least one [MSC (mathematical subject classification)](https://en.wikipedia.org/wiki/Mathematics_Subject_Classification) code. Predicting 3-character MSC codes based on the cleaned text (processed title+abstarct) amounts to a multi-label classification task.
23
 
24
  ## Dataset Structure
25
  - The column `cleaned_text` should be used as the input of the text classification task. This is obtained from processing the text data (titles and abstracts) of math-related preprints.
26
- - The last 531 columns are one-hot encoded MSC classes, and should be used as target variables of the multi-lable classification task.
27
- - Other columns are auxiliary and contain URLs, the original titles and abstracts, and the primary arXiv category.
 
 
 
 
 
28
 
29
 
30
  ## Data Splits
31
  Stratified sampling was used for splitting the data so that the proportions of a target variable among the splits are not very different.
32
 
33
- |Dataset |Description |Number of instances |
34
- |---------|------------------|---------------------|
35
- |main.zip |the whole data |164230 |
36
- |train.zip|the training set |104675 |
37
- |val.zip |the validation set|18540 |
38
- |test.zip |the test set |41015 |
39
 
40
- ## Data Collection
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  - config_name: default
13
  data_files:
14
  - split: train
15
+ path: train.zip
16
  - split: validation
17
+ path: val.zip
18
  - split: test
19
+ path: test.zip
20
+ pretty_name: MSC
21
  ---
22
  ## Dataset Description
23
+ The text data (title and abstract) of 164,230 arXiv preprints which are associated with at least one [MSC (mathematical subject classification)](https://en.wikipedia.org/wiki/Mathematics_Subject_Classification) code. Predicting 3-character MSC codes based on the cleaned text (processed title+abstarct) amounts to a multi-label classification task.
24
 
25
  ## Dataset Structure
26
  - The column `cleaned_text` should be used as the input of the text classification task. This is obtained from processing the text data (titles and abstracts) of math-related preprints.
27
+ - The last 531 columns are one-hot encoded MSC classes, and should be used as target variables of the multi-label classification task.
28
+ - Other columns are auxiliary:
29
+ - `url`) the URL of the preprint (the latest version as of December 2023),
30
+ - `title`) the original title,
31
+ - `abstract`) the original abstract,
32
+ - `primary_category`) the primary [arXiv category](https://arxiv.org/category_taxonomy) (for this data, almost always a category of the math archive, or the mathematical physics archive).
33
+ - **Subtask**) Predicting `primary_category` based on `cleaned_text`, a multi-class text classification task with ~30 distinct labels.
34
 
35
 
36
  ## Data Splits
37
  Stratified sampling was used for splitting the data so that the proportions of a target variable among the splits are not very different.
38
 
39
+ |Dataset |Description |Number of instances |
40
+ |---------|------------------|----------------------|
41
+ |main.zip |the whole data |164,230 |
42
+ |train.zip|the training set |104,675 |
43
+ |val.zip |the validation set|18,540 |
44
+ |test.zip |the test set |41,015 |
45
 
46
+ ## Data Collection and Cleaning
47
+ The details are outlined in this [notebook](https://github.com/FilomKhash/Math-Preprint-Classifier/blob/main/Scarping%20and%20Cleaning%20the%20Data.ipynb).
48
+ As for the raw data, with the help of the [arxiv package](https://pypi.org/project/arxiv/), we scraped preprints listed, or cross-listed, under the math archive. This raw data was then processed:
49
+
50
+ - dropping preprints with an abnormally high number of versions,
51
+ - keeping only the last arXiv version,
52
+ - dropping preprints whose metadata does not include any MSC class,
53
+ - dropping entries with pre-2010 mathematics subject classification convention,
54
+ - concatenating abstract and title strings and carrying out the following steps to obtain the `cleaned_text` column:
55
+ - removing the LaTeX math environment and URL citations,
56
+ - make the text lower case, normalizing accents and removing special characters,
57
+ - removing English and some corpus-specific stop words,
58
+ - stemming.
59
+
60
+ ## Citation
61
+ <https://github.com/FilomKhash/Math-Preprint-Classifier>