Skip to content

jpan72/nmt-seq2seq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

requirements:

  • python 3.6
  • pytorch 0.4.0
  • nltk
  • tqdm

What's included

  • A vanilla seq2seq model implemented in PyTorch
  • A keras version is stored in keras/. The code is copied from The Keras official tutorial

How to use

  • Go to directory pytorch
  • To train the model, simply run ./run.sh
  • To test the model ./run_test.sh
  • To see what config options you have python main.py --help

background

更新

由于PyTorch版本更新了好多次,最近重新写了PyTorch的translation模型

TODO

  • add attention to the currently very basic model
  • add beam search at inference

Bug report

If you find any bugs, please feel free to send an email to [email protected] , I will try to be responsive!

About

seq2seq model written in Pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 62.9%
  • Python 36.2%
  • Shell 0.9%