###Matheaware Q&A system
This system is able to answer mathematical questions asked in natural language by the user.
##System setup
sudo apt-get install python3
##CoreNlp
CoreNlp is resposible for extraction Triple (subject, predicate, object) from the questions.
- Downloading POS Tagger
wget http://nlp.stanford.edu/software/stanford-postagger-full-2015-12-09.zip
- Installing POS Tagger
unzip stanford-postagger-full-2015-12-09.zip
-
Cloning and installing CoreNLP
git clone https://github.com/stanfordnlp/CoreNLP.git cd CoreNLP ant compile ant jar cd ..
-
Downloading English model for CoreNLP
wget http://nlp.stanford.edu/software/stanford-english-corenlp-2016-01-10-models.jar
##Pywikiwot Pywikibot is used to extract the formula from Wikidata https://tools.wmflabs.org/pywikibot/
##latex2sympy-master Used to convert variant of latex formula to sympy equivalent form
ANTLR is used to generate the parser:
sudo apt-get install antlr4
For latex2sympy download from
https://github.com/augustt198/latex2sympy
##sympy apt-get install python3-sympy
##ppp_modules
pip3 install --user ppp_questionparsing_grammatical
pip3 install git+https://github.com/ProjetPP/PPP-datamodel-Python.git
pip3 install git+https://github.com/ProjetPP/PPP-libmodule-Python.git
##xmltodic pip3 install xmltodict
##flask pip3 install Flask