GithubHelp home page GithubHelp logo

shawonashraf / nlu-jointbert-dl2021 Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 587 KB

Repository for the course project of Deep Learning for Speech and Natural Language Processing at Universität Stuttgart.

Jupyter Notebook 76.12% Python 23.88%
tensorflow nlu bert classification slot-filling intent-classification class-project python

nlu-jointbert-dl2021's Introduction

nlu-jointbert-dl2021

Repository for the course project of Deep Learning for Speech and Natural Language Processing at Universität Stuttgart. Winter 2020-2021.

Open In Colab

Task

Natural Language Understanding

Data

Custom dataset provided by the instructors.

Dataset properties

{
  "text": "",
  "positions": [{}],
  "slots": [{}],
  "intent": ""
}

Model Description

Inputs: text

Labels: slots, intents

Pretrained model in use: bert-base-cased from Huggingface Transformers.

ENV Setup

pip install -r requirements.txt

Sample prediction output

Input

add kansas city, missouri to Stress Relief

Output

{
  "intent": "AddToPlaylist",
  "slots": {
    "playlist": "Stress Relief",
    "entity_name": "kansas city, missouri"
  }
}

Run

python main.py <gpu_id>
# use gpu_id from nvidia-smi for multi-gpu systems
# for single gpu, use 0

Reference

  1. Chen et al. (2019), BERT for Joint Intent Classification and Slot Filling. https://arxiv.org/abs/1902.10909

  2. https://github.com/monologg/JointBERT

nlu-jointbert-dl2021's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

maddurup

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.