-
Notifications
You must be signed in to change notification settings - Fork 3
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
predict.py #8
Comments
Hi @samanthatansy, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am trying to only use xlnet model without the gcn for NER. I have ran train.py in the 'xlnet-ner' folder and obtained the saved weights - '4.pt' in a finetuning folder. However, I have issues with the predict.py file.
When I try to run it, I get the following error:
I then fixed it by added 'import torch.nn as nn'. However, after that, i get the following error:
I am using the same codes, but had only removed .cuda() as I am only using 'cpu'
I am not sure what is wrong, please help thank you!
The text was updated successfully, but these errors were encountered: