clear-nus / edc

MIT License
68 stars 9 forks source link

KeyError #14

Open Xmy0416 opened 2 months ago

Xmy0416 commented 2 months ago

I'm trying to generate KG from my dataset using the Self Canonicalization mode. In canonicalize function, there always occurs an error in the middle: Traceback (most recent call last): File "/edc/run.py", line 118, in output_kg = edc.extract_kg( File "/edc/edc_framework.py", line 471, in extract_kg File "/edc/edc/edc_framework.py", line 261, in schema_canonicalization canonicalized_triplet, canon_candidate_dict = schema_canonicalizer.canonicalize( File "/edc/edc/schema_canonicalization.py", line 158, in canonicalize self.schema_dict[open_relation] = open_relation_definition_dict[open_relation] KeyError: 'to' I think maybe its because the construction of sd_dict is not completed? Thank you a lot if you can look into it!!

bzhangj13zzz commented 3 weeks ago

Thank you for raising the issue and sorry for the late reply.

This may be a bug with the current codebase. I am currently quite occupied by other projects but I will try to spare some time for this and get back to you asap.