Skip to content
Snippets Groups Projects

Fixed multiword prediction + bug that made the code write empty predictions

2 files
+ 323
17
Compare changes
  • Side-by-side
  • Inline

Files

+ 19
17
@@ -10,7 +10,7 @@
"parameters": {
"activation": { "type": "tanh", "parameters": {} },
"dropout_rate": 0.25,
"in_features": 164,
"in_features": 1024,
"out_features": 128
}
},
@@ -22,7 +22,7 @@
"type": "linear_layer",
"parameters": {
"activation": { "type": "tanh", "parameters": {} },
"in_features": 164,
"in_features": 1024,
"out_features": 512
}
},
@@ -30,7 +30,7 @@
"type": "linear_layer",
"parameters": {
"activation": { "type": "tanh", "parameters": {} },
"in_features": 164,
"in_features": 1024,
"out_features": 512
}
}
@@ -41,7 +41,7 @@
"parameters": {
"activation": { "type": "tanh", "parameters": {} },
"dropout_rate": 0.25,
"in_features": 164,
"in_features": 1024,
"out_features": 128
}
},
@@ -66,7 +66,7 @@
"parameters": {
"activation": { "type": "tanh", "parameters": {} },
"dropout_rate": 0.25,
"in_features": 164,
"in_features": 1024,
"out_features": 32
}
},
@@ -94,7 +94,7 @@
],
"dropout": [0.25, 0.0],
"hidden_dims": [128],
"input_dim": 164,
"input_dim": 1024,
"num_layers": 2,
"vocab_namespace": "feats_labels"
}
@@ -123,17 +123,19 @@
}
},
"seq_encoder": {
"type": "combo_transformer_encoder",
"type": "combo_encoder",
"parameters": {
"layer_dropout_probability": 0.33,
"input_dim": 164,
"num_layers": 2,
"feedforward_hidden_dim": 2048,
"num_attention_heads": 4,
"positional_encoding": null,
"positional_embedding_size": 512,
"dropout_prob": 0.1,
"activation": "relu"
"stacked_bilstm": {
"type": "combo_stacked_bilstm",
"parameters": {
"hidden_size": 512,
"input_size": 164,
"layer_dropout_probability": 0.33,
"num_layers": 2,
"recurrent_dropout_probability": 0.33
}
}
}
},
"text_field_embedder": {
@@ -173,7 +175,7 @@
"type": "feedforward_predictor_from_vocab",
"parameters": {
"vocab_namespace": "upostag_labels",
"input_dim": 164,
"input_dim": 1024,
"num_layers": 2,
"hidden_dims": [64],
"activations": [
@@ -187,7 +189,7 @@
"type": "feedforward_predictor_from_vocab",
"parameters": {
"vocab_namespace": "xpostag_labels",
"input_dim": 164,
"input_dim": 1024,
"num_layers": 2,
"hidden_dims": [64],
"activations": [
Loading