Homework 1 ADL NTU 111 Spring
# This builds a conda environment named 'adl-hw1'
make
pip install -r requirements.txt
# To preprocess intent detection and slot tagging datasets
bash preprocess.sh
python3 ./src/train_intent.py --model_id=demo --model=CNN
python3 ./src/test_intent.py --test_file="./data/intent/test.json" --pred_file="./ckpt/intent/demo/pred.csv" --model_file="./ckpt/intent/demo/model.pt" --model=CNN
python3 ./src/train_slot.py --model_id=demo
python3 ./src/test_slot.py --test_file="./data/slot/test.json" --pred_file="./ckpt/slot/demo/pred.csv" --model_file="./ckpt/slot/demo/model.pt"