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

error in Window-Classifier-for-NER model #4

Open
airship-explorer opened this issue Dec 20, 2017 · 0 comments
Open

error in Window-Classifier-for-NER model #4

airship-explorer opened this issue Dec 20, 2017 · 0 comments

Comments

@airship-explorer
Copy link

airship-explorer commented Dec 20, 2017

In the 4th jupyter file named Word Window Classification and Neural Networks, I found something wrong. Specifically, in the class WindowClassifier, you has used self.softmax = nn.LogSoftmax(dim=1)in the output layer, then you don't need use CrossEntropyLoss() loss, you must use torch.nn.NLLLoss loss

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

1 participant