Logo Lanfrica

ClassicCollins/Veralog-Analyst

Type de record:

software
Créateur:
Cla
Hôte:
Bot That Analyses Political developments Across Nigeria # VeraLog - Nigeria's Economic and Political Fact-Checker VeraLog is an AI-powered platform that helps verify posts related to political and economic developments in Nigeria. Powered by **Streamlit**, **huggingface-hub**, **Sentence Transformers**, and **Sklearn**, VeraLog can compare user queries with a pre-trained chatbot model and assess the accuracy of posts by calculating similarity scores and providing a verification status. ## Features - Verify political posts and news in Nigeria. - Assess the credibility of posts related to the economy and leadership. - Instant feedback based on similarity analysis of the user input. - Provides a verification status with labels: `Verified`, `Partly Verified`, `Not Verified`, or `Cannot substantiate this post at this time`. - Uses a local pre-trained model from **SentenceTransformers** and cosine similarity to measure the relevance of responses. ## Requirements To run this project locally, you'll need the following dependencies: - Python 3.8 or higher - Streamlit - SentenceTransformers - Sklearn You can install the required libraries using the following command: ```bash pip install -r requirements.txt ``` Clone this repository to your local machine: ```bash git clone github.com cd veralog ``` start the application by running the following command: ```bash streamlit run app2.py ``` The application will start and will be accessible in your browser at localhost ### How It Works The application uses Streamlit to provide an interactive web interface where users can input political or economic posts to verify. The ChatBot is invoked to retrieve responses, which are then compared to the user input using SentenceTransformers to generate embeddings. Cosine Similarity is used to calculate how close the response is to the user input, and based on the similarity score, a Verification Status is provided. The possible verification statuses are: - `Verified:` When the simila …

Licenses