Skip to content

qianmin/transformer-en2cn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transformer-english2chinese

1、默认使用cpu运行,若想使用gpu,将代码第33行的DEVICE = ‘cpu’ 改为DEVICE = ‘cuda’即可

2、python transformer_nmt.py执行

博客链接基于Transformer的翻译模型(英->中)

About

pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%