代码拉取完成,页面将自动刷新
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)
Model | Example | Framework | Lines(torch/tensor) |
---|---|---|---|
NNLM | Predict Next Word | Torch, Tensor | 67/83 |
Word2Vec(Softmax) | Embedding Words and Show Graph | Torch, Tensor | 77/94 |
TextCNN | Sentence Classification | Torch, Tensor | 94/99 |
TextRNN | Predict Next Step | Torch, Tensor | 70/88 |
TextLSTM | Autocomplete | Torch, Tensor | 73/78 |
Bi-LSTM | Predict Next Word in Long Sentence | Torch, Tensor | 73/78 |
Seq2Seq | Change Word | Torch, Tensor | 93/111 |
Seq2Seq with Attention | Translate | Torch, Tensor | 108/118 |
Bi-LSTM with Attention | Binary Sentiment Classification | Torch, Tensor | 92/104 |
Transformer | Translate | Torch | 222/0 |
Greedy Decoder Transformer | Translate | Torch | 246/0 |
BERT | how to train | Torch | 242/0 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。