Skip to content

Repository files navigation

nlp-tutorial

nlp-tutorial is a tutorial for who is studying NLP(Natural Language Processing) using TensorFlow and Pytorch. Most of the models in NLP were implemented with less than 100 lines of code.(except comments or blank lines)

Curriculum - (Example Purpose)

1. Basic Embedding Model

2. CNN(Convolutional Neural Network)

3. RNN(Recurrent Neural Network)

4. Attention Mechanism

5. Model based on Transformer

ModelExampleFrameworkLines(torch/tensor)
NNLMPredict Next WordTorch, Tensor67/83
Word2Vec(Softmax)Embedding Words and Show GraphTorch, Tensor77/94
TextCNNSentence ClassificationTorch, Tensor94/99
TextRNNPredict Next StepTorch, Tensor70/88
TextLSTMAutocompleteTorch, Tensor73/78
Bi-LSTMPredict Next Word in Long SentenceTorch, Tensor73/78
Seq2SeqChange WordTorch, Tensor93/111
Seq2Seq with AttentionTranslateTorch, Tensor108/118
Bi-LSTM with AttentionBinary Sentiment ClassificationTorch, Tensor92/104
TransformerTranslateTorch222/0
Greedy Decoder TransformerTranslateTorch246/0
BERThow to trainTorch242/0

Dependencies

  • Python 3.5+
  • Tensorflow 1.12.0+
  • Pytorch 0.4.1+
  • Plan to add Keras Version

Author

About

Natural Language Processing Tutorial for Deep Learning Researchers

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages