Applied Deep Learning Fall 2022
python
3.9
# If you have conda, you can build a conda environment called "adl-hw1"
make
conda activate adl-hw1
pip install -r requirement.txt
# Otherwise
pip install -r requirements.in
bash preprocess.sh
default device is
CPU, recommending useGPUwith--device cuda
# train
python train_intent.py
# test
bash ./intent_cls.sh /path/to/test.json /path/to/pred.csv
## or
python test_intent.py --test_file /path/to/test.json --ckpt_path /path/to/pred.csv
default device is
CPU, recommending useGPUwith--device cuda
# train
python train_slot.py
# test
bash ./slot_tag.sh /path/to/test.json /path/to/pred.csv
## or
python test_slot.py --test_file /path/to/test.json --ckpt_path /path/to/pred.csv