-
Notifications
You must be signed in to change notification settings - Fork 0
/
atis_config.json
82 lines (82 loc) · 2.13 KB
/
atis_config.json
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"config": {
"task": {
"JointTextTask": {
"model": {
"representation": {
"BiLSTMDocSlotAttention": {
"lstm": {
"dropout": 0.5,
"lstm_dim": 366,
"num_layers": 2,
"bidirectional": true
},
"pooling": {
"SelfAttention": {
"attn_dimension": 128
}
}
}
},
"output_layer": {
"doc_output": {
"loss": {
"CrossEntropyLoss": {}
}
},
"word_output": {
"CRFOutputLayer": {}
}
}
},
"features": {
"word_feat": {
"embed_dim": 100,
"embedding_init_strategy": "zero",
"export_input_names": ["tokens_vals"],
"pretrained_embeddings_path":
"data/glove.6B.100d.txt",
"vocab_from_train_data": true,
"vocab_from_all_data": false,
"lowercase_tokens": true
}
},
"optimizer": {
"Adam": {
"lr": "0.001",
"weight_decay": 0
}
},
"trainer": {
"epochs": 30
},
"featurizer": {
"SimpleFeaturizer": {}
},
"labels": [
{
"DocLabelConfig": {}
},
{
"WordLabelConfig": {}
}
],
"data_handler": {
"columns_to_read": ["doc_label", "word_label", "text"],
"train_batch_size": 86,
"eval_batch_size": 128,
"test_batch_size": 128,
"train_path": "data/atis.processed.train.csv",
"eval_path": "data/atis.processed.val.csv",
"test_path": "data/atis.processed.test.csv"
},
"exporter": {}
}
},
"save_snapshot_path": "output/atis_model.pt",
"export_caffe2_path": "output/atis_model.c2",
"export_onnx_path": "output/atis_model.onnx",
"test_out_path": "output/test_out.txt",
"debug_path": "output/atis_model.debug"
}
}