Code Monkey home page Code Monkey logo

kb-reasoning-data's Introduction

KB-Reasoning-Data

  1. Underlying KB triples are stored in kb_env_rl.txt (make sure to mask out the missing relations on the fly)
  2. Pre-trained Embedding for entity and relations are stored in relation2vec.bern and entity2vec.bern
  3. Evaluation tasks are stored in evaluate_task.txt
  4. Trainining positive and negative triples are stored in whole_train_pos_neg.txt
  5. Validating and Testing triples are stored in whole_sort_test.txt and whole_sort_val.txt

Data Format

For example in FB dataset whole_train_pos_neg.txt, we have

sports@sports_team@sport#/m/03c0t9#/m/018w8:-1#/m/01gqfm:-1#/m/01lb14:-1#/m/02vx4:1#/m/02y8z:-1#/m/03_8r:-1#/m/06f41:-1#/m/06z6r:-1#/m/07bs0:-1#/m/07jbh:-1#/m/0bynt:-1

The first term "sports@sports_team@sport" denotes the relation of interests (@ does not act as separator here), the firts entity "/m/03c0t9" is the start entity, and the rest entities are the ranked candidates with 1 denoting connected entity, and -1 denoting disconnected entity. The MAP is calculated based on the rank of the connected candidate. For example, if /m/02vx4 ranks 3rd place, then MAP=1 / (1 + 3)=0.25.

kb-reasoning-data's People

Contributors

wenhuchen 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.