天天看點

用序列到序列和注意模型實作的翻譯: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

繼續閱讀