Coder Social home page Coder Social logo

ajnavneet / bert-text-classification-agnews Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.34 MB

Text classification on AG News dataset using the state-of-the-art transformer model BERT.

License: MIT License

Jupyter Notebook 99.86% Python 0.14%
bert-model news-classification text-classification

bert-text-classification-agnews's Introduction

BERT-Powered News Text Classification

BERT, a cutting-edge transformer model, has proven its prowess in complex NLP tasks, such as NLU, NLG, Sentiment Analysis, and Text Classification. Its exceptional performance often surpasses human capabilities.


Objective

Conduct text classification on the AG News dataset using the state-of-the-art transformer model, BERT.


Data Description

The AG News dataset (AG’s News Corpus) is a subset of AG's corpus, constructed by combining titles and description fields from articles in the four major classes: "World," "Sports," "Business," and "Sci/Tech" of AG’s Corpus.


Installation

  1. Install the required packages specified in the requirements.txt file.

    For Anaconda:

    conda create --name <yourenvname>
    conda activate <yourenvname>
    pip install -r requirements.txt

    For Python Interpreter:

    pip install -r requirements.txt
  2. The entire repository is modularized into distinct sections, each handling specific tasks. Start by navigating to the src folder.

    Within src:

    • ML_Pipeline: Contains modules with function declarations for various Machine Learning tasks.
    • engine.py: The core of the project, orchestrating all function calls.
  3. Run/Debug the engine.py file, and the necessary steps will be automated according to the defined logic.

  4. Input datasets are stored in the input folder.

  5. Predictions and models are saved in the output folder.


bert-text-classification-agnews's People

Contributors

ajnavneet avatar

Watchers

 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.