MhmdSaiid / expclaim

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

Home Page:https://arxiv.org/abs/1906.09198

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://arxiv.org/abs/1906.09198


Languages

Language:C++ 83.7%Language:Makefile 7.7%Language:C 2.9%Language:Prolog 2.2%Language:CMake 2.0%Language:Python 0.6%Language:Yacc 0.6%Language:Shell 0.3%Language:CSS 0.0%Language:Perl 0.0%Language:Haskell 0.0%Language:Batchfile 0.0%Language:Lua 0.0%