注释版 Transformer 英文-中文翻译器
·59 words·1 min

Table of Contents
自 2017 年以来,来自论文《Attention is All You Need》的 Transformer 架构一直备受瞩目。
在本仓库中,我提供了一个对 Transformer 论文的“注释(annotated)”版本,以逐行实现的形式,使用 PyTorch 深度学习框架构建了一个英文到中文的翻译器。
访问我的博客了解更多细节和背景信息:https://cuicaihao.com/the-annotated-transformer-english-to-chinese-translator/

查看 Jupyter Notebook 了解编程的详细内容。 Annotated_Transformer_English_to_Chinese_Translator
Python 环境 (Miniconda) #
- Python=3.7.8
- pytorch=1.4.0 (如果拥有 CUDA 显卡,请安装 CUDA 版本)
- nltk=3.5
- numpy=1.19.0
- matplotlib=3.3.1
要尝试运行代码,请在您的终端或命令提示符窗口中运行以下命令:
python Annotated_Transformer_English_to_Chinese_Translator.py
参考资料 #
- The Annotated Transformer http://nlp.seas.harvard.edu/2018/04/03/attention.html
- The Illustrated Transformer http://jalammar.github.io/illustrated-transformer/
- GreedAI NLP Trainig Camp: https://www.greedyai.com/
MIT 许可协议
版权所有 (c) 2020 Chris Cui