plkmo / BERT-Relation-Extraction

PyTorch implementation for "Matching the Blanks: Distributional Similarity for Relation Learning" paper
Apache License 2.0
565 stars 132 forks source link

Missing ./data/BERT_tokenizer.pkl file #45

Closed ozbej closed 9 months ago

ozbej commented 2 years ago

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 2 years ago

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'

leonseet commented 2 years ago

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

ayankhan31 commented 1 year ago

Still its showing the same error

GabrielSoranzoUPEC commented 1 year ago

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

plkmo commented 9 months ago

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