- Christian Hetling, chrhe@itu.dk
- Krzysztof Parocki, krpa@itu.dk
- Malthe Have Musaeus, mhmu@itu.dk
- Start by cloning the repo:
git clone https://github.com/Hetling/NLP-second-year-project.git - Download the contextualized word embedding
picklefiles here: https://drive.google.com/drive/folders/1SinJt4EaPbn2el-Yjhj_KN7KkaCW7LY2 - Create a new
modelsfolder in the root directory - Place the downloaded
datafolder inside of the newly createdmodelsfolder.
Now you are ready to train, validate, and test the models. The main.py file acts as a simple CLI to interact with the models. The usage of which is described below:
python main.py --train python main.py --train --approach-1 --approach-2 --save False python main.py --validate python main.py --validate --approach-1 --approach-2 python main.py --test python main.py --test --approach-1 --approach-2To train the baseline model, run baseline.py without any arguments. To reproduce visualizations, see visualize_net.ipynb