Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于padding #2

Open
esterL2 opened this issue Dec 9, 2019 · 2 comments
Open

关于padding #2

esterL2 opened this issue Dec 9, 2019 · 2 comments

Comments

@esterL2
Copy link

esterL2 commented Dec 9, 2019

你好,我在看数据处理部分,我想问下你的padding是怎么设置的以及大小是多少,没有看见。

@zhangjf-nlp
Copy link
Owner

对于变长序列的处理,我当时还没掌握pad_packed_sequence与pack_padded_sequence
所以是靠训练时,每次输入单个样例,将输出结果拼接在一起,实现的batch
这里的结果是情感分析结果,所以不存在长度变化的问题

具体位置是在main_train的step5中

@esterL2
Copy link
Author

esterL2 commented Dec 9, 2019

我明白了,多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants