Skip to content

A simple TensorFlow implementation of the Transformer

Notifications You must be signed in to change notification settings

wszlong/transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Tensorflow implementation of the Transformer

This project is a simple implementation of Tensor2tensor (https://github.com/tensorflow/tensor2tensor) for machine translation.

How to use?

  • Preprosessing. Prepare the parallel data (token, bpe, vocab, and so on), run ./datagen.sh

  • Training. Modify the model params, and run ./train.sh

  • inference. Run the command to decode: ./test.sh

Contact

If you have questions, suggestions and bug reports, please email [email protected].

About

A simple TensorFlow implementation of the Transformer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published