Giter Site home page Giter Site logo

claimrev's Introduction

ClaimRev

This repository contains the code associated with the following paper:

Learning From Revisions: Quality Assessment of Claims in Argumentation at Scale by Gabriella Skitalinskaya, Jonas Klaff, Henning Wachsmuth

Reproducing results

Models

You can download our finetuned models directly from here. Or you can finetune them as described below:

Classification

To train the bert model in a random split setup using the ClaimRev-BASE corpus:

python run_exp1_bert.py \
  --input_data './data/base.csv' \
  --pretrained_model 'bert-base-cased' \
  --batch_size 16 \
  --lr '1e-5' \
  --save_best 'True' \
  --output_dir './output/exp1_bert_random_base/' \
  --exp_setup 'random'

To train the sbert model in a random split setup using the ClaimRev-BASE corpus:

python run_exp1_sbert.py \
  --input_data './data/base.csv' \
  --pretrained_model 'bert-base-cased' \
  --batch_size 16 \
  --lr '1e-5' \
  --output_dir './output/exp1_sbert_random_base/' \
  --exp_setup 'random'

To change setup to cross-category, set the exp_setup argument to 'cc' instead of 'random'. To use ClaimRev-EXT change the input_data argument to './data/extended.csv'

Ranking

BTL ranking model (with bert and sbert accordingly):

python run_btl.py \
    --prediction_dir './output/exp1_bert_random_base/' \
    --input_data './data/base.csv' \
    --output_file 'btl_bert.txt' \
    --exp_setup 'random' \
    --model 'bert'
python run_btl.py \
    --prediction_dir './output/exp1_sbert_random_base' \
    --input_data './data/base.csv' \
    --output_file 'btl_sbert.txt' \
    --exp_setup 'random' \
    --model 'sbert'

SVMRANK ranking model (with bert and sbert embeddings accordingly):

python run_svmrank.py \
    --input_data './data/full_list.csv'\
    --pretrained_model './output/exp1_bert_random_base' \
    --emb_output_file './data/emb/bert.csv' \
    --output_file 'svm_bert_base.txt' \
    --model_type 'bert'
python run_svmrank.py \
    --input_data './data/list_full.csv'\
    --pretrained_model './output/exp1_sbert_random_base' \
    --emb_output_file './data/emb/sbert.csv' \
    --output_file 'svm_sbert_base.txt'
    --model_type 'sbert'

Before running SVMRank-related experiments, follow the instructions to installing PySVMRank as described here.

Data

In order to obtain access to the ClaimRev corpus, please reach out to Gabriella Skitalinskaya (email can be found in paper) along with your affiliation and a short description of how you will be using the data. Please let us know if you have any questions.

Citation

If you use this corpus or code in your research, please include the following citation:

@inproceedings{skitalinskaya-etal-2021-learning,
    title = "Learning From Revisions: Quality Assessment of Claims in Argumentation at Scale",
    author = "Skitalinskaya, Gabriella  and
      Klaff, Jonas  and
      Wachsmuth, Henning",
    booktitle = "Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume",
    month = apr,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.eacl-main.147",
    pages = "1718--1729",
}

claimrev's People

Contributors

gabriellasky avatar

Stargazers

徐慧文 avatar Ramon R.D. avatar

Watchers

 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.