Giter Site home page Giter Site logo

gl-gin's Introduction

GL-GIN: Fast and Accurate Non-Autoregressive Model for Joint Multiple Intent Detection and Slot Filling

This repository contains the official PyTorch implementation of the paper: Libo Qin, Fuxuan Wei, Tianbao Xie, Xiao Xu, Wanxiang Che, Ting Liu.

If you use any source codes or the datasets included in this toolkit in your work, please cite the following paper. The bibtex are listed below:

@misc{qin2021glgin,
      title={GL-GIN: Fast and Accurate Non-Autoregressive Model for Joint Multiple Intent Detection and Slot Filling}, 
      author={Libo Qin and Fuxuan Wei and Tianbao Xie and Xiao Xu and Wanxiang Che and Ting Liu},
      year={2021},
      eprint={2106.01925},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

In the following, we will guide you how to use this repository step by step.

Architecture

framework

Results

results

Preparation

Our code is based on PyTorch 1.2 Required python packages:

  • numpy==1.19.1
  • tqdm==4.50.0
  • pytorch==1.2.0
  • python==3.6.12
  • cudatoolkit==9.2
  • fitlog==0.7.1
  • ordered-set==4.0.2

We highly suggest you using Anaconda to manage your python environment.

How to run it

The script train.py acts as a main function to the project, you can run the experiments by the following commands.

# MixATIS_clean dataset (ON GeForce RTX2080TI)
python train.py -g -bs=16 -dd=./data/MixATIS_clean  -sd=./save/MixATIS_clean -nh=4 -wed=128 -ied=128 -ehd=256 -sdhd=128 -dghd=64 -nldg=2 -sgw=2 -ne=200

# MixSNIPS_clean dataset (ON TITAN Xp)
python train.py -g -bs=16 -dd=./data/MixSNIPS_clean  -sd=./save/MixSNIPS_clean -nh=8 -wed=64 -ied=128 -ehd=256 -sdhd=128 -dghd=128 -nldg=2 -sgw=1 -ne=100

You can directly load the best models we saved:

# MixATIS_clean dataset
python train.py -g -ne=0 -dd=./data/MixATIS_clean -sd=./save/MixATIS_best

# MixSNIPS_clean dataset
python train.py -g -ne=0 -dd=./data/MixSNIPS_clean -sd=./save/MixSNIPS_best

If you have any question, please issue the project or email me or fuxuanwei and we will reply you soon.

gl-gin's People

Contributors

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