Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About TrainingInstance module #20

Open
zhangsanaixuexi opened this issue Oct 22, 2020 · 3 comments
Open

About TrainingInstance module #20

zhangsanaixuexi opened this issue Oct 22, 2020 · 3 comments

Comments

@zhangsanaixuexi
Copy link

In your code, I noticed that there are many definitions of current_XXX and previous_XXX in the TrainingInstance module of the KBQA_Runner. Py file, and I want to ask you what current_topic_entity and previous_index and Candidate_paths2Previous_index represent..
I would appreciate it if you could give me your advice.

@lanyunshi
Copy link
Owner

Hi,

As described in the paper, we keep a beam to search for the relation paths iteratively and we employ reinforcement learning to update the model. To calculate the final rewards, each iteration we will remember the probabilities of the current top-ranked relations and multiply with its successive relations. the settings of previous_index, Candidate_paths2Previous_index are to remember the previous relations of the current relations.

A good way to understand the code is to print out some parts and see what is happening for each iteration. Thanks :)

@zhangsanaixuexi
Copy link
Author

Thank you very much for your answer.
I want to take KBQA as the direction of my graduation thesis, but I notice that most of the current cutting-edge research in KBQA is about English. Is it feasible to use your paper method for reference to some Chinese data sets? What aspects are worthy of attention?

@lanyunshi
Copy link
Owner

Sorry for the late reply!

For Chinese datasets, I paid less attention to them. But I do notice that there is a Chinese KBQA challenge, you can find related information at link https://www.biendata.xyz/competition/ccks_2020_7_4/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants