From cd7416c83ccb4e59bbc024e26840b44f8e0a9c86 Mon Sep 17 00:00:00 2001 From: Andre Martins Date: Fri, 21 Mar 2014 00:46:46 +0000 Subject: [PATCH 1/2] FIX Renaming to train, dev0, dev. --- scripts_srl/train_test_semantic_parser.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts_srl/train_test_semantic_parser.sh b/scripts_srl/train_test_semantic_parser.sh index b321039..a1a29c5 100755 --- a/scripts_srl/train_test_semantic_parser.sh +++ b/scripts_srl/train_test_semantic_parser.sh @@ -12,12 +12,12 @@ num_epochs=10 # Number of training epochs. num_epochs_pruner=10 # Number of training epochs for the pruner. regularization_parameter=$2 #0.001 # The C parameter in MIRA. regularization_parameter_pruner=1e12 # Same for the pruner. -train=true +train=false #true test=true prune=true # This will revert to false if model_type=basic. prune_labels=true prune_distances=true -train_external_pruner=false # If true, the pruner is trained separately. +train_external_pruner=false #true #false # If true, the pruner is trained separately. trained_external_pruner=true #false # If true, loads the external pruner. posterior_threshold=0.0001 # Posterior probability threshold for the pruner. pruner_max_arguments=10 #20 # Maximum number of candidate heads allowed by the pruner. @@ -84,9 +84,8 @@ then if [ "$file_format" == "sdp" ] then file_train=${path_data}/${formalism}_augmented_train.sdp - #file_train=${path_data}/${formalism}_augmented_dev.sdp - files_test[0]=${path_data}/${formalism}_augmented_dev.sdp - files_test[1]=${path_data}/${formalism}_augmented_test.sdp + files_test[0]=${path_data}/${formalism}_augmented_dev0.sdp + files_test[1]=${path_data}/${formalism}_augmented_dev.sdp files_test[2]=${path_data}/${formalism}_augmented_train.sdp else file_train=${path_data}/${language}_train.conll2008 From ebcc3bdd1ec68148cbeee423caed4546f87a04d7 Mon Sep 17 00:00:00 2001 From: Andre Martins Date: Fri, 21 Mar 2014 00:57:40 +0000 Subject: [PATCH 2/2] FIX Train on train+dev0. --- scripts_srl/train_test_semantic_parser.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts_srl/train_test_semantic_parser.sh b/scripts_srl/train_test_semantic_parser.sh index 798e77f..6d29327 100755 --- a/scripts_srl/train_test_semantic_parser.sh +++ b/scripts_srl/train_test_semantic_parser.sh @@ -83,10 +83,12 @@ if [ "$language" == "english" ] then if [ "$file_format" == "sdp" ] then - file_train=${path_data}/${formalism}_augmented_train.sdp - files_test[0]=${path_data}/${formalism}_augmented_dev0.sdp - files_test[1]=${path_data}/${formalism}_augmented_dev.sdp - files_test[2]=${path_data}/${formalism}_augmented_train.sdp + file_train=${path_data}/${formalism}_augmented_train+dev0.sdp + files_test[0]=${path_data}/${formalism}_augmented_dev.sdp + #files_test[1]=${path_data}/${formalism}_augmented_train+dev0.sdp + #files_test[0]=${path_data}/${formalism}_augmented_dev0.sdp + #files_test[1]=${path_data}/${formalism}_augmented_dev.sdp + #files_test[2]=${path_data}/${formalism}_augmented_train.sdp else file_train=${path_data}/${language}_train.conll2008 files_test[0]=${path_data}/${language}_test.conll2008