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

请问为什么 model中 .pcnn文件中,初始化cnn的时候, input_channel是1,输出维度为cnn_layers么 #7

Open
CodeShaoNian opened this issue Nov 29, 2019 · 1 comment

Comments

@CodeShaoNian
Copy link

No description provided.

@ZhixiuYe
Copy link
Owner

是的。是这样的,文本做卷积是有两种方式的,可以用一维卷积,此时input_channel是word embedding的维数,kernal size是H;或者用二维卷积,kernal size是H*word embedding的维数,input channel是1.这两种方式是等价的。H是kernal的宽度,一般是3或5之类的数。

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