sidhantls / differentiable-kb-qa

Implementation of Scalable Neural Methods for Reasoning With a Symbolic Knowledge Base
3 stars 2 forks source link

How to get the answer back? #1

Closed Areij1 closed 2 years ago

Areij1 commented 2 years ago

I see that there is no way to get the natural language answer back after a prediction. Can you please help point out how this can be done?

sidhantls commented 2 years ago

Depends on what you mean. If you are asking if there is a way to get the actual answer entities in string format for a given question, you can do that. This notebook should help you - https://github.com/sidhantls/differentiable-kb-qa/blob/master/kgqa/models/test_predict.ipynb

Does this answer your question?

Areij1 commented 2 years ago

Yup that's what exactly what I was asking for. Thanks!