Source code for paper HMS: A Hierarchical Solver with Dependency-Enhanced Understanding for Math Word Problem.
-
python >= 3.6
-
stanfordcorenlp
-
torch
Preprocess dataset
python3 src/dataprocess/math23k.py
Train and test model
python3 src/main.py
For running arguments, please refer to src/config.py.