基于Keras实现seq2seq,进行英文到中文的翻译
- encoder
- decoder
Is it all there?
全都在那裡嗎?
Is it too salty?
还有多余的盐吗?
Is she Japanese?
她是日本人嗎?
Is this a river?
這是一條河嗎?
Isn't that mine?
那是我的吗?
It is up to you.
由你來決定。
python predict.py --eng_sent "It's a nice day."
今天天氣很好。
https://github.com/pjgao/seq2seq_keras/blob/master/seq2seq_keras.ipynb
https://github.com/keras-team/keras/blob/master/examples/lstm_seq2seq.py