Skip to content
Snippets Groups Projects
Select Git revision
  • 2021
  • 2023 default
  • pages protected
  • 2022-matse
  • 2022
  • 2019
  • master
7 results

.gitmodules

Blame
  • run.sh 1.60 KiB
    #!/usr/bin/env bash
    
    echo -----------------------------------------------------
    echo Welcome to AQ-Bench! What would you like to run?
    echo Remember, you have to run prepare before you run anything else!
    
    task="none"
    positive_output="-> -> -> I will do "
    
    while [ $task != "exit" ]
    do
        echo
        echo ----------------------------------------------
        echo You can choose from:
        echo prepare
        echo test
        echo retrieval
        echo sanitycheck
        echo preanalysis
        echo mapping
        echo exit
        echo
        echo Please type what you like to do:
        echo
        read task
        echo
    
        if [[ $task == "prepare" ]]
        then
            echo $positive_output $task
            echo
            source prepare.sh
        elif [[ $task == "test" ]]
        then
            echo $positive_output $task
            echo
            cd test
            for f in *.py; do python -m pytest "$f"; done
            cd ..
        elif [[ $task == "retrieval" ]]
        then
            echo $positive_output $task
            echo
            cd source
            python dataset_retrieval.py
            cd ..
        elif [[ $task == "sanitycheck" ]]
        then
            echo $positive_output $task
            echo
            cd source
            python dataset_sanitycheck.py
            cd ..
        elif [[ $task == "preanalysis" ]]
        then
            echo $positive_output $task
            echo
            cd source
            python dataset_preanalysis.py
            cd ..
        elif [[ $task == "mapping" ]]
        then
            echo $positive_output $task
            echo
            cd source
            python mapping_sklearn.py
            cd ..
        elif [[ $task == "exit" ]]
        then
            echo
        else
        	echo Undefined input!
        fi
        
    done