-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample_lstm.sh
30 lines (29 loc) · 1.03 KB
/
example_lstm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Train the base model
python main.py --model_type lstm \
--model_dir dir_base \
--task <mixatis or mixsnips> \
--data_dir data \
--do_train \
--do_eval \
--num_train_epochs 100 \
--intent_loss_coef <lambda> \
--learning_rate 1e-3 \
--num_intent_detection \
--use_crf \
--only_intent 0.1 \
--max_freq 10
# Fine tune the whole model
python main.py --model_type lstm \
--model_dir misca \
--task <mixatis or mixsnips> \
--data_dir data \
--do_train \
--do_eval \
--num_train_epochs 50 \
--intent_loss_coef <lambda> \
--learning_rate 1e-4 \
--num_intent_detection \
--use_crf \
--max_freq 10 \
--base_model dir_base \
--intent_slot_attn_type coattention