Skip to content

Mohamed-Devp/sentiment-classification-with-transformers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment classification with a transformer

Table of Contents

Overview

This project demonstrates the training of a transformer model from scratch on the IMDB dataset. the model task is to classify reviews as positive of negative.

Dataset

The dataset used in this project is the IMDB Dataset of 50K Movie Reviews from Kaggle. The dataset contains 50k reviews labeled as positive or negative.

Model

The model used in this project is a standard transformer model:

Model Architecture

Installation

To run this project, you need to have Python installed along with the required libraries. You can install the necessary dependencies using the following command:

pip install -r requirements.txt

Usage

To train and test the model, run the main.ipynb notebook. This notebook contains all the steps from data preprocessing, model training, and evaluation.

Contributing

Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.

About

Train and evaluate a transformer model on the IMDB reviews dataset.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published