Skip to content

translate from English to Chinese user transformer model

License

Notifications You must be signed in to change notification settings

fengweijp/transformer-en-zh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

The purpose of create this repository is to learn Transformer.

most code clone from Tensorflow-models

What I did ?

  • split vocab to inputs_vocab and targets_vocab
  • delete some tpu config
  • cut chinese to words

run demo

  1. create vocab and tfrecord
python process_data.py
  1. train_model
./en_zh_train.sh

you can change en_zh_train.sh to test and export model

There is an demo

About

translate from English to Chinese user transformer model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.1%
  • Shell 0.9%