mindspore-nlp-tutorial
is a tutorial for who is studying NLP(Natural Language Processing) using MindSpore. This repository is migrated from nlp-tutorial. Most of the models in NLP were migrated from Pytorch version with less than 100 lines of code.(except comments or blank lines)
- Notice: All models are implemented in GPU version, but not test on Ascend platform.
- 1-1. NNLM(Neural Network Language Model) - Predict Next Word
- 1-2. Word2Vec(Skip-gram) - Embedding Words and Show Graph
- 2-1. TextCNN - Binary Sentiment Classification
- 3-1. TextRNN - Predict Next Step
- Paper - Finding Structure in Time(1990)
- 3-2. TextLSTM - Autocomplete
- Paper - LONG SHORT-TERM MEMORY(1997)
- 3-3. Bi-LSTM - Predict Next Word in Long Sentence
- 4-1. Seq2Seq - Change Word
- 5-1. The Transformer - Translate
- Paper - Attention Is All You Need(2017)
- Python 3.7.5
- MindSpore 1.1.1(GPU version)
- Pytorch 1.7.1(for comparation)
- Yufeng Lyu
- Author Email : lvyufeng2007@hotmail.com
- Acknowledgements to graykode who opensource the Pytorch and Tensorflow version.