ClaimCheck is a fact-checking system that processes claims and verifies their veracity using various modules and models.
-
Create a new Programmable Search Engine in Google:
- Go to the Programmable Search Engine and create a new search engine.
- Note down the CSE ID.
- Enable the Custom Search JSON API in the Google Cloud Console.
- Note down the API key.
-
Get your API key from SerpAPI.
-
Clone the repository:
git clone https://github.com/idirlab/ClaimCheck.git cd ClaimCheck -
Install the required dependencies:
pip install -r requirements.txt
-
Update the API keys in the code:
- Open
claim_matching.pyand update the Google Cloud API key and CSE ID. - Open
search.pyand update the SerpAPI key.
- Open
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.
json_path: Path to the AVeriTeC JSON file.num_records: Number of claims to run.
python fact-check.py /path/to/json/file.json 5Replace /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.