plkmo/BERT-Relation-Extraction

Missing ./data/BERT_tokenizer.pkl file

Closed this issue · 5 comments

ozbej commented

I want to run only the "Fine-tuning on SemEval2010 Task 8" section (main_task.py file). However, I get the following error:
FileNotFoundError: [Errno 2] No such file or directory: './data/BERT_tokenizer.pkl'

Can anyone tell me where I can get this file?

ozbej commented

This is the whole stack trace:

Traceback (most recent call last):
File "main_task.py", line 50, in
net = train_and_fit(args)
File "/content/BERT-Relation-Extraction/src/tasks/trainer.py", line 33, in train_and_fit
train_loader, test_loader, train_len, test_len = load_dataloaders(args)
File "/content/BERT-Relation-Extraction/src/tasks/preprocessing_funcs.py", line 319, in load_dataloaders
save_as_pickle("%s_tokenizer.pkl" % model_name, tokenizer)
File "/content/BERT-Relation-Extraction/src/misc.py", line 22, in save_as_pickle
with open(completeName, 'wb') as output:
FileNotFoundError: [Errno 2] No such file or directory: './data/BERT_tokenizer.pkl'

You may run python main_task.py with default values first to generate the BERT_tokenizer.pkl

Still its showing the same error

Requires SemEval2010 Task 8 dataset, available here. Download & unzip to ./data/ folder.

plkmo commented

I have added instructions as suggested to download & unzip the data