The purpose of create this repository is to learn Transformer.
most code clone from Tensorflow-models
- split vocab to inputs_vocab and targets_vocab
- delete some tpu config
- cut chinese to words
- create vocab and tfrecord
python process_data.py
- train_model
./en_zh_train.sh
you can change en_zh_train.sh
to test and export model
There is an demo