seq2seq-nmt
基于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