Skip to content

Commit

Permalink
Fix errors of RTE Fine Tune predictions
Browse files Browse the repository at this point in the history
  • Loading branch information
GilRocha committed Jul 22, 2018
1 parent df14bb1 commit 142a49e
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 2 deletions.
40 changes: 39 additions & 1 deletion rte/fever_output/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,44 @@
},
"train_data_path": "fever_data/train_fever_snliFormat.jsonl",
"validation_data_path": "fever_data/dev_fever_snliFormat.jsonl",
"model": {
"type": "decomposable_attention",
"text_field_embedder": {
"tokens": {
"type": "embedding",
"projection_dim": 200,
"pretrained_file": "https://s3-us-west-2.amazonaws.com/allennlp/datasets/glove/glove.6B.300d.txt.gz",
"embedding_dim": 300,
"trainable": false
}
},
"attend_feedforward": {
"input_dim": 200,
"num_layers": 2,
"hidden_dims": 200,
"activations": "relu",
"dropout": 0.2
},
"similarity_function": {"type": "dot_product"},
"compare_feedforward": {
"input_dim": 400,
"num_layers": 2,
"hidden_dims": 200,
"activations": "relu",
"dropout": 0.2
},
"aggregate_feedforward": {
"input_dim": 400,
"num_layers": 2,
"hidden_dims": [200, 3],
"activations": ["relu", "linear"],
"dropout": [0.2, 0.0]
},
"initializer": [
[".*linear_layers.*weight", {"type": "xavier_normal"}],
[".*token_embedder_tokens\._projection.*weight", {"type": "xavier_normal"}]
]
},
"iterator": {
"type": "bucket",
"sorting_keys": [
Expand All @@ -39,4 +77,4 @@
"type": "adagrad"
}
}
}
}
Binary file modified rte/fever_output/model.tar.gz
Binary file not shown.
44 changes: 43 additions & 1 deletion rte/fineTuning_config/decomposable_attention_fineTuning.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,56 @@
"end_tokens": ["@@NULL@@"]
}
},

"train_data_path": "fever_data/train_fever_snliFormat.jsonl",

"validation_data_path": "fever_data/dev_fever_snliFormat.jsonl",

"model": {
"type": "decomposable_attention",
"text_field_embedder": {
"tokens": {
"type": "embedding",
"projection_dim": 200,
"pretrained_file": "https://s3-us-west-2.amazonaws.com/allennlp/datasets/glove/glove.6B.300d.txt.gz",
"embedding_dim": 300,
"trainable": false
}
},
"attend_feedforward": {
"input_dim": 200,
"num_layers": 2,
"hidden_dims": 200,
"activations": "relu",
"dropout": 0.2
},
"similarity_function": {"type": "dot_product"},
"compare_feedforward": {
"input_dim": 400,
"num_layers": 2,
"hidden_dims": 200,
"activations": "relu",
"dropout": 0.2
},
"aggregate_feedforward": {
"input_dim": 400,
"num_layers": 2,
"hidden_dims": [200, 3],
"activations": ["relu", "linear"],
"dropout": [0.2, 0.0]
},
"initializer": [
[".*linear_layers.*weight", {"type": "xavier_normal"}],
[".*token_embedder_tokens\._projection.*weight", {"type": "xavier_normal"}]
]
},

"iterator": {
"type": "bucket",
"sorting_keys": [["premise", "num_tokens"], ["hypothesis", "num_tokens"]],
"batch_size": 64
},

"trainer": {
"num_epochs": 140,
"patience": 20,
Expand Down

0 comments on commit 142a49e

Please sign in to comment.