This directory contains the code related to experiment 2
- Open and run the
telingo-example.ipynb
Jupyter Notebook
- Install the required packages
pip install nl2ltl
- Set your openAI API key
export OPENAI_API_KEY=<your_api_key>
- Run the translator
python3 generate_attack_pattern.py
The implementation of generate_attack_pattern.py
is based on code from nl2ltl
Fuggitti, Francesco, and Tathagata Chakraborti. "NL2LTL–a python package for converting natural language (NL) instructions to linear temporal logic (LTL) formulas." In Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 13, pp. 16428-16430. 2023.