用序列到序列和注意模型实现的:Translation with a Sequence to Sequence Network and Attention

In this project we will be teaching a neural network to translate from French to English.


最后效果:

[KEY: > input, = target, < output]

> il est en train de peindre un tableau .
= he is painting a picture .
< he is painting a picture .

> pourquoi ne pas essayer ce vin delicieux ?
= why not try that delicious wine ?
< why not try that delicious wine ?

> elle n est pas poete mais romanciere .
= she is not a poet but a novelist .
< she not not a poet but a novelist .

> vous etes trop maigre .
= you re too skinny .
< you re all alone .

详细教程:http://pytorch.org/tutorials/intermediate/seq2seq_translation_tutorial.html
原文地址:https://www.cnblogs.com/panchuangai/p/12568319.html