Comments (5)
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.
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.
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.
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.
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)
- Add docstrings to all classes
- Update to current version of AllenNLP
- Refactor Sampling Code
- Fact Completion Data HOT 1
- Usage of Perplexity Evaluation HOT 3
- About the training HOT 7
- Running validation evaluation always failed when training the model HOT 1
- Training and Evaluating HOT 1
- How to load the KG in python so that I can annotate new data? HOT 1
- Can you share the entity linker code which was used to annotate the linked-wiki-2 dataset HOT 1
- @@END@@ mistakes in preprocessed data? HOT 1
- Can't find a predictor called cloze
- Code and checkpoint for inference
- path to save checkpoint to
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kglm-model.