Code For EACL2024 Paper “Exploring the Potential of ChatGPT on Sentence Level Relations: A Focus on Temporal, Causal, and Discourse Relations”
- Install the OpenAI by runing "!pip install openai"
- Download the dataset from the original paper. (e.g.,download PDTB2.0 Dataset from "https://catalog.ldc.upenn.edu/LDC2008T05")
- After downing the dataset, please modify your openai.api_key in line 68 in DiscoChatGPT.py
- Modify your datset file name in line 70 and output in line 80 in DiscoChatGPT.py
- Modify the prompt template based on the prompt templates list in the appendix of our paper