https://github.com/yanqiangmiffy/seq2seq-nmt
:smiley_cat: 基于Keras实现seq2seq,进行英文到中文的翻译
https://github.com/yanqiangmiffy/seq2seq-nmt
nmt nmt-model seq2seq-model
Last synced: 6 months ago
JSON representation
:smiley_cat: 基于Keras实现seq2seq,进行英文到中文的翻译
- Host: GitHub
- URL: https://github.com/yanqiangmiffy/seq2seq-nmt
- Owner: yanqiangmiffy
- Created: 2018-08-09T09:31:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-17T15:34:57.000Z (almost 5 years ago)
- Last Synced: 2025-04-01T22:15:14.511Z (7 months ago)
- Topics: nmt, nmt-model, seq2seq-model
- Language: Python
- Homepage:
- Size: 699 KB
- Stars: 18
- Watchers: 2
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# seq2seq-nmt
基于Keras实现seq2seq,进行英文到中文的翻译

## 模型结构

## 推理模型结构
- encoder

- decoder

## 测试结果
```text
Is it all there?
全都在那裡嗎?
Is it too salty?
还有多余的盐吗?
Is she Japanese?
她是日本人嗎?
Is this a river?
這是一條河嗎?
Isn't that mine?
那是我的吗?
It is up to you.
由你來決定。
```
```text
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
https://blog.csdn.net/PIPIXIU/article/details/81016974