E2EMathSolver
Implementation of NAACL 2019 paper "Semantically-Aligned Equation Generation for Solving and Reasoning Math Word Problem"
Install / Use
/learn @MiuLab/E2EMathSolverREADME
End-to-End Math Solver
The implementation of the NAACL 2019 paper Semantically-Aligned Equation Generation for Solving and Reasoning Math Word Problems.
Usage
- Download required files:
- Math23K dataset. If it is not in the valid JSON format, you need to fix it.
- Chinese FastText word vectors
- Preprocess dataset:
cd src/
mkdir ../data/
python make_train_valid.py ~/storage/MWP/data/math23k_fix.json ~/storage/cc.zh.300.vec ../data/train_valid.pkl --valid_ratio 0 --char_based
Note that the warning is not unexpected, because some of the problems use operator out of +, -, *, /. The purpose of the flags are as follow:
--valid-ratio 0: Set the ratio the validation dataset should take. It should be set to 0 when running 5-fold cross validation.--char_based: Specify if you want to tokenize the problem text into characters rather into words.
- Start 5-fold cross-validation by
mkdir ../models
python train.py ../data/train_valid.pkl ../models/model.pkl --five_fold
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
