Transfer question and answer pairs into assertive sentences.
- Download and install the nltk package that is used in the project to parse parse-trees.
- Download the Nodebox English Linguistics library and put it in the root directory of the project.
- Run
python ./stanford-corenlp-python/corenlp.pyfor using the stanford corenlp package for constituency parsing. - Call
qa2hypo(question, answer, corenlp)inqa2hypo.pyto get the transformation instrstructure. To optimize for speed in compensation for performance, set argumentcorenlpas False, and accordingly there is no need for step 2. - This module is part of DQA-net. To work with DQA-net, tensorflow installation is required. Common issues include an outdated version of libstdc++6, and the solutions can be found here and here.
- This module also works with Math Question Answering and its previous version, which is under heavy development at this point, aiming at automating algebraic question answering.