YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
π° Fake or Real News Classifier 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
βββ .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
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support