Skip to content

idirlab/claimcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

ClaimCheck

Overview

ClaimCheck is a fact-checking system that processes claims and verifies their veracity using various modules and models.

Pre-requisites

  1. Create a new Programmable Search Engine in Google:

  2. Get your API key from SerpAPI.

Installation

  1. Clone the repository:

    git clone https://github.com/idirlab/ClaimCheck.git
    cd ClaimCheck
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Update the API keys in the code:

    • Open claim_matching.py and update the Google Cloud API key and CSE ID.
    • Open search.py and update the SerpAPI key.

Usage

To run the fact-checking system from the command line, use the fact-check.py script. It takes two arguments: the path to the JSON file containing the claims and the number of records to process.

Command Line Arguments:

  • json_path: Path to the AVeriTeC JSON file.
  • num_records: Number of claims to run.

Example:

python fact-check.py /path/to/json/file.json 5

Replace /path/to/json/file.json with the actual path to your AVeriTeC JSON file and 5 with the number of records you want to process. You can find AVeriTeC JSON files here.

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages