Giter VIP home page Giter VIP logo

mulangonando / impact-of-kg-context-on-ed Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 2.0 35.5 MB

This repo contains the code and instructions for our paper : Evaluating the Impact of Knowledge Graph Context on Entity Disambiguation Models

Python 98.26% Jupyter Notebook 1.74%
wikidata knowledge-graph-context wikidata-entity-linking entity-disambiguation-models entity-disambiguation knowledge-graph

impact-of-kg-context-on-ed's People

Contributors

mulangonando avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

impact-of-kg-context-on-ed's Issues

The training script for Roberta does not match the papers specifications

There are some serious discrepancies between the code and the paper.
Below is the image describing the inputs into the roberta model
image

However, after running the scripts, The discrepancies are:

  1. There is no surface mention in the training inputs. instead the Wikidata id is input, which makes no sense to the model
  2. Entity context is jumbled up pretty bad, the predicates and the objects are not in order at all.
  3. Padding token is wrong for roberta (1 - )

Below is a sample training input:

['<s>',
 'ĠQ',
 '5',
 '34',
 '153',
 '</s>',
 'Ġfantasy',
 'Ġnovelist',
 'ĠDavid',
 'ĠGem',
 'm',
 'ell',
 '.',
 'ĠAchilles',
 'Ġis',
 'Ġfeatured',
 'Ġheavily',
 'Ġin',
 'Ġthe',
 'Ġnovel',
 'ĠThe',
 'ĠFire',
 'brand',
 'Ġby',
 'ĠMarion',
 'ĠZimmer',
 'ĠBradley',
 '.',
 'ĠThe',
 'Ġcomic',
 'Ġbook',
 'Ġhero',
 'ĠCaptain',
 'ĠMarvel',
 'Ġis',
 'Ġendowed',
 'Ġwith',
 'Ġthe',
 'Ġcourage',
 'Ġof',
 'ĠAchilles',
 ',',
 'Ġas',
 'Ġwell',
 '</s>',
 'Ġcountry',
 'Ġof',
 'Ġcitizenship',
 'Ġinspired',
 'Ġby',
 'ĠZach',
 'ary',
 'ĠLevi',
 'ĠUnited',
 'ĠStates',
 'Ġof',
 'ĠAmerica',
 'Ġperformer',
 'ĠSuperman',
 '</s>',
 '<s>',
 '<s>',
...

Request for KG context builder

Loving the paper.

Is the code for the context builder released in this repo?
I am unable to find how the training / testing data is generated.

Context builder referring to the module in the image in your paper below.

image

Thank you.

Regarding the SPARQL endpoint and 1|2 hop

Hi,

Thanks for releasing the code. Can you provide more detail on the KG-context for the 2-hop triples? I cannot fully understand it from the paper since only an example of the 1-hop triple in Figure 2 was demonstrated. Also, I think in your given dataset with context, only 1-hop counts were provided (correct me if I am wrong). It would be great if you can provide a few examples.

Moreover, can you also inform what was the SPARQL query that was run?

Thanks.

Jumbled KG Context in Training / Testing Data

Hi,

I understand that one of the key contributions of the paper is to represent the triples in KG context in the natural language. However, looking through the data in the Roberta folder, the KG context seems to be jumbled up.

For instance: Q8242
Sample expected context:
6 Q8242 Slovak literature is the literature of Slovakia. History. Middle Ages. The first monuments of literature in present-day Slovakia are described by source literary science studied by Jewish Encyclopedia of Brockhaus and Efron literary criticism subclass of art 1

Sample actual context:
6 Q8242 Slovak literature is the literature of Slovakia. History. Middle Ages. The first monuments of literature in present-day Slovakia are described by source Jewish Encyclopedia of Brockhaus and Efron studied by literary criticism subclass of art 1

Should this be a concern?

Thank you

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.