Skip to content

A collection of projects built using PyTorch & NLTK implementing Deep Learning Models for NLP-related tasks

Notifications You must be signed in to change notification settings

tezansahu/NLP_Projects

Repository files navigation

NLP Projects

Neural Models for some NLP related tasks implemented using PyTorch


Following are some of the NLP related tasks that I have tried to implement using PyTorch:

Neural Machine Translation

Machine translation is the task of automatically converting source text in one language to text in another language. Neural machine translation, or NMT for short, is the use of neural network models to learn a statistical model for machine translation.

NMT generally uses an Encoder-Decoder RNN structure. To increase the performance, Decoders also use something known as Attention mechanism which enables them to learn to focus on certain portions of the input sentence in order to predict the correct output word in the sequence.

The NMT Model implemented by me uses an Encoder + Attention-based Decoder to try and translate English sentences to Hindi.

The dataset was obtained from Tab-delimited Bilingual Sentence Pairs & can be found here.

Here is the IPython Notebook for the project.

The trained models can be found here: Encoder & Decoder.

References:

Semantic Slot Filling

Semantic slot filling is one of the most challenging problems in spoken language understanding (SLU). Intent Detection and Slot Filling is the task of interpreting user commands/queries by extracting the intent and the relevant slots. The semantic parsing of input utterances in SLU typically consists of three tasks: domain detection, intent determination, and slot filling.

The task at hand is to annotate (tag) each word of a query whether it belongs to a specific item of information (slot), and which one.

The model that I have tried to implement is a recurrent model consisting of an embedding layer, a bidirectional GRU cell, and a dense layer to compute the posterior probabilities.

SNIPS is a dataset by Snips.ai for Intent Detection and Slot Filling benchmarking available from the github page. This dataset contains several day to day user command categories (e.g. play a song, book a restaurant). I have used a slightly pre-processed version of this dataset, which can be found here.

Here is the IPython Notebook for the project

The trained model can be found here.

References:


Created with ❤️ by Tezan Sahu

About

A collection of projects built using PyTorch & NLTK implementing Deep Learning Models for NLP-related tasks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published