This repo is the implemention of our paper "Infusing Wikipedia Knowledge to Enhance Stance Detection", where we propose to utilize the background knowledge from Wikipedia about the target to improve stance detection.
In this paper, we experiment on three datasets: PStance, COVID19-Stance, and VAST.
Install Pytorch and Huggingface Transformers.
PStance, target-specific stance detection, Biden
python run_pstance_biden.py
COVID19-Stance, target-specific stance detection, face mask
python run_covid_fauci.py
PStance, cross-target stance detection, Biden $\rightarrow$ Sanders
python run_pstance_biden2sanders.py
VAST, zero/few-shot stance detection
python run_vast.py
@inproceedings{he2022infusing,
title={Infusing Knowledge from Wikipedia to Enhance Stance Detection},
author={He, Zihao and Mokhberian, Negar and Lerman, Kristina},
booktitle={Proceedings of the 12th Workshop on Computational Approaches to Subjectivity, Sentiment \& Social Media Analysis},
pages={71--77},
year={2022}
}