This repository is the official implementation of Evaluating Paradox Resolution Capability of Large Language Models.
To install requirements:
pip install -r requirements.txt
Please replace the api_key with your personal API key. (generate.py, data_check.py)
python clean.py
python generate.py
python abstract.py
python data_check.py
python GPT4o_test_answer.py paradox_dataset.csv
The dataset file is task1.json
To parse the dataset and extract its answer:
python parse_answer.py
To evaluate the model's performance on the dataset, using the GLM-4-Plus model as a case study: Please replace the api_key with your personal API key.
python glm_test.py paradox_dataset.csv
To evaluate the scores of the model-generated answers, run: Please replace the api_key with your personal API key.
python parse_model.py
python model_eval_glm4.py
python score_statistics.py
Please replace the api_key with your personal API key.
python hard_answer.py
The dataset file is task2.json
To parse the dataset and extract its answer:
python task2_parse_answer.py
To evaluate the model's performance on the dataset, using the GLM-4-Plus model as a case study: Please replace the api_key with your personal API key.
python task2_answer_glm4.py
To evaluate the scores of the model-generated answers, run: Please replace the api_key with your personal API key.
python task2_parse_glm4.py
python task2_eval_glm4.py
python task2_score_statistics.py
Released under MIT License
Copyright (c) 2025 Bin Chen.
Copyright (c) 2025 Hongfei Ye.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.