Skip to content

Commit

Permalink
ENH Wrote single script file with all runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
André T. Martins committed Jan 9, 2015
1 parent 49744eb commit 79543fe
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 13 deletions.
16 changes: 8 additions & 8 deletions scripts_srl/train_test_semantic_parser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand All @@ -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
Expand Down
37 changes: 32 additions & 5 deletions scripts_srl/train_test_submission_SDP2015.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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}

0 comments on commit 79543fe

Please sign in to comment.