ansonb / RECON

This is the code for the paper 'RECON: Relation Extraction using Knowledge Graph Context in a Graph Neural Network'.
MIT License
38 stars 11 forks source link

File missing -vocab.json and char_v.json #3

Closed SoTWhat closed 2 years ago

SoTWhat commented 3 years ago

Traceback (most recent call last): File "main.py", line 276, in word_vocab, char_vocab, word_embed_matrix = build_vocab(args, entities_context_data, save_vocab, embedding_file) File "main.py", line 187, in build_vocab with open(save_path[0],'r') as f: FileNotFoundError: [Errno 2] No such file or directory: './vocab.json'

please upload the missing file thanks

amiroft commented 3 years ago

Same for me:(

ansonb commented 2 years ago

Hi, Thanks for trying the code and pointing the issue.

The file is actually created during training and if already created then we set the flag USE_VOCAB to true for reuse. It seems this was set to true by default. I've made it false and pushed the changes. Thanks