- 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
pickle
files here: https://drive.google.com/drive/folders/1SinJt4EaPbn2el-Yjhj_KN7KkaCW7LY2 - Create a new
models
folder in the root directory - Place the downloaded
data
folder inside of the newly createdmodels
folder.
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-2
To train the baseline model, run baseline.py
without any arguments. To reproduce visualizations, see visualize_net.ipynb