Skip to content

A Decoder Based Semantic Parser that can be tested on four benchmark datasets (ATIS, GeoQuery, Jobs640 and Django)

License

Notifications You must be signed in to change notification settings

deniz-askin/Decoder-Based-Semantic-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Decoder-Based Semantic Parser

A Decoder-only Transformer that can be tested on 4 different benchmark semantic parsing datasets (ATIS, GeoQuery, DJANGO, Jobs640).

The original Code is from https://colab.research.google.com/github/dlmacedo/starter-academic/blob/master/content/courses/deeplearning/notebooks/tensorflow/transformer.ipynb

Modifications to the code include:

Dropping the Encoder to make it a Decoder-only mechanism.

Added options to use recurrent weights (GRU and LSTM) for the attention weights 
and/or the hidden layer weights as well. Also, label smoothing can be used.

An evaluator for the dataset that creates .txt files containing the accuracy of the test, 
the shuffled train and test sets, and a list of the correct and wrong parses the engine produced.

Simply change the pathfiles to the dataset you would like to use in the file and set the hyperparameters you would like to use.

Requirements

Use the package manager pip to install tensorflow.

pip install tensorflow

About

A Decoder Based Semantic Parser that can be tested on four benchmark datasets (ATIS, GeoQuery, Jobs640 and Django)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages