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

in train, make in data must happen before searching for txt files

parent 3f9cbdfe
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,9 @@ fi ...@@ -34,6 +34,9 @@ fi
source $EXPPATH"/config" source $EXPPATH"/config"
CURDIR=$(pwd)
cd $EXPPATH"/"data && make -s clean && make -s && cd $CURDIR
TRAIN=$(find $CORPUS -type f -name '*train*.conllu') TRAIN=$(find $CORPUS -type f -name '*train*.conllu')
TRAINRAW=$(find $CORPUS -type f -name '*train*.txt') TRAINRAW=$(find $CORPUS -type f -name '*train*.txt')
DEV=$(find $CORPUS -type f -name '*dev*.conllu') DEV=$(find $CORPUS -type f -name '*dev*.conllu')
...@@ -57,8 +60,14 @@ then ...@@ -57,8 +60,14 @@ then
print_usage_and_exit print_usage_and_exit
fi fi
CURDIR=$(pwd) if [ "$MODE" = "txt" ]; then
cd $EXPPATH"/"data && make -s clean && make -s && cd $CURDIR if test ! -f $TRAINRAW;
then
>&2 echo "ERROR : no train file found in" $CORPUS
>&2 echo "$TRAINRAW"
print_usage_and_exit
fi
fi
MCD=$EXPPATH"/data/*\.mcd" MCD=$EXPPATH"/data/*\.mcd"
......
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