# DSL-LLM baseline

## Enviorment Setup

```
conda create -n autodsl python==3.8
pip install -r requirements.txt
gdown https://drive.google.com/uc?id=0B7XkCwpI5KDYNlNUTTlSS21pQmM
pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.3/en_core_sci_sm-0.5.3.tar.gz
pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.3/en_core_sci_md-0.5.3.tar.gz
pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.3/en_core_sci_lg-0.5.3.tar.gz
pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.3/en_ner_craft_md-0.5.3.tar.gz
```

## DSL Program Generation

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 translation results of DSL-LLM-SY in the `results` folder.

```
python main.py
```

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