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
print_usage_and_exit
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
if [ ! -d "bin/$EXPNAME" ]; then
cp -r $TEMPLATENAME bin/$EXPNAME
cp -r "data" bin/$EXPNAME/.
echo "CORPUS="$UD_ROOT"/"$LANG > bin/$EXPNAME/config
echo "CORPUS="$CORPUS > bin/$EXPNAME/config
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment