A web-based application that predicts the category of news headlines using a trained deep learning model. β¨
This project demonstrates Natural Language Processing (NLP) techniques, including:
- π€ Text Preprocessing β Clean and prepare text data
- βοΈ Tokenization β Convert text into sequences for the model
- π Sequence Padding β Ensure uniform input length for the neural network
- π Word Embeddings (GloVe) β Use pre-trained embeddings to represent words
π§ The model is built using TensorFlow/Keras and can classify headlines into multiple categories.
- Predict the category of any news headline in real-time
- Built with Streamlit for an interactive web interface
The app requires the following Python packages:
- tensorflow==2.19.0
- numpy==2.0.2
- scikit-learn==1.6.1
- pandas==2.2.2
- matplotlib==3.10.0
- seaborn==0.13.2
- nltk==3.9.1
- streamlit==1.37.0
- Clone this repository:
git clone https://github.com/AMANPATEL-1234/News_Headline_Predictor- Install dependencies:
pip install -r requirements.txt3.Run the Streamlit app:
streamlit run app.pyπ Repository Structure
βββ app.py
βββ news_model.h5
βββ tokenizer.pkl
βββ label_encoder.pkl
βββ requirements.txt
βββ runtime.txt
βββ README.md
For any queries or collaboration, feel free to reach out:
π± Phone: +91-6392505818
βοΈ Email: amanpatel639250@gmail.com