File size: 4,090 Bytes
d0c1a4d |
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 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
{
"dataset_reader": {
"type": "coref",
"max_sentences": 110,
"max_span_width": 30,
"token_indexers": {
"tokens": {
"type": "pretrained_transformer_mismatched",
"max_length": 512,
"model_name": "SpanBERT/spanbert-large-cased"
}
}
},
"model": {
"type": "coref",
"antecedent_feedforward": {
"activations": "relu",
"dropout": 0.3,
"hidden_dims": 1500,
"input_dim": 9296,
"num_layers": 2
},
"coarse_to_fine": true,
"context_layer": {
"type": "pass_through",
"input_dim": 1024
},
"feature_size": 20,
"inference_order": 2,
"initializer": {
"regexes": [
[
".*_span_updating_gated_sum.*weight",
{
"type": "xavier_normal"
}
],
[
".*linear_layers.*weight",
{
"type": "xavier_normal"
}
],
[
".*scorer.*weight",
{
"type": "xavier_normal"
}
],
[
"_distance_embedding.weight",
{
"type": "xavier_normal"
}
],
[
"_span_width_embedding.weight",
{
"type": "xavier_normal"
}
],
[
"_context_layer._module.weight_ih.*",
{
"type": "xavier_normal"
}
],
[
"_context_layer._module.weight_hh.*",
{
"type": "orthogonal"
}
]
]
},
"max_antecedents": 50,
"max_span_width": 30,
"mention_feedforward": {
"activations": "relu",
"dropout": 0.3,
"hidden_dims": 1500,
"input_dim": 3092,
"num_layers": 2
},
"spans_per_word": 0.4,
"text_field_embedder": {
"token_embedders": {
"tokens": {
"type": "pretrained_transformer_mismatched",
"max_length": 512,
"model_name": "SpanBERT/spanbert-large-cased"
}
}
}
},
"train_data_path": "/home/dirkg/tank/data/conll12/train.english.v4_gold_conll",
"validation_data_path": "/home/dirkg/tank/data/conll12/dev.english.v4_gold_conll",
"test_data_path": "/home/dirkg/tank/data/conll12/test.english.v4_gold_conll",
"trainer": {
"learning_rate_scheduler": {
"type": "slanted_triangular",
"cut_frac": 0.06
},
"num_epochs": 40,
"optimizer": {
"type": "huggingface_adamw",
"lr": 0.0003,
"parameter_groups": [
[
[
".*transformer.*"
],
{
"lr": 1e-05
}
]
]
},
"patience": 10,
"validation_metric": "+coref_f1"
},
"data_loader": {
"batch_sampler": {
"type": "bucket",
"batch_size": 1,
"sorting_keys": [
"text"
]
}
},
"validation_dataset_reader": {
"type": "coref",
"max_span_width": 30,
"token_indexers": {
"tokens": {
"type": "pretrained_transformer_mismatched",
"max_length": 512,
"model_name": "SpanBERT/spanbert-large-cased"
}
}
}
} |