笔记
xindebian12
这个作者很懒,什么都没留下…
展开
-
transformer程序运行过程笔记
本文项目来源:https://github.com/jadore801120/attention-is-all-you-need-pytorch1.进入项目文件目录,~/Desktop/attention-is-all-you-need-pytorch-master激活虚拟环境,source activate env3显示(env3) ,~/Desktop/attention-is-a...原创 2019-04-07 19:06:57 · 1886 阅读 · 5 评论 -
哈佛大学NLP研究组的Transformer入门
The Annotated Transformerfrom IPython.display import ImageImage(filename='images/aiayn.png')The Transformer from “Attention is All You Need” has been on a lot of people’s minds over the las...转载 2019-04-15 19:15:03 · 3043 阅读 · 2 评论 -
Pytorch源码注释
Field类Field类为可以由张量表示的常见文本处理数据类型建模。它包含一个Vocab对象,用于定义字段元素的可能值集及其对应的数字表示。Field对象还包含与数据类型应如何数字化有关的其他参数,例如标记化方法和应生成的Tensor类型。如果在数据集中的两列之间共享字段(例如,QA数据集中的问题和答案),则它们将具有共享词汇表。属性:sequential...原创 2019-05-20 10:34:16 · 1036 阅读 · 0 评论