Make sure you have Docker Desktop installed.
Execute this command in a bash shell to run:
./util.sh test
If you encounter any error, try running these instead:
cd python
docker build -t student-image .
docker run --rm -v /`pwd`/2112070/output:/nlp/output student-image
This repo contain source code for running the part 1 of the assignment.
The output will be generated at 2112070/output
. This will contain 3 files:
grammar.txt
: the defined context-free grammarparse-results.txt
: results of parsing the sentences inpython/input/sentences.txt
using the grammarsamples.txt
: some example sentences generated from the grammar
This repo contain source code for running the part 2 of the assignment.
The output will be generated at 2112070/output
. This will contain 5 files:
p2-q-1.txt
: the definition of the dependency parser and its componentsp2-q-2.txt
: results of parsing the sentences inpython/input/questions.txt
using the defined grammarp2-q-3.txt
: grammatical relations extracted from the dependenciesp2-q-4.txt
: logical forms and procedural semantics formulated using the relationsp2-q-5.txt
: answers for the questions inpython/input/questions.txt
, generated by executing the procedures and retrieve the information inpython/input/database.txt
Contact me via email phuong.ngo0320@hcmut.edu.vn if you have any problem.