A machine learning pipeline for detecting fake news and misinformation using NLP techniques.
This project builds a text authenticity classifier that:
- Detects fake news articles with high accuracy
- Uses TF-IDF vectorization for text feature extraction
- Implements ensemble classification methods
# Clone the repository
git clone https://github.com/dlifeofjay/text_authenticity.git
cd text_authenticity
# Install dependencies
pip install -r requirements.txt
# Run inference
python text_aut.pytext_authenticity/
├── Fake News Detector.ipynb # Training & analysis
├── text_aut.py # Inference script
├── text_aut.joblib # Trained model
├── text_cv.joblib # Count vectorizer
├── text_OrdEnc.joblib # Ordinal encoder
└── requirements.txt # Dependencies
- Text Preprocessing: Cleaning, tokenization, stopword removal
- Feature Extraction: TF-IDF / Count Vectorization
- Classification: Ensemble methods for robust detection
- Evaluation: Accuracy, precision, recall, F1-score
The model achieves strong performance in distinguishing authentic news from fabricated content.
Jubril Ifekoya - Data Scientist & ML Engineer