-
Notifications
You must be signed in to change notification settings - Fork 3
/
allen_conf_vocab.json
105 lines (105 loc) · 2.36 KB
/
allen_conf_vocab.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
96
97
98
99
100
101
102
103
104
105
{
"dataset_reader": {
"type": "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",
"token_embedders": {
"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": 10,
"trainable": true
}
}
}
},
"encoder": {
"type": "lstm",
"input_size": 310,
"hidden_size": 50,
"num_layers": 1,
"dropout": 0.5,
"bidirectional": true
},
"seq_combiner": {
"type": "attention-combiner",
"num_layers": 2,
"input_state_dim": 100,
"encoded_seq_dim": 100,
"output_dim": 50,
"dropout": 0.2,
"attention": {
"type": "linear",
"tensor_1_dim": 100,
"tensor_2_dim": 100
}
}
},
"iterator": {
"type": "numpy-multiprocessing",
"num_workers": 2,
"base_iterator": {
"type": "basic",
"batch_size": 32
}
},
"trainer": {
"shuffle": false,
"optimizer": {
"type": "adam",
"lr": 0.001
},
"should_log_learning_rate": true,
"num_epochs": 50,
"learning_rate_scheduler": {
"type": "reduce_on_plateau",
"factor": 0.5,
"patience": 5,
"verbose": true
}
},
"vocabulary": {
"directory_path": null,
"min_count": {
"tokens": 3
},
"max_vocab_size": 200000
}
}