## Math Solving 

### Requirements
* transformers `pip3 install transformers`
* Pytorch

### Data Preparation
We have prepare the four datasets in our paper `MAWPS`, `Math23k`, `MathQA` and `SVAMP`.

### Usage

#### MAWPS
1. To run our Roberta-based models on MAWPS five fold setting, you can simply run
```shell
bash scripts/run_mawps.bash
```

#### Math23k
1. To run our Roberta-based model on Math23k with train/dev/test splits
```shell
bash scripts/run_math23k.bash
```

2. To run our Roberta-based model with cross-validation setting on Math23k
```shell
bash scripts/run_math23k_five_fold.bash
```

#### MathQA
1. To run our Roberta-based model on Adapted MathQA with train/dev/test splits
```shell
bash scripts/run_mathqa.bash
```

#### SVAMP
1. To run our model on Adapted MathQA with train/dev/test splits
```shell
bash scripts/run_svamp.bash
```

