/MathDemo

Math Word Problem Demo

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Demo for Chinese Math Word Problem Solver

Run

  1. create and activate virtual environment
mkdir venv
cd venv
virtualenv -p python3 venv
source venv/bin/activate
  1. install requirements
pip3 install -r reuiremnts.txt
  1. run the application
sudo python app.py

Requirements

  • Python 3.6
  • Flask 1.0.2
  • Jieba
  • PyTorch 1.0

Technical details

  • visjs to show the expression tree
  • he to encode and decode HTML entity
  • DOT language to describe tree which is drawn by visjs

index

example 1

example 2