Coder Social home page Coder Social logo

stancerel's Introduction

StanceRel

Requirements

  • Python 3.8.10
  • PyTorch 1.21.1
  • transformers 4.10.0

Inference

You can directly test the model through

python run_roberta_rel.py

Then you can obtain the results in the test_reuslts.txt such as

results {'disagree-f1': 0.7458323215682784, 'neutral-f1': 0.557027589856837, 'agree-f1': 0.7170068128058874, 'macro-f1': 0.6732889080770009, 'micro-f1': 0.6875956752519801, 'precision': 0.6876456876456877}

Training

You need

python preprocess_graph.py
python train_and_extract_graph_features.py
python run_roberta_rel.py (adding --do_train to the args)

Trained model can be downloaded from : https://drive.google.com/file/d/11YSO_BOpYCDR08FyxjpX3xi7M1O2LmRK/view?usp=sharing

Dataset can be downloaded from : https://scale.com/open-av-datasets/oxford

Cite as :

Yun Luo, Zihan Liu, Stan Z. Li, and Yue Zhang∗. 2023. Improving (Dis)agreement Detection with Inductive Social Relation Information From Comment-Reply Interactions. In Proceedings of the ACM Web Conference 2023 (WWW ’23), May 1–5, 2023, Austin, TX, USA. ACM, New York, NY, USA, 10 pages. https://doi.org/10.1145/3543507.3583314

stancerel's People

Contributors

luoxiaoheics avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.