Skip to content

maksym-taranukhin/stance_reasoner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stance Reasoner: A Zero-Shot Stance Detection on Social Media with Explicit Reasoning, LREC-COLING 2024

This repository contains the code for the stance reasoner method described in the paper "Stance Reasoner: A Zero-Shot Stance Detection on Social Media with Explicit Reasoning".

Installation

To install the required packages, run the following command in the root directory of the repository:

poetry install --no-root

Usage

Data Preprocessing

In order to build the twitter datasets, you need to set up the Twitter API credentials. To do so, create a .env file in the root directory of the repository and add the following lines:

TWITTER_API_BEARER_TOKEN=<YOUR_TWITTER_API_BEARER_TOKEN>

To prepare the data, run the following command:

bash scripts/preprocess_data.sh

Evaluation

To run the evaluation, run the following command:

bash scripts/evaluate.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published