-
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
About XLNet Parameters #6
Comments
Hi @woshierniu, thank you for your interest in NER using XLNet in combination with GCNs. ① Is the issue the same with the combined version or only with XLNet? It works fine from my side so I will double-check about that. ② The optimal parameters I applied when I implement XLNet:
I hope that it would help. Thanks! |
Hi , @honghanhh , Thank you very much for your reply. I have solved the first run error. I will try the second parameter according to what you provide. ① Can you tell me is ''finetuning == true'' when only training XLNet ? And when I only want to use XLNet for NER, do I only need to run ''train.py'' ? Looking forward to your reply, thank you ! |
Hi @woshierniu, sorry for my late reply. ① Yes, you can use
I hope that it would help! |
Thank you very much for your patient reply. I will try your best parameters, which will be very helpful to me! |
Sorry, I have another question. Does xlnet use for fine-tuning or just extract features as embeddings? |
Hi @woshierniu,
Please check out my paper for the details in the architecture and how each model works at Please feel free to contact me if you have any concerns. Happy Xmas! |
Happy Xmas! @honghanhh ② The language model of xlnet / Bert in the code, does the initial input not need word vectors such as Glove? |
|
Hello, thank you very much for sharing your codes and idea.
①I encountered some problems when I was only running XLNet (Python train. Py) for NER, as follows, can you tell me why ?
Traceback (most recent call last):
File "C:/Users/94312/Desktop/ner-combining-contextual-and-global-features-master/xlnet-ner/train.py", line 201, in
torch.save(model, f"{fname}.pt")
File "C:\Users\94312\Desktop\NER-pytorch-master\venv\lib\site-packages\torch\serialization.py", line 379, in save
_save(obj, opened_zipfile, pickle_module, pickle_protocol)
File "C:\Users\94312\Desktop\NER-pytorch-master\venv\lib\site-packages\torch\serialization.py", line 484, in _save
pickler.dump(obj)
TypeError: can't pickle torch._C.ScriptFunction objects
②And can you tell me the optimal parameters when only running XLNet ? Is it consistent with the parameters in the code xlnet-ner/train.py? Is ''finetuning == true'' ?
parser. add_ argument("--batch_size", type=int, default=128)
parser. add_ argument("--lr", type=float, default=0.0001)
parser. add_ argument("--n_epochs", type=int, default=30)
Looking forward to your reply, thank you.
The text was updated successfully, but these errors were encountered: