GithubHelp home page GithubHelp logo

Usage of kglm-model about kglm-model HOT 5 CLOSED

rloganiv avatar rloganiv commented on September 7, 2024
Usage of kglm-model

from kglm-model.

Comments (5)

rloganiv avatar rloganiv commented on September 7, 2024

I will need more details about what you are trying to do in order to help. Are you trying to evaluate perplexity of the model on your data? Or are you trying to perform additional sentence completion experiments?

from kglm-model.

almoslmi avatar almoslmi commented on September 7, 2024

Thanks dear @rloganiv for your kind reply. Here is what I intend to do.

I intend to use the model to create my graph as it should be empty at first according to the paper. Then want to use sentence completion to help me complete my sentence/paragraph. After that, if possible, I want to get the entity linking to the KB like Wikidata so I can get exactly something similar to Figure 1 in your paper (a list of all entities in my paragraph+ their linking number to Wikidata).

I have implemented the model as I mentioned previously but didn't know what I should do first and next in order to do that.

from kglm-model.

rloganiv avatar rloganiv commented on September 7, 2024

Are the sentence fragments you want the model to complete annotated or unannotated?

If the sentence fragments are unannotated then what you are proposing is rather difficult. Since the KGLM is a forward generative model it is not really well-suited to annotating an existing piece of text. To give an example, in the sentence "I am excited about Tool 's new album", the KGLM would have to predict the entity label Q184827 before seeing the token "Tool".

from kglm-model.

almoslmi avatar almoslmi commented on September 7, 2024

Thanks dear @rloganiv for your reply again

It is unannotated. Simply I intend to apply your model in a domain where the system should be able to help the writer to suggest a sentence completion (based on local KG) for his writing and bring him a list of all entities with their linking to KB after he finishes writing. Hopefully, this will works.

from kglm-model.

rloganiv avatar rloganiv commented on September 7, 2024

Hi @almoslmi,

Sorry about the delayed response. Unfortunately the repo is not currently set up to support your desired application. The main difficulty is having the system generate annotations - the discriminative model used for importance sampling is currently not accurate enough to greedily decode an annotation.

You could consider using our annotation code at: https://github.com/rloganiv/kglm-data, however this code is specifically designed for annotating Wikipedia articles and is not well suited for an online setting.

from kglm-model.

Related Issues (15)

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.