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

KeyError: 'd' #92

Open
beat4ocean opened this issue Aug 19, 2023 · 1 comment
Open

KeyError: 'd' #92

beat4ocean opened this issue Aug 19, 2023 · 1 comment

Comments

@beat4ocean
Copy link

python finetune/run_classifier.py --pretrained_model_path models/roberta-base-finetuned-dianping-chinese/pytorch_model.bin
--vocab_path models/google_zh_vocab.txt
--config_path models/sbert/base_config.json
--output_model_path models/test_model.bin
--train_path datasets/book_review/train.tsv
--dev_path datasets/book_review/dev.tsv
--test_path datasets/book_review/test.tsv
--epochs_num 3
--batch_size 32
--learning_rate 3e-5
--seq_length 512

Traceback (most recent call last):
File "/home/almalinux/TencentPretrain/finetune/run_classifier.py", line 366, in
main()
File "/home/almalinux/TencentPretrain/finetune/run_classifier.py", line 291, in main
model = Classifier(args)
File "/home/almalinux/TencentPretrain/finetune/run_classifier.py", line 33, in init
tmp_emb = str2embedding[embedding_name](args, len(args.tokenizer.vocab))
KeyError: 'd'

@BenBill2077
Copy link

I have similar problem:
File "/my_TencentPretrain-main/finetune/run_speech2text.py", line 311, in
main()
File "/my_TencentPretrain-main/finetune/run_speech2text.py", line 239, in main
model = Speech2text(args)
File "/my_TencentPretrain-main/finetune/run_speech2text.py", line 33, in init
tmp_emb = str2embedding[embedding_name](args, len(args.tokenizer.vocab))
KeyError: 'w'
Have you solved the problem?

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