Skip to content

MhmdSaiid/expclaim

 
 

Repository files navigation

ExpClaim

ExpClaim tackles the problem of fact checking for facts (claims) passed as triples. It uses external resources and logical rules to create interpretable explanations of its assessement of an input claim.

This repository contains the code used for the experiments in the paper Explainable Fact Checking with Probabilistic Answer Set Programming

Installation

ExpClaim requires python 3 to run.

$ git clone https://github.com/ppapotti/ExpClaim.git
$ bash install.sh

The reasoner uses Clingo 5 and its Python interface to solve the given programs. As the result, user needs to install addtional Clingo Python support. Please consult: https://potassco.org/clingo/ for how to install Clingo Python support.

Running the test

$ python scripts/test.py --relation spouse  --num_claims 2 --bing_evidence 0 --inference_mode 'ASP'
  • --relation: specifies which predicate to use
  • --rule_threshold: specifies the threshold for the weights of the rules
  • --MF: multiplicative factor for the weights
  • --claim_gen_mode: There are two ways for generating claims: 1)'random' which generates claims randomly 2)'grounded' which ensures that each claim has at least one satisfied rule.
  • --num_claims: The number of claims to use
  • --bing_evidence: If set to 1,then use evidence from bing web module. If set to 0, then just use knowledge base evidence.
  • --bing_evid_thresh: specifies the threshold for the weights of the bing evidence
  • --inference_mode: specifies the onference algorithm used.('ASP' or 'MAP')

Inside each experiment directory, you will have a csv file containing the result for each claim and another csv file showing the F_score.

Contacts

For any inquiries, please contact:

License

MIT

About

ExpClaim fact checks claims passed as triples with interpretable explanations of its assessement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 83.7%
  • Makefile 7.7%
  • C 2.9%
  • Prolog 2.2%
  • CMake 2.0%
  • Python 0.6%
  • Other 0.9%