Git Product home page Git Product logo

open-kg-canonicalization's Introduction

Open-KG-canonicalization

The software associated with a paper accepted at EMNLP 2021 titled "Open Knowledge Graphs Canonicalization using Variational Autoencoders". Arxiv link: https://arxiv.org/abs/2012.04780

Run Commands

  • Use Python 3.6.8
  • For running CUVA on Reverb45K, use the following script: ./run_commands/run_on_reverb45k.sh

open-kg-canonicalization's People

Contributors

dashdor avatar stevemar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

open-kg-canonicalization's Issues

Running `run_commands/run_on_<dataset>.sh` returns FileNotFoundError

Hello!

First of all, thank you very much for your contribution @Dashdor @stevemar

I'm trying to run the code with the commands you proposed in the README, but I'm getting the following error:

Traceback (most recent call last): File "src/experiment.py", line 226, in <module> main() File "src/experiment.py", line 222, in main experiment = Experiment(args.data_id, args.data_dir, args.config_file, args.kge_algorithm, args.serialize_results) File "src/experiment.py", line 29, in __init__ self.openKG_canonicalize = OpenKGCanonicalization(data_dir, config_params_file, kge_algorithm, self.device).to(device=self.device) File "pathTo/Open-KG-canonicalization/src/canonicalize_learner.py", line 36, in __init__ models = self.load_models() File "pathTo/Open-KG-canonicalization/src/canonicalize_learner.py", line 65, in load_models if model_dir is None or not os.path.exists(model_dir): raise FileNotFoundError FileNotFoundError

Could you please help with that?

Thanks in advance.

Update: setup.py should be executed first before running any commands. Could it be added to README as well?

vae_run files

First of all, thank you very much for your code.
But I have a question about some of your files. Could you please tell me how the pkl files in Open-KG-canonicalization/data/vae_run/ReVerb45k_hac_OKG_canonicalize_heads/ are obtained.
Thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.