# Stage_2 algorithms

## Enviorment Setup

```
conda create -n DSL_completion python==3.9
conda activate DSL_completion
pip install -r requirements.txt
python preprocess.py
python -m spacy download en_core_web_lg
python -m spacy download en_core_web_trf
gdown https://drive.google.com/uc?id=0B7XkCwpI5KDYNlNUTTlSS21pQmM
```

## Run

Please unzip `llm_cache` and copy it along with `llm_embedding` into the root directory of this project.

Execute the following command, and you will obtain the results of all algorithms in stage_2 in the `results` folder.

```
bash run.sh
```

It should be consistent with the corresponding algorithm output in the `AutoDSL-Translation-Resources/results/program_output` folder.