GithubHelp home page GithubHelp logo

kg4rr's Introduction

Assessing Scientific Research Papers with Knowledge Graphs

Input Data Format

  1. entities.dict: each line represents an entity including an index and entity name separated by "\t".
  2. relations.dict: each line represents a relation including an index and relation name separated by "\t".
  3. triplets.txt: each line represents a triplet including an entity name, a relation name and another entity name separated by "\t".
  4. content_emb.npy: a numpy array with the shape [number of entities, dim of text embeddings].
  5. num_feats.npy: a numpy array with the shape [number of entities, dim of numeric features].
  6. node2lab.csv: a csv file with labels for paper entities including entity indices (Index) and their scores (label).

Run LiteralE-based KG embedding models

bash scripts/run_kge_rpp.sh 0 CombineLiteralAll_X 100 10 # 100 dimension and 10 epochs

X is a base KGE model (e.g. TransE, DistMult, ComplEx).

Reproducibility Evaluation

bash scripts/run_rr_rpp.sh CombineLiteralAll_X 100 # 100 dimension

Run on your own data

  1. Convert the data in the required format (e.g. entities.dict, relations.dict, etc.).
  2. Create a directory under "datasets/" and put all files under the new directory.
  3. Create scripts follow the sample scripts "scripts/run_**.sh".
  4. Run the scripts.

Acknowledgements

Our code is mainly based on PyKEEN. Thanks to the organizers for developing and sharing the library!

kg4rr's People

Contributors

kianasun avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.