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

请问这个错误是什么原因造成的啊 #47

Open
Pyolar opened this issue Jul 9, 2023 · 0 comments
Open

请问这个错误是什么原因造成的啊 #47

Pyolar opened this issue Jul 9, 2023 · 0 comments

Comments

@Pyolar
Copy link

Pyolar commented Jul 9, 2023

Traceback (most recent call last):
File "main.py", line 213, in
training(args)
File "main.py", line 134, in training
train_base(opt, train_examples, dev_examples)
File "main.py", line 44, in train_base
train(opt, model, train_dataset)
File "D:\Documents\PycharmProjects\extraction\DeepNER-master\src\utils\trainer.py", line 219, in train
swa(swa_raw_model, opt.output_dir, swa_start=opt.swa_start)
File "D:\Documents\PycharmProjects\extraction\DeepNER-master\src\utils\functions_utils.py", line 83, in swa
model_path_list = get_model_path_list(model_dir)
File "D:\Documents\PycharmProjects\extraction\DeepNER-master\src\utils\functions_utils.py", line 74, in get_model_path_list
key=lambda x: (x.split('/')[-3], int(x.split('/')[-2].split('-')[-1])))
File "D:\Documents\PycharmProjects\extraction\DeepNER-master\src\utils\functions_utils.py", line 74, in
key=lambda x: (x.split('/')[-3], int(x.split('/')[-2].split('-')[-1])))
IndexError: list index out of range

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