ShichaoSun / MathDemo

Math Word Problem Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Math Word Problem Demo

License:GNU General Public License v3.0


Languages

Language:JavaScript 96.4%Language:Python 1.7%Language:CSS 1.7%Language:HTML 0.2%