vikasgautam2003's picture
Create README.md
170709c verified
|
Raw
History Blame Contribute Delete
2.32 kB
# πŸ“° Fake or Real News Classifier Using FastText
[![Python](https://img.shields.io/badge/Python-3.10%2B-blue?logo=python)](https://www.python.org/)
[![FastText](https://img.shields.io/badge/Model-FastText-orange?logo=fasttext)](https://fasttext.cc/)
[![Hugging Face](https://img.shields.io/badge/HF-Repository-purple?logo=huggingface)](https://huggingface.co/vikasgautam2003/Text_Classification_Using_FastText)
> ⚑ A **text classification project** that classifies news as **Fake or Real** using **FastText**.
---
## πŸš€ Features
βœ… Train and test a FastText classifier
βœ… Support for CSV datasets
βœ… Preprocessing and simple text tokenization
βœ… Save/load trained FastText model
βœ… Ready for deployment or further experimentation
---
## πŸ› οΈ Tech Stack
- **Model** β†’ FastText
- **Language** β†’ Python 3.10+
- **Libraries** β†’ pandas, fasttext
- **Dataset** β†’ Custom CSV dataset (`ecommerce_dataset.csv`)
---
## πŸ“‚ Project Structure
```bash
β”œβ”€β”€ .ipynb_checkpoints/ # Jupyter notebook checkpoints
β”œβ”€β”€ TextClassification.ipynb # Main notebook
β”œβ”€β”€ TextClassificationPart2.ipynb # Extended analysis notebook
β”œβ”€β”€ requirements.txt # Python dependencies
β”œβ”€β”€ .gitattributes # Git LFS configuration
β”œβ”€β”€ ecommerce.train # Training dataset (LFS)
β”œβ”€β”€ ecommerce.test # Test dataset (LFS)
β”œβ”€β”€ ecommerce_dataset.csv # Full dataset (LFS)
└── README.md # Project documentation
βš™οΈ Setup Instructions
1️⃣ Install Dependencies
pip install -r requirements.txt
2️⃣ Run Training / Evaluation
Open the Jupyter notebooks:
jupyter notebook TextClassification.ipynb
jupyter notebook TextClassificationPart2.ipynb
Make sure to have datasets available locally (ecommerce.train, ecommerce.test, ecommerce_dataset.csv) or tracked via Git LFS.
🎯 Use Cases
Detect fake news in real-time applications
Build NLP portfolio projects
Experiment with FastText embeddings and text classification
πŸ’‘ Future Improvements
Add real-time API for classification
Integrate with Hugging Face Datasets
Hyperparameter tuning for better accuracy
Add visualization dashboards for analysis
πŸ‘¨β€πŸ’» Author
Vikas Gautam