GithubHelp home page GithubHelp logo

muskanmahajan37 / sentimental-analysis-using-bert Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cipheraxat/sentimental-analysis-using-bert

0.0 0.0 0.0 2.14 MB

Sentimental analysis using BERT implemented using pytorch

Jupyter Notebook 100.00%

sentimental-analysis-using-bert's Introduction

Sentimental-analysis-using-BERT

Prerequisites

  • Intermediate-level knowledge of Python 3 (NumPy and Pandas preferably, but not required)
  • Exposure to PyTorch usage
  • Basic understanding of Deep Learning and Language Models (BERT specifically)

Project Outline

Step 1: Introduction (this section)

Step 2: Exploratory Data Analysis and Preprocessing

Step 3: Training/Validation Split

Step 4: Loading Tokenizer and Encoding our Data

Step 5: Setting up BERT Pretrained Model

Step 6: Creating Data Loaders

Step 7: Setting Up Optimizer and Scheduler

Step 8: Defining our Performance Metrics

Step 9: Creating our Training Loop

Step 10: Loading and Evaluating our Model

Introduction

What is BERT

BERT is a large-scale transformer-based Language Model that can be finetuned for a variety of tasks.

For more information, the original paper can be found here.

HuggingFace documentation

Bert documentation ;)

Bert architecture

Exploratory Data Analysis and Preprocessing

I used the SMILE Twitter dataset.

Wang, Bo; Tsakalidis, Adam; Liakata, Maria; Zubiaga, Arkaitz; Procter, Rob; Jensen, Eric (2016): SMILE Twitter Emotion dataset. figshare. Dataset. https://doi.org/10.6084/m9.figshare.3187909.v2

Defining our Performance Metrics

Accuracy metric approach originally used in accuracy function in this tutorial.

Creating our Training Loop

Approach adapted from an older version of HuggingFace's run_glue.py script. Accessible here.

sentimental-analysis-using-bert's People

Contributors

cipheraxat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.