Giter Site home page Giter Site logo

sinanuozdemir / oreilly-bert-hands-on-nlp Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 21.0 3.77 MB

This repository contains code for the O'Reilly Live Online Training for Hands on Transfer Learning with BERT

Home Page: https://learning.oreilly.com/live-events/hands-on-transfer-learning-for-nlp-with-bert/0636920061282/0636920061281/

Jupyter Notebook 98.82% CSS 0.07% HTML 0.05% JavaScript 0.61% Python 0.46%
nlp bert machine-learning artificial-intelligence deep-learning transfer-learning

oreilly-bert-hands-on-nlp's Introduction

oreilly-logo

BERT Transformer Architecture for NLP

This repository contains code for the O'Reilly Live Online Training for Hands on Transfer Learning with BERT

This training will focus on implementing BERT to solve a variety of modern NLP tasks including information retrieval, sequence classification / regression, and question/answering tasks. The training will begin with a refresher on the BERT architecture and how BERT learns to model language. We will then move into examples of fine-tuning BERT on domain-specific corpora and using pre-trained models to perform NLP tasks out of the box.

BERT is one of the most relevant NLP architectures today and it is closely related to other important NLP deep learning models like GPT-3. Both of these models are derived from the newly invented transformer architecture and represent an inflection point in how machines process language and context.

The Natural Language Processing with Next-Generation Transformer Architectures series of online trainings provides a comprehensive overview of state-of-the-art natural language processing (NLP) models including GPT and BERT which are derived from the modern attention-driven transformer architecture and the applications these models are used to solve today. All of the trainings in the series blend theory and application through the combination of visual mathematical explanations, straightforward applicable Python examples within hands-on Jupyter notebook demos, and comprehensive case studies featuring modern problems solvable by NLP models. This training is part of a series and assumes that the attendee is coming in with knowledge from BERT Transformer Architecture for NLP training. (Note that at any given time, only a subset of these classes will be scheduled and open for registration.)

Notebooks

Classification with BERT

Spelling / Grammar with BERT

Question/Answering with BERT

Information Retrieval with BERT

3rd Part BERT Models

Twitter Chrome Extension

To run this requires some additional work

Installation

  1. Make sure you have flask installed (it is in the requirements.txt)
  2. Install ngrok to generate a secure tunnel to your local app

Running the App

  1. From the twitter-bert-flask-app directory, run python app.py to start your local flask app
  2. Test the app by going to [http://localhost:5050/classify?tweet=this earthquake is causing such devastation](http://localhost:5050/classify?tweet=this earthquake is causing such devastation)
  3. Run ngrok to create a secure tunnel ngrok http 5050. This will make a random tunnel each time unless you pay for subdomains (I recommend it if you use ngrok frequently)
  4. In twitter.js, change twitter-bert.ngrok.io to whatever subdomain your ngrok has chosen on startup
  5. In chrome, navigate to chrome://extensions and click on Load unpacked. To do this, you must have Developer Mode on ont he top right of this page.

chrome-extension 6. Navigate to twitter and see it work! twitter

  • Red borders indicate a probability of >= 90% of the tweet being about a disaster
  • Yellow borders indicate a probability of >= 50% of the tweet being about a disaster
  • Green borders indicate a probability of < 50% of the tweet being about a disaster

Instructor

Sinan Ozdemir is currently the Director of Data Science at Directly, managing the AI and machine learning models that power the company’s intelligent customer support platform. Sinan is a former lecturer of Data Science at Johns Hopkins University and the author of multiple textbooks on data science and machine learning. Additionally, he is the founder of the recently acquired Kylie.ai, an enterprise-grade conversational AI platform with RPA capabilities. He holds a Master’s Degree in Pure Mathematics from Johns Hopkins University and is based in San Francisco, CA.

oreilly-bert-hands-on-nlp's People

Contributors

sinanuozdemir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.