diff --git a/scripts_srl/train_test_semantic_parser.sh b/scripts_srl/train_test_semantic_parser.sh index 1093ec7..5e5177f 100755 --- a/scripts_srl/train_test_semantic_parser.sh +++ b/scripts_srl/train_test_semantic_parser.sh @@ -63,8 +63,8 @@ then fi #suffix=parser_pruned-${prune}_model-${model_type} -suffix=semantic_parser_${formalism}_pruned-${prune}_model-${model_type}_syntax-${use_dependency_syntactic_features}_C-${regularization_parameter}_fp-${train_cost_false_positives}_fn-${train_cost_false_negatives} -suffix_pruner=semantic_parser_${formalism}_pruner_syntax-${use_dependency_syntactic_features}_C-${regularization_parameter_pruner} +suffix=semantic_parser_train+dev_${formalism}_pruned-${prune}_model-${model_type}_syntax-${use_dependency_syntactic_features}_C-${regularization_parameter}_fp-${train_cost_false_positives}_fn-${train_cost_false_negatives} +suffix_pruner=semantic_parser_train+dev_${formalism}_pruner_syntax-${use_dependency_syntactic_features}_C-${regularization_parameter_pruner} # Set path folders. path_bin=${root_folder} # Folder containing the binary. @@ -87,13 +87,13 @@ if [ "${file_format}" == "sdp" ] then if [ "$language" == "czech" ] then - file_train_orig=${path_data}/${language}_${formalism}_augmented_train.sdp - #file_train_orig=${path_data}/${language}_${formalism}_augmented_train+dev.sdp + #file_train_orig=${path_data}/${language}_${formalism}_augmented_train.sdp + file_train_orig=${path_data}/${language}_${formalism}_augmented_train+dev.sdp files_test_orig[0]=${path_data}/${language}_${formalism}_augmented_dev.sdp #files_test_orig[1]=${path_data}/${language}_${formalism}_augmented_test.sdp - file_train=${path_data}/${language}_ctags_${formalism}_augmented_train.sdp - #file_train=${path_data}/${language}_ctags_${formalism}_augmented_train+dev.sdp + #file_train=${path_data}/${language}_ctags_${formalism}_augmented_train.sdp + file_train=${path_data}/${language}_ctags_${formalism}_augmented_train+dev.sdp files_test[0]=${path_data}/${language}_ctags_${formalism}_augmented_dev.sdp #files_test[1]=${path_data}/${language}_ctags_${formalism}_augmented_test.sdp @@ -116,8 +116,8 @@ then > ${file_test}.unaugmented done else - file_train=${path_data}/${language}_${formalism}_augmented_train.sdp - #file_train=${path_data}/${language}_${formalism}_augmented_train+dev.sdp + #file_train=${path_data}/${language}_${formalism}_augmented_train.sdp + file_train=${path_data}/${language}_${formalism}_augmented_train+dev.sdp files_test[0]=${path_data}/${language}_${formalism}_augmented_dev.sdp #files_test[1]=${path_data}/${language}_${formalism}_augmented_test.sdp fi diff --git a/scripts_srl/train_test_submission_SDP2015.sh b/scripts_srl/train_test_submission_SDP2015.sh index 24a3d84..6306040 100755 --- a/scripts_srl/train_test_submission_SDP2015.sh +++ b/scripts_srl/train_test_submission_SDP2015.sh @@ -7,7 +7,7 @@ C=0.01 cost_fp=0.4 cost_fn=0.6 echo "${language} ${C} ${cost_fp} ${cost_fn} ${formalism} ${model_type} ${open}" -./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} +./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_final_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} language=chinese open=false @@ -16,7 +16,7 @@ C=0.01 cost_fp=0.4 cost_fn=0.6 echo "${language} ${C} ${cost_fp} ${cost_fn} ${formalism} ${model_type} ${open}" -./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} +./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_final_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} language=english open=true @@ -25,7 +25,7 @@ C=0.01 cost_fp=0.4 cost_fn=0.6 echo "${language} ${C} ${cost_fp} ${cost_fn} ${formalism} ${model_type} ${open}" -./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} +./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_final_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} language=english open=true @@ -34,7 +34,7 @@ C=0.01 cost_fp=0.4 cost_fn=0.6 echo "${language} ${C} ${cost_fp} ${cost_fn} ${formalism} ${model_type} ${open}" -./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} +./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_final_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} language=english open=true @@ -43,5 +43,32 @@ C=0.01 cost_fp=0.4 cost_fn=0.6 echo "${language} ${C} ${cost_fp} ${cost_fn} ${formalism} ${model_type} ${open}" -./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} +./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_final_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} + +language=english +open=false +formalism=dm +C=0.01 +cost_fp=0.4 #0.3 +cost_fn=0.6 #0.7 +echo "${language} ${C} ${cost_fp} ${cost_fn} ${formalism} ${model_type} ${open}" +./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_final_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} + +language=english +open=false +formalism=pas +C=0.01 +cost_fp=0.4 +cost_fn=0.6 +echo "${language} ${C} ${cost_fp} ${cost_fn} ${formalism} ${model_type} ${open}" +./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_final_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type} + +language=english +open=false +formalism=psd +C=0.01 +cost_fp=0.3 +cost_fn=0.7 +echo "${language} ${C} ${cost_fp} ${cost_fn} ${formalism} ${model_type} ${open}" +./train_test_semantic_parser.sh ${language} ${C} ${cost_fp} ${cost_fn} ${model_type} sdp ${formalism} ${open} >& out_final_SDP2015_${language}_open-${open}_deterministic_${formalism}_${C}_${cost_fp}_${cost_fn}_${model_type}