Skip to content

a pytorch implementation of machine translation model that translates human readable dates ("25th of June, 2009") into machine readable dates ("2009-06-25")

Notifications You must be signed in to change notification settings

zcsxll/date_trans_with_attention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

date_trans_with_attention

a pytorch implementation of machine translation model that translates human readable dates (eg: "25th of June, 2009", "Thursday, June 25, 2009") into machine readable dates ("2009-06-25") LSTM and attention mechanism are used

usage:

  • rm ./checkpoint/*
  • python3 train.py (train with gpu)
  • python3 train.py no_gpu (train with cpu)
  • Python3 test.py (test th model)

attention result

About

a pytorch implementation of machine translation model that translates human readable dates ("25th of June, 2009") into machine readable dates ("2009-06-25")

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages