You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "run_ner_crf.py", line 498, in
main()
File "run_ner_crf.py", line 493, in main
predict(args, model, tokenizer, prefix=prefix)
File "run_ner_crf.py", line 255, in predict
test_dataset = load_and_cache_examples(args, args.task_name, tokenizer, data_type='test')
File "run_ner_crf.py", line 368, in load_and_cache_examples
all_label_ids = torch.tensor([f.label_ids for f in features], dtype=torch.long)
ValueError: expected sequence of length 517 at dim 1 (got 512)
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "run_ner_crf.py", line 498, in
main()
File "run_ner_crf.py", line 493, in main
predict(args, model, tokenizer, prefix=prefix)
File "run_ner_crf.py", line 255, in predict
test_dataset = load_and_cache_examples(args, args.task_name, tokenizer, data_type='test')
File "run_ner_crf.py", line 368, in load_and_cache_examples
all_label_ids = torch.tensor([f.label_ids for f in features], dtype=torch.long)
ValueError: expected sequence of length 517 at dim 1 (got 512)
The text was updated successfully, but these errors were encountered: