pytorch-relation-extraction icon indicating copy to clipboard operation
pytorch-relation-extraction copied to clipboard

关于nyt.py的问题

Open dhName opened this issue 5 years ago • 1 comments

您好,nyy.py中get_pad_sen_pos方法的作用是什么呢?感觉处理来处理去的不知道意图是什么?

dhName avatar Nov 28 '19 10:11 dhName

你好,get_pad_sen_pos 是将所有的sentence和position的长度补全到max_length, 方便模型直接Embedding使用。 数据预处理都是为了方便模型的输入。建议单步debug查看

ShomyLiu avatar Nov 28 '19 12:11 ShomyLiu