# Chinese-to-English Machine Translation


# HowTo

1. install required packages.

`pip install bert-for-tf2`

2. `python transformer_train.py` to run naive transformer model.

3. `python bert_train.py` to run BERT pretrained encoder model.


# Screenshot

1. transformer

```
Chinese src: 周四和周五发生在五个省份的炸弹爆炸事件导致四人死亡，几十人受伤，遭袭地点包括旅游胜地普吉和华 欣。
Translated : Four weeks and five-week bombings have killed four people and injured dozens of others, including tourism and the likelihood of land grabs.
Real: The bombings in five provinces on Thursday and Friday, including in Phuket and Hua Hin, areas popular with tourists, killed four people and injured dozens.
```
