-
Notifications
You must be signed in to change notification settings - Fork 3
/
allen_conf_test.json
94 lines (94 loc) · 2.14 KB
/
allen_conf_test.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
83
84
85
86
87
88
89
90
91
92
93
94
{
"dataset_reader": {
"type": "augmented_mention_categories",
"category_mapping_file": "./data/category_mapping_test.json",
"tokenizer": {
"type": "word",
"word_splitter": {
"type": "fast-splitter"
}
},
"token_indexers": {
"tokens": {
"type": "fasttext-id",
"model_path": "./data/gensim_fake_ft.model",
"model_params_path": "./data/gensim_fake_ft.model.params"
}
}
},
"train_data_path": "./data/fake_data_train.tsv",
"validation_data_path": "data/fake_data_valid.tsv",
"evaluate_on_test": true,
"model": {
"type": "category_predictor",
"text_embedder": {
"type": "basic",
"allow_unmatched_keys": true,
"embedder_to_indexer_map": {
"tokens-ngram": [
"tokens-ngram",
"tokens-ngram-lengths",
"tokens-ngram-mask"
],
"tokens": [
"tokens"
]
},
"token_embedders": {
"tokens-ngram": {
"type": "fasttext-embedder",
"model_path": "./data/gensim_fake_ft.model",
"trainable": false
},
"tokens": {
"type": "embedding",
"embedding_dim": 10,
"trainable": true
}
}
},
"encoder": {
"type": "lstm",
"input_size": 40,
"hidden_size": 20,
"num_layers": 1,
"dropout": 0.5,
"bidirectional": true
},
"seq_combiner": {
"type": "attention-combiner",
"num_layers": 2,
"input_state_dim": 40,
"encoded_seq_dim": 80,
"feed_forward_hidden_dim": 100,
"hidden_dim": 100,
"output_dim": 40,
"num_heads": 2
}
},
"iterator": {
"type": "numpy-multiprocessing",
"num_workers": 2,
"base_iterator": {
"type": "basic",
"batch_size": 4
}
},
"trainer": {
"optimizer": {
"type": "adam",
"lr": 0.04
},
"should_log_learning_rate": true,
"num_epochs": 5,
"learning_rate_scheduler": {
"type": "reduce_on_plateau",
"factor": 0.5,
"patience": 5,
"verbose": true
}
},
"vocabulary": {
"directory_path": "./data/vocabulary/"
}
}