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

Python
FastText
Hugging Face

⚑ 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
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support