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: '<PAD>' #3

Open
Wud1 opened this issue Dec 3, 2020 · 0 comments
Open

KeyError: '<PAD>' #3

Wud1 opened this issue Dec 3, 2020 · 0 comments

Comments

@Wud1
Copy link

Wud1 commented Dec 3, 2020

Traceback (most recent call last):
File "C:/Users/Chenxinliang/Desktop/medical_record/code/pgn_tf2/train.py", line 49, in
train(params)
File "C:/Users/Chenxinliang/Desktop/medical_record/code/pgn_tf2/train.py", line 28, in train
dataset = batcher(vocab, params)
File "C:\Users\Chenxinliang\Desktop\medical_record\code\pgn_tf2\batcher.py", line 292, in batcher
params["mode"])
File "C:\Users\Chenxinliang\Desktop\medical_record\code\pgn_tf2\batcher.py", line 252, in batch_generator
"enc_input": vocab.word2id[Vocab.PAD_TOKEN],
KeyError: ''

运行您的PGN进行训练的时候这种报错,应该怎么解决呢?

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