forked from DFKI-NLP/lrv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
65 lines (65 loc) · 1.58 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
65
{
"pipeline": {
"preprocess": true,
"train": true,
"explain": true,
"postprocess": true
},
"preprocessing": {
"word_vectors": {
"doit": true,
"file_word2vec": "./data/embeddings/wiki-news-300d-1M.vec",
"dir_vocab": "./data/embeddings/",
"vocab_size": 50000
},
"pubmed": {
"doit": true,
"to_lower": false,
"file_train_text": "./data/PubMed_20k_RCT/train.txt",
"file_dev_text": "./data/PubMed_20k_RCT/dev.txt",
"file_test_text": "./data/PubMed_20k_RCT/test.txt",
"language_model": "en_core_sci_sm"
}
},
"training": {
"doit": true,
"pad": 350,
"crop_train": -1,
"crop_dev": -1,
"crop_test": -1,
"batch_size": 128,
"num_workers": 8,
"path_model": "./data/model/model.weights",
"epochs": 100,
"nclasses": 5,
"nfeat": 300,
"nhid": 300,
"patience": 3,
"metric": "weighted",
"random_seed": 42
},
"explain": {
"file_explanations_jsonl": "./data/explanations/explanations.jsonl",
"crop": -1,
"occlude": true,
"drop": 1.0,
"step": 0.1,
"verbose": false
},
"postprocess": {
"occlusion_experiment": {
"doit": true,
"path_out_top_masked_predictions": "./data/explanations/top_masked_predictions.csv",
"path_out_bottom_masked_predictions": "./data/explanations/bottom_masked_predictions.csv",
"draw_plot": false
},
"latex": {
"doit": true,
"path_out_latex": "./data/explanations/explanations.tex",
"max_seq_len": 10,
"crop": 250,
"weight": 15,
"base": 0.5
}
}
}