Awesome
NLP Tutorial
A list of NLP(Natural Language Processing) tutorials built on PyTorch. <br><br>
<p align="center"> <img width="350" src="https://raw.githubusercontent.com/pytorch/pytorch/master/docs/source/_static/img/pytorch-logo-dark.png" align="middle"> </p>Table of Contents
A step-by-step tutorial on how to implement and adapt to the simple real-word NLP task.
Text Classification
News Category Classification
This repo provides a simple PyTorch implementation of Text Classification, with simple annotation. Here we use Huffpost news corpus including corresponding category. The classification model trained on this dataset identify the category of news article based on their headlines and descriptions. <br>Keyword: CBoW, LSTM, fastText, Text cateogrization<br>
IMDb Movie Review Classification
This text classification tutorial trains a transformer model on the IMDb movie review dataset for sentiment analysis. It provides a simple PyTorch implementation, with simple annotation. <br>Keyword: Transformer, Sentiment analysis<br>
Question-Answer Matching
This repo provides a simple PyTorch implementation of Question-Answer matching. Here we use the corpus from Stack Exchange to build embeddings for entire questions. Using those embeddings, we find similar questions for a given question, and show the corresponding answers to those I found. <br>Keyword: CBoW, TF-IDF, LSTM with variable-length seqeucnes<br>
Movie Review Classification (Korean NLP)
This repo provides a simple Keras implementation of TextCNN for Text Classification. Here we use the movie review corpus written in Korean. The model trained on this dataset identify the sentiment based on review text. <br>Keyword: TextCNN, Sentiment analysis<br>
<br>Neural Machine Translation
English to French Translation - seq2seq
This neural machine translation tutorial trains a seq2seq model on a set of many thousands of English to French translation pairs to translate from English to French. It provides an intrinsic/extrinsic comparison of various sequence-to-sequence (seq2seq) models in translation. <br>Keyword: sequence to seqeunce network(seq2seq), Attention, Autoregressive, Teacher-forcing<br>
French to English Translation - Transformer
This neural machine translation tutorial trains a Transformer model on a set of many thousands of French to English translation pairs to translate from French to English. It provides a simple PyTorch implementation, with simple annotation. <br>Keyword: Transformer, SentencePiece<br>
<br>Natural Language Understanding
Neural Language Model
This repo provides a simple PyTorch implementation of Neural Language Model for natural language understanding. Here we implement unidirectional/bidirectional language models, and pre-train language representations from unlabeled text (Wikipedia corpus). <br>Keyword: Autoregressive language model, Perplexity<br>