-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.json
64 lines (56 loc) · 1.33 KB
/
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
{
"dataset_dir": "dataset",
"glove_dir": "glove_embeddings",
"dataset_path": {
"train": ".\\dataset\\train.txt",
"validation": ".\\dataset\\validation.txt",
"test": ".\\dataset\\test.txt"
},
"word2idx_path": ".\\dataset\\word2idx.json",
"embeddings": {
"path": ".\\dataset\\embeddings.txt",
"size": 100
},
"class_mapping": {
"O": 0,
"B-PER": 1,
"I-PER": 2,
"B-ORG": 3,
"I-ORG": 4,
"B-LOC": 5,
"I-LOC": 6,
"B-MISC": 7,
"I-MISC": 8
},
"vocab_size": 20000,
"OOV_token": "<unk>",
"PAD_token": "<pad>",
"PAD_label": -1,
"PAD_idx": 1,
"max_len": 128,
"use_gpu": true,
"seed": 26,
"batch_size": {
"train": 128,
"validation": 32,
"test": 32
},
"num_of_transformer_layers": 2,
"transformer_embedding_dim": 128,
"transformer_ff_dim": 128,
"attention_heads": 8,
"dropout": 0.5,
"train_config": {
"num_of_epochs": 50,
"learning_rate": 0.000075,
"l2_penalty": 0.5,
"gradient_clipping": 0.5,
"class_w": [
0.18209508, 3.43311605,
3.81135119, 3.47707575,
4.0112801, 3.35299122,
5.17214967, 4.0863506,
5.18262097
]
}
}