-
Notifications
You must be signed in to change notification settings - Fork 3
/
allen_conf.json
95 lines (95 loc) · 2.17 KB
/
allen_conf.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
95
{
"dataset_reader": {
"type": "augmented_mention_categories",
"category_mapping_file": "./data/category_mapping.json",
"tokenizer": {
"type": "word",
"word_splitter": {
"type": "fast-splitter"
}
},
"token_indexers": {
"tokens": {
"type": "fasttext-id",
"model_path": "./data/fasttext_embedding.model",
"model_params_path": "./data/fasttext_embedding.model.params"
}
}
},
"train_data_path": "./data/train_data.tsv",
"validation_data_path": "./data/valid_data.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/fasttext_embedding.model",
"trainable": false
},
"tokens": {
"type": "embedding",
"embedding_dim": 20,
"trainable": true
}
}
},
"encoder": {
"type": "lstm",
"input_size": 320,
"hidden_size": 100,
"num_layers": 1,
"dropout": 0.2,
"bidirectional": true
},
"seq_combiner": {
"type": "attention-combiner",
"num_layers": 3,
"input_state_dim": 200,
"encoded_seq_dim": 520,
"feed_forward_hidden_dim": 200,
"hidden_dim": 200,
"output_dim": 100,
"num_heads": 5
}
},
"iterator": {
"type": "numpy-multiprocessing",
"num_workers": 7,
"base_iterator": {
"type": "basic",
"batch_size": 32
}
},
"trainer": {
"shuffle": false,
"optimizer": {
"type": "adam",
"lr": 0.001
},
"should_log_learning_rate": true,
"num_epochs": 200,
"learning_rate_scheduler": {
"type": "reduce_on_plateau",
"factor": 0.5,
"patience": 2,
"verbose": true
}
},
"vocabulary": {
"directory_path": "./data/vocabulary/"
}
}