JournalismAI 2024 project.
Store API keys in file credentials.json with the following structure:
{
"claimbuster_api_key": "...",
"google_fact_check_api_key": "..."
}
- Add following to top of
claim_extractor/extractors/__init__.py:import collectionscollections.Callable = collections.abc.Callable
- Add below imports of
claim_extractor/extractors/fullfact.py:nltk.download('stopwords')nltk.download('punkt')nltk.download('averaged_perceptron_tagger')nltk.download('wordnet')
- Add try-excepts in
claim_extractor/extractors/politifact.py:except AttributeErrorfor bothclaim.set_claim(line 73) andclaim.set_title(line 77)
- Requirements:
pip install -r requirements.txtpip install lxml_html_cleanpip install nltk
- Install & build Redis database:
brew install redisredis-server
python Exporter.py --website fullfact,politifact,checkyourfact,eufactcheck --maxclaims 10