Commit bb5760ff authored by Duc Cao's avatar Duc Cao

Helper scripts to run Docker

parent 39e84026
option=$1
if [ "$option" == "evaluate" ]; then
input_folder=$2
sudo rm -rf data
sudo mkdir -p data/labeled
sudo cp -r $input_folder data/labeled
sudo docker run -v `pwd`/data:/default/data \
source-extractor evaluate
python3 evaluate.py
fi
if [ "$option" == "extract" ]; then
input_folder=$2
output_folder=${3:-data/out}
num_threads=${4:-4}
sudo rm -rf data
sudo mkdir -p data
sudo cp -r $input_folder data
sudo docker run -v `pwd`/data:/default/data \
source-extractor extract data/$input_folder $output_folder $num_threads
fi
sudo docker rm $(sudo docker ps -qa)
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