data-ify: add config_annotator.py as a volume in the docker run command

parent 3350847f
......@@ -84,10 +84,10 @@ fi
### Step 2
echo "Running data-ification process..."
docker run --rm -v "$PWD/files/dates_cache":/home/app/files/dates_cache -v "$PWD/files/news":/home/app/files/news asrael/news-annotations bash -c "(cd src/ && python preprocess.py) || exit 1" || exit 1
docker run --rm -v "$PWD/files/dates_cache":/home/app/files/dates_cache -v "$PWD/files/news":/home/app/files/news asrael/news-annotations bash -c "(cd src/ && python extract_dates_save_index.py) || exit 1" || exit 1
docker run --rm -v "$PWD/files/dates_cache":/home/app/files/dates_cache -v "$PWD/files/news":/home/app/files/news asrael/news-annotations bash -c "(cd src/ && python generate_list.py --date \"${target_date}\") || exit 1" || exit 1
docker run --rm -v "$PWD/files/dates_cache":/home/app/files/dates_cache -v "$PWD/files/news":/home/app/files/news asrael/news-annotations bash -c "(cd src/ && python annotate_article.py brat) || exit 1" || exit 1
docker run --rm -v "$PWD/src/config_annotator.py":/home/app/src/config_annotator.py -v "$PWD/files/dates_cache":/home/app/files/dates_cache -v "$PWD/files/news":/home/app/files/news asrael/news-annotations bash -c "(cd src/ && python preprocess.py) || exit 1" || exit 1
docker run --rm -v "$PWD/src/config_annotator.py":/home/app/src/config_annotator.py -v "$PWD/files/dates_cache":/home/app/files/dates_cache -v "$PWD/files/news":/home/app/files/news asrael/news-annotations bash -c "(cd src/ && python extract_dates_save_index.py) || exit 1" || exit 1
docker run --rm -v "$PWD/src/config_annotator.py":/home/app/src/config_annotator.py -v "$PWD/files/dates_cache":/home/app/files/dates_cache -v "$PWD/files/news":/home/app/files/news asrael/news-annotations bash -c "(cd src/ && python generate_list.py --date \"${target_date}\") || exit 1" || exit 1
docker run --rm -v "$PWD/src/config_annotator.py":/home/app/src/config_annotator.py -v "$PWD/files/dates_cache":/home/app/files/dates_cache -v "$PWD/files/news":/home/app/files/news asrael/news-annotations bash -c "(cd src/ && python annotate_article.py brat) || exit 1" || exit 1
### Step 3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment