Skip to content

Several models for Chinese-English machine translation task with python

Notifications You must be signed in to change notification settings

ThuanPhong0126/Machine-Translation-Chinese-English

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chinese English Machine Translation Tasks

In this work, we introduce how to train the Seq2Seq model for machine translation tasks from Chinese to English. The code is public with the notebook above. After training, the obtained model is able to take as input a Chinese sentence and output an English translation. Examples:

Input Output
1 天气又冷又湿。 The weather was not only cold, but also wet.
2 她明年會去美國嗎? Will she go to america next year?

Dataset for training and evaluate: CMN [link]

At this work, I solve machine translation tasks with Encoder-Decoder architecture. In this architecture, the network is partitioned into two parts, the encoder and the decoder. The encoder’s role is encoding the inputs into hidden state, or hidden representation, which often contains several tensors. Then the hidden state is passed into the decoder to generate the outputs.

  1. Neural Machine Translation model with GRU layers and Bahdanau Attention. Some predictions of the model. Predict1 Predict2

To be continued.......

References

About

Several models for Chinese-English machine translation task with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published