Skip to content

The code implements a spam classification model using LSTM cells. It tokenizes and pads text data, incorporates pre-trained word embeddings, and constructs a neural network with an embedding layer. The model is trained, evaluated, and visualized for accuracy and loss, achieving spam classification on a given dataset.

Notifications You must be signed in to change notification settings

AmmarMohamed0/SPAM_SMS_Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Spam Classification with LSTM

This repository contains a simple spam classification model using a Long Short-Term Memory (LSTM) neural network. The model is built using TensorFlow and Keras.

Overview

The code performs the following tasks:

  • Loads and preprocesses the spam dataset.
  • Utilizes pre-trained GloVe word embeddings for text representation.
  • Builds an LSTM neural network for spam classification.
  • Trains the model and evaluates its performance.
  • Provides a function for making predictions on new text messages.

Dependencies

Make sure to install the required dependencies before running the code: Download pre-trained word vectors(GloVe) from https://nlp.stanford.edu/projects/glove/

About

The code implements a spam classification model using LSTM cells. It tokenizes and pads text data, incorporates pre-trained word embeddings, and constructs a neural network with an embedding layer. The model is trained, evaluated, and visualized for accuracy and loss, achieving spam classification on a given dataset.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published