3
3
# TODO make this file safe for spaces in filenames
4
4
5
5
# default file paths
6
- defaultmodel=" example /full_model.tar.gz"
6
+ defaultmodel=" downloaded_models /full_model.tar.gz"
7
7
jar=" am-tools-all.jar"
8
8
9
9
# Documenting parameters:
@@ -60,8 +60,7 @@ if [ -f "$model" ]; then
60
60
else
61
61
if [ " $model " = " $defaultmodel " ]; then
62
62
echo " model not found at default model path. Downloading it!"
63
- # TODO replace this with code that downloads the model from the internet
64
- cp /local/mlinde/am-parser/models/bert_all2/model.tar.gz " $defaultmodel "
63
+ wget -O " $defaultmodel " https://coli-saar-data.s3.eu-central-1.amazonaws.com/full_model.tar.gz
65
64
else
66
65
echo " model not found at $model . Please check the -m parameter"
67
66
fi
@@ -71,8 +70,7 @@ if [ -f "$jar" ]; then
71
70
echo " jar file found at $jar "
72
71
else
73
72
echo " jar file not found at $jar , downloading it!"
74
- # TODO replace this with code that downloads the jar file from the internet
75
- cp /proj/irtg.shadow/tools/am-tools-all.jar " $jar "
73
+ wget -O " $jar " https://coli-saar-data.s3.eu-central-1.amazonaws.com/am-tools.jar
76
74
fi
77
75
78
76
@@ -106,7 +104,6 @@ if [ "$type" = "DM" ] || [ "$type" = "PAS" ] || [ "$type" = "PSD" ]; then
106
104
java -cp $jar de.saar.coli.amrtagging.formalisms.sdp.tools.PrepareFinalTestData -c $input -o $output -p $prefix
107
105
else
108
106
if [ " $type " = " EDS" ]; then
109
- # TODO fix this part
110
107
java -cp $jar de.saar.coli.amrtagging.formalisms.eds.tools.PrepareTestData -c $input -o $output -p $prefix
111
108
fi
112
109
fi
0 commit comments