├── .gitignore ├── README.md ├── examples ├── adaptive-attention-model-for-image-captioning.md ├── attention-is-all-you-need.md ├── encoder-decoder.md ├── global-attention.md ├── hierarchical-encoder-decoder-Sequence-to-Sequence-model.md ├── learning-to-align-and-translate.md ├── lstm.md └── naive-seq2seq.md ├── images ├── 07.attention-mechanism.png ├── 07.pad_to_sequence.png ├── 07.seq2seq.png ├── adaptive-attention.png ├── attention-decoder-network.png ├── attention.png ├── cover.jpg ├── decoder-network.png ├── encoder-network.png ├── hred.png ├── learning-to-align-and-translate.png ├── lstm-equation.png ├── lstm.jpg ├── multi-head-attention.png ├── s1.png ├── s3.png ├── seq2seq.png ├── transformer-overall.png └── transformer.png └── notebooks ├── Neural-Machine-Translation-with-Attention.ipynb ├── seq2seq-translation-batched.ipynb ├── seq2seq-translation.ipynb └── seq2seq_translation_tutorial.ipynb /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/README.md -------------------------------------------------------------------------------- /examples/adaptive-attention-model-for-image-captioning.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/examples/adaptive-attention-model-for-image-captioning.md -------------------------------------------------------------------------------- /examples/attention-is-all-you-need.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/examples/attention-is-all-you-need.md -------------------------------------------------------------------------------- /examples/encoder-decoder.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/examples/encoder-decoder.md -------------------------------------------------------------------------------- /examples/global-attention.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/examples/global-attention.md -------------------------------------------------------------------------------- /examples/hierarchical-encoder-decoder-Sequence-to-Sequence-model.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/examples/hierarchical-encoder-decoder-Sequence-to-Sequence-model.md -------------------------------------------------------------------------------- /examples/learning-to-align-and-translate.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/examples/learning-to-align-and-translate.md -------------------------------------------------------------------------------- /examples/lstm.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/examples/lstm.md -------------------------------------------------------------------------------- /examples/naive-seq2seq.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/examples/naive-seq2seq.md -------------------------------------------------------------------------------- /images/07.attention-mechanism.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/07.attention-mechanism.png -------------------------------------------------------------------------------- /images/07.pad_to_sequence.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/07.pad_to_sequence.png -------------------------------------------------------------------------------- /images/07.seq2seq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/07.seq2seq.png -------------------------------------------------------------------------------- /images/adaptive-attention.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/adaptive-attention.png -------------------------------------------------------------------------------- /images/attention-decoder-network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/attention-decoder-network.png -------------------------------------------------------------------------------- /images/attention.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/attention.png -------------------------------------------------------------------------------- /images/cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/cover.jpg -------------------------------------------------------------------------------- /images/decoder-network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/decoder-network.png -------------------------------------------------------------------------------- /images/encoder-network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/encoder-network.png -------------------------------------------------------------------------------- /images/hred.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/hred.png -------------------------------------------------------------------------------- /images/learning-to-align-and-translate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/learning-to-align-and-translate.png -------------------------------------------------------------------------------- /images/lstm-equation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/lstm-equation.png -------------------------------------------------------------------------------- /images/lstm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/lstm.jpg -------------------------------------------------------------------------------- /images/multi-head-attention.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/multi-head-attention.png -------------------------------------------------------------------------------- /images/s1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/s1.png -------------------------------------------------------------------------------- /images/s3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/s3.png -------------------------------------------------------------------------------- /images/seq2seq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/seq2seq.png -------------------------------------------------------------------------------- /images/transformer-overall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/transformer-overall.png -------------------------------------------------------------------------------- /images/transformer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/images/transformer.png -------------------------------------------------------------------------------- /notebooks/Neural-Machine-Translation-with-Attention.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/notebooks/Neural-Machine-Translation-with-Attention.ipynb -------------------------------------------------------------------------------- /notebooks/seq2seq-translation-batched.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/notebooks/seq2seq-translation-batched.ipynb -------------------------------------------------------------------------------- /notebooks/seq2seq-translation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/notebooks/seq2seq-translation.ipynb -------------------------------------------------------------------------------- /notebooks/seq2seq_translation_tutorial.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ifding/seq2seq-pytorch/HEAD/notebooks/seq2seq_translation_tutorial.ipynb --------------------------------------------------------------------------------