NegativePrompt
1.0.0
负面影响的代码发布:通过负面情绪刺激增强大语言模型的心理学(IJCAI 2024)
首先,克隆回购:
git clone git@https://github.com/wangxu0820/NegativePrompt然后,
cd NegativePrompt要安装所需的软件包,您可以创建一个Conda环境:
conda create --name negativeprompt python=3.9然后使用PIP安装所需的软件包:
pip install -r requirements.txtpython main.py --task task_name --model model_name --pnum negativeprompt_id --few_shot False如果您发现此项目对您的研究有帮助,请引用我们:
@misc{wang2024negativeprompt,
title={NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli},
author={Xu Wang and Cheng Li and Yi Chang and Jindong Wang and Yuan Wu},
year={2024},
eprint={2405.02814},
archivePrefix={arXiv},
primaryClass={cs.CL}
}