-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Assign requires shapes of both tensors to match while train_model ner_ontonotes_bert_mult #839
Comments
The model was laded from the old path. the BERT model in the config has |
Thanks! It started to train, but new error has occurred:
|
Sorry, but the BERT model has positional embeddings only for first 512 subtokens. So, the model can't work with longer sequences. It is a deliberate architecture restriction. Subtokens are produced by WordPiece tokenizer (BPE). 512 subtokens correspond approximately to 300-350 regular tokens for multilingual model. Make sure that you performed sentence tokenization before dumping the data. Every sentence in the dumped data should be separated by an empty line. |
Great! It works, thanks a lot. |
How do I remove it? I'm experiencing the same error I'm new at this and I can't find how to open the config file on deepavlov docs |
Have you removed old model? And how ?)) |
Can you please tell me how to update this path. I tried but not able to do it |
Traceback (most recent call last): |
Hello,
I try to train_model(configs.ner.ner_ontonotes_bert_mult). Downloaded model works well, test example passed
ner_model = build_model(configs.ner.ner_ontonotes_bert_mult, download=True) ner_model(['Чемпионат мира по кёрлингу пройдёт в Антананариву'])
I put my data in the folder ~/.deeppavlov/downloads/ontonotes/ determined by the code
print(config_dict['dataset_reader']['data_path'])
. I installed BERT requirements bert_dp.txt.I have an error while running train_model:
Thanks in advance.
The text was updated successfully, but these errors were encountered: