Skip to content

A custom state of the art transformer for text classification. It classifies long text (500-1000 words) hotel reviews) into binary sentiment classes i.e. positive or negative.

Notifications You must be signed in to change notification settings

Directorman9/Transformer-for-text-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

Transformer for text classification

It is well known that models such as Multilayer perceptrons (MLP) and convolutonal neural nets do not perform well when it comes to learning from long text snippets (They fails to capture the long term dependencies betwen words). LSTM tries to mitigate the problem but falls short for longer texts. In this notebook I train a custom transformer to aid the binary classification of long text. The dataset used is the IMDB movie reviews dataset. The dataset has an average of 323 words per review. The task is to classify each review as either holding a positive or negative sentiment.For more details have a look at the notebook

About

A custom state of the art transformer for text classification. It classifies long text (500-1000 words) hotel reviews) into binary sentiment classes i.e. positive or negative.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published