Skip to content

aliakyurek/nlp-zero-to-hero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLP

Step by step NLP examples using PyTorch and Lightning

  1. Character Generation with LSTMCell Open In Colab
  • Character RNN that's trained with a covid_19 faq file
  • After training, it generates text based on a prime input.
  • Generated text and loss values are recorded to and observed
  1. Character Generation with LSTM Open In Colab
  • Same as above but this time it uses LSTM block
  1. Language translation with LSTM Open In Colab
  • Seq2Seq training and inference using LSTM layer
  1. Language translation with GRU Open In Colab
  • Same as above but utilizes GRU instead of LSTM and more input used for GRU and decoder outputs
  1. Language translation with Bahdanau attention Open In Colab
  • Same as above but utilizes Bahdanau attention (not self attention) using bidirectional GRU
  1. Language translation with padding optimization Open In Colab
  • Same as above but utilizes pack_padded_sequence, pad_packed_sequence, and source masking in attention to optimize paddings
  1. Language translation with transformers Open In Colab
  • Basic implementation of transformer architecture for translation problem

References

About

NLP examples from simple RNN to Transformers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published