-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtruecaser.json
More file actions
53 lines (53 loc) · 1.11 KB
/
truecaser.json
File metadata and controls
53 lines (53 loc) · 1.11 KB
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
{
"dataset_reader":{
"type": "truecaser_reader",
"token_indexers" : {
"tokens": {
"type": "single_id"
}
},
"word_splitter":{
"type": "just_spaces"
}
},
"train_data_path": "data/data.v1.split/normal.training.txt",
"validation_data_path": "data/data.v1.split/normal.tuning.txt",
"test_data_path": "data/data.v1.split/normal.testing.txt",
"evaluate_on_test" : true,
"model": {
"type": "truecaser",
"text_field_embedder": {
"token_embedders": {
"tokens": {
"type": "embedding",
"embedding_dim": 50,
"trainable": true
}
}
},
"encoder": {
"type": "lstm",
"input_size": 50,
"hidden_size": 150,
"num_layers": 2,
"bidirectional" : true,
"dropout" : 0.25
},
},
"iterator": {
"type": "basic",
"batch_size": 64
},
"trainer": {
"optimizer": {
"type": "adam",
"lr": 0.001
},
"validation_metric": "+f1",
"num_serialized_models_to_keep": 3,
"num_epochs": 75,
"grad_norm": 5.0,
"patience": 25,
"cuda_device": -1
}
}