Webpage for result presentation of Actor Critic method for Math problem answering
Semester project of Emilien Seiler, Master in Computational Science and Engineering at EPFL. Project in collaboration with Atificial Intelligence Laboratory and Natural Language Processing Laboratory at EPFL.
This is the structure of the repository:
services
: python class and function for the serverdata_service.py
: service for data management on the servermodel_service.py
: service for actor and critic model management on the server
static
:css
: webpage stylemy_style.css
: personalized style
data
: datasetMath-problem-nlp.pdf
: download pdf on the webpage (to change)dev.csv
: test settrain.csv
: train set
img
: img dispay on the webpagejs
: json file with jQuery request for on click/change actionactor_model.js
: actor model related actioncritic_model.js
: critic model related actiondata_selection.js
: data selection related action
templates
: html template pagehome.html
: home page
requirement.txt
: python requirementwebpage_project.py
: script for run the webpage (see args bellow)
Data are provided from SVAMP dataset
Train dataset 3139 math problem
Test dataset 1000 math problem
python3 webpage_project.py --args <value>
Data specific:
--random-data
: bool, random data proposed on the webpage (default = False)--data-number
: int, number of data display in the select bar (default = 10)
Model specific:
--actor-path
: str, path of the actor model (default = "static/model/output_reasoning_iterationz)--critic-path
: str, path of the critic model (default = "static/model/critic")
Other:
--verbose
: bool, print input and output of models to help debugging (default = True)--run-EPFL-cluster
: bool, True if run on EPFL cluster else use the host (default = True)