Git Product home page Git Product logo

jo-valer / fact-checking-ita-abstention Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 4.48 MB

Official repository of our AILC CLiC-it 2023 paper When You Doubt, Abstain: A Study of Automated Fact-checking in Italian Under Domain Shift.

Home Page: https://ceur-ws.org/Vol-3596/paper50.pdf

License: MIT License

Python 86.56% Shell 13.44%
automated-fact-checking domain-shift fact-checking italian-nlp nlp semantic-search claim-ambiguity model-abstention

fact-checking-ita-abstention's Introduction

Automated Fact-checking in Italian Under Domain Shift

MIT License

This repository contains code and data associated with the CLiC-it 2023 paper:

Giovanni Valer, Alan Ramponi and Sara Tonelli. 2023. When You Doubt, Abstain: A Study of Automated Fact-checking in Italian Under Domain Shift. In Proceedings of the Ninth Italian Conference on Computational Linguistics, Venice, Italy. CEUR.org. [cite] [paper]

Getting started

To get started, clone this repository on your own path:

git clone https://github.com/jo-valer/fact-checking-ita-abstention.git

Environment

Create an environment with your own preferred package manager. We used python 3.9.13 and dependencies listed in requirements.txt. If you use conda, you can just run the following commands from the root of the project:

conda create --name fact-checking-ita-abstention python=3.9.13    # create the environment
conda activate fact-checking-ita-abstention                       # activate the environment
pip install --user -r requirements.txt                            # install the required packages

Data

In the data/controlsets/ folder is the X-Fact dataset (Gupta and Srikumar, 2021) [repository], already filtered to contain examples in Italian only and without instances labeled as complicated. The resulting files are described below, using the notation introduced in the paper:

  • train.tsv: TRAIN
  • train_dev.tsv: TRAIN + DEV
  • train_dev_id.tsv: TRAIN + DEV + TESTid
  • train_dev_id_ood.tsv: TRAIN + DEV + TESTid + TESTood
  • train_dev_ood.tsv: TRAIN + DEV + TESTood

In the data/testsets/ folder are the challenge test sets, annotated according to our claim ambiguity categorization (see the paper for more details). The columns news-like and social-like contain the rewritten versions of the original claim (i.e., column claim), whereas the ambiguity column indicates the ambiguity label for the claim. The files are the following:

  • in_domain.tsv: in-domain test set (all genres: original, news-like, and social-like)
  • out_of_domain.tsv: out-of-domain test set (all genres: original, news-like, and social-like)

Replicating the experiments

Run the experiments in a controlled setup:

cd src
./experiments.sh . ../data/testsets/ ../data/controlsets/ 1     # in-domain test
./experiments.sh . ../data/testsets/ ../data/controlsets/ 3     # out-of-domain test

Run the experiments in a non-controlled setup:

cd src
./experiments.sh . ../data/testsets/ ../data/controlsets/ 0     # in-domain test
./experiments.sh . ../data/testsets/ ../data/controlsets/ 2     # out-of-domain test

The results are saved in the results/ folder.

Citation

If you use or build on top of this work, please cite our paper as follows:

@inproceedings{valer-etal-2023-when,
    title={When You Doubt, Abstain: {A} Study of Automated Fact-checking in {I}talian Under Domain Shift},
    author={Valer, Giovanni and Ramponi, Alan and Tonelli, Sara},
    booktitle={Proceedings of the 9th Italian Conference on Computational Linguistics},
    publisher={CEUR-ws.org},
    year={2023},
    month={november},
    address={Venice, Italy}
}

fact-checking-ita-abstention's People

Contributors

jo-valer avatar

Stargazers

 avatar

Watchers

 avatar  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.