Skip to content

Latest commit

 

History

History
101 lines (64 loc) · 5.26 KB

File metadata and controls

101 lines (64 loc) · 5.26 KB

nlp-models

This nlp-models project is a tutorial for who is studying NLP(Natural Language Processing) using TensorFlow , Pytorch and keras , most of the models in NLP were implemented with less than 200 lines of code.

Catalog

1. Basic Embedding Model

2. CNN(Convolutional Neural Network)

3. RNN(Recurrent Neural Network)

4. Attention Mechanism

5. Model based on Transformer


Table presentation

Model Example Framework
NNLM Predict Next Word Torch, Tensor
Word2Vec(Softmax) Embedding Words and Show Graph Torch, Tensor
TextCNN Sentence Classification Torch, Tensor
TextRNN Predict Next Step Torch, Tensor
TextLSTM Autocomplete Torch, Tensor
Bi-LSTM Predict Next Word in Long Sentence Torch, Tensor
Seq2Seq Change Word Torch, Tensor
Seq2Seq with Attention Translate Torch, Tensor
Bi-LSTM with Attention Binary Sentiment Classification Torch, Tensor
Transformer Translate Torch
Greedy Decoder Transformer Translate Torch
BERT how to train Torch

Dependencies

  • Python 3.5+
  • Tensorflow 1.12.0+
  • Pytorch 0.4.1+

To do:

  • Add some new model
  • Add keras version
  • Adding more English annotations
  • Enriching training examples
  • Adding larger data sets to measure model effectiveness

Contact Email : yscoder@foxmail.com