-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwongnai.json
49 lines (49 loc) · 1.23 KB
/
wongnai.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
{
"dataset_reader": {
"type": "wongnai_reader",
"lazy": true
},
"train_data_path": "wongnai_dataset/training.jsonl",
"validation_data_path": "wongnai_dataset/validation.jsonl",
"model": {
"type": "wongnai_classifier",
"text_field_embedder": {
"tokens": {
"type": "embedding",
"pretrained_file": "https://s3-us-west-2.amazonaws.com/thai-corpus/thai2vec02.txt.gz",
"embedding_dim": 300,
"trainable": false
}
},
"comment_encoder": {
"type": "lstm",
"bidirectional": true,
"input_size": 300,
"hidden_size": 300,
"num_layers": 1,
"dropout": 0.2
},
"classifier_feedforward": {
"input_dim": 600,
"num_layers": 2,
"hidden_dims": [600, 5],
"activations": ["relu", "linear"],
"dropout": [0.2, 0.0]
}
},
"iterator": {
"type": "bucket",
"sorting_keys": [["comment", "num_tokens"]],
"batch_size": 128
},
"trainer": {
"num_epochs": 50,
"patience": 10,
"cuda_device": 0,
"grad_clipping": 5.0,
"validation_metric": "+accuracy",
"optimizer": {
"type": "adagrad"
}
}
}