-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample_training_110venue.json
57 lines (57 loc) · 1.56 KB
/
example_training_110venue.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
{
"dataset_reader": {
"type": "venue_reader",
"lazy": true
},
"train_data_path": "https://s3-us-west-2.amazonaws.com/allennlp-tutorial/venue_110journals_train.jsonl",
"validation_data_path": "https://s3-us-west-2.amazonaws.com/allennlp-tutorial/venue_110journals_validation.jsonl",
"model": {
"type": "venue_classifier",
"text_field_embedder": {
"tokens": {
"type": "embedding",
"pretrained_file": "https://s3-us-west-2.amazonaws.com/allennlp/datasets/glove/glove.840B.300d.txt.gz",
"embedding_dim": 300,
"trainable": false
}
},
"title_encoder": {
"type": "lstm",
"bidirectional": true,
"input_size": 300,
"hidden_size": 300,
"num_layers": 1,
"dropout": 0.2
},
"abstract_encoder": {
"type": "lstm",
"bidirectional": true,
"input_size": 300,
"hidden_size": 300,
"num_layers": 1,
"dropout": 0.2
},
"classifier_feedforward": {
"input_dim": 1200,
"num_layers": 2,
"hidden_dims": [1200, 110],
"activations": ["relu", "linear"],
"dropout": [0.2, 0.0]
}
},
"iterator": {
"type": "bucket",
"sorting_keys": [["abstract", "num_tokens"], ["title", "num_tokens"]],
"batch_size": 128
},
"trainer": {
"num_epochs": 50,
"patience": 10,
"cuda_device": 0,
"grad_clipping": 5.0,
"validation_metric": "+accuracy",
"optimizer": {
"type": "adagrad"
}
}
}