Skip to content
Snippets Groups Projects
Commit 46445f01 authored by Franck Dary's avatar Franck Dary
Browse files

prepareExperiments checks if lang directory exists

parent 3263b17d
No related branches found
No related tags found
No related merge requests found
...@@ -35,12 +35,18 @@ if [ ! -d "$TEMPLATENAME" ]; then ...@@ -35,12 +35,18 @@ if [ ! -d "$TEMPLATENAME" ]; then
print_usage_and_exit print_usage_and_exit
fi fi
CORPUS=$UD_ROOT"/"$LANG
if [ ! -d "$CORPUS" ]; then
>&2 echo "ERROR : directory $CORPUS doesn't exist"
print_usage_and_exit
fi
mkdir -p bin mkdir -p bin
if [ ! -d "bin/$EXPNAME" ]; then if [ ! -d "bin/$EXPNAME" ]; then
cp -r $TEMPLATENAME bin/$EXPNAME cp -r $TEMPLATENAME bin/$EXPNAME
cp -r "data" bin/$EXPNAME/. cp -r "data" bin/$EXPNAME/.
echo "CORPUS="$UD_ROOT"/"$LANG > bin/$EXPNAME/config echo "CORPUS="$CORPUS > bin/$EXPNAME/config
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment