# Directory

* `ILQL_main/` contains the code for this paper. Read the `README.md` file in `ILQL_main/` for details on this paper's code.
* `visdial-rl/` contains the code for the Visual Dialogue environment, which `ILQL_main/` interacts with through an http webserver.

Download the data files from the Google drive folder [here](https://drive.google.com/drive/folders/1oL9ZoUtL3oTx7aBTXv5EDGVN0tPoAUy9?usp=sharing). Place the downloaded and unzipped files in the same reletive location in the project as they are in the drive folder.

If you are only concerned with the Wordle or Reddit comment experiments, you can ignore the `visdial-rl/` directory and everything below and just go stright to `ILQL_main/`.

If however you want to run Visual Dialogue experiments, then follow the steps here to setup the Visual Dialogue webserver environment (you can largely ignore the `README.md` file inside the `visdial-rl/` folder).

1. `cd visdial-rl/`
2. setup a new python environment as you wish
3. `pip install -r requirements.txt`
4. `sudo apt-get update`
5. `sudo apt-get install redis`
6. `python serve_model.py -useGPU -startFrom checkpoints/abot_sl_ep60.vd -qstartFrom checkpoints/qbot_sl_ep60.vd`

That's it! The Visual Dialogue environment should be accessible on port 5000 on localhost.

*Make sure that the port is set fo 5000 in the config for the script in `ILQL_main/` you are planning to run.*
