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

Q. About leading_symbolic #7

Closed
isbada opened this issue Dec 30, 2017 · 2 comments
Closed

Q. About leading_symbolic #7

isbada opened this issue Dec 30, 2017 · 2 comments

Comments

@isbada
Copy link

isbada commented Dec 30, 2017

Hi, @XuezheMax
I have noticed that in the loss function of NER.py , there is a parameter named 'leading_symbolic'(value=1),
In the source code of loss funtion , you use this parameter as following:

 _, preds = torch.max(output[:, :, leading_symbolic:], dim=2)
preds += leading_symbolic

Could you explain Why you change the shape of output of the network in this way?
looking forward to your reply~

@XuezheMax
Copy link
Owner

XuezheMax commented Dec 30, 2017 via email

@isbada
Copy link
Author

isbada commented Jan 3, 2018

@XuezheMax Thanks for your reply.
I have understood it now

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