Code for AAAI 2020 paper "Graph LSTM with Context-Gated Mechanism for Spoken Language Understanding" https://aaai.org/ojs/index.php/AAAI/article/view/6499
- python 3.7
- pytorch >=0.4
- tqdm
- allennlp
For the Snips dataset:
First, you should preprocess data:
python3 preprocess.py
To train the model:
python3 train.py
For the ATIS dataset:
You need to first comment the line in Constants.py:
TAGS = 76 # for Snips
and uncomment the line
# TAGS = 124 # for ATIS
Then the running process is the same as Snips.
Note: Don't forget to set the parameters (e.g., -data) of train.py to the corresponding dataset.
You can also download the preprocessed data and our well-trained model checkpoints from: this link
Extraction Code : ct8x
To use the preprocessed data and model checkpoints:
If the code is helpful to your research, please kindly cite our paper:
@inproceedings{zhang2020graph,
title={Graph LSTM with Context-Gated Mechanism for Spoken Language Understanding.},
author={Zhang, Linhao and Ma, Dehong and Zhang, Xiaodong and Yan, Xiaohui and Wang, Houfeng},
booktitle={AAAI},
pages={9539--9546},
year={2020}
}
Many thanks to them all!