Knowledge graph question-answering method and system based on reinforcement learning modeling remote dependence
Патент · CN B
Полный текст
The invention relates to the field of knowledge graph questions and answers, and provides a knowledge graph questions and answers method and system based on reinforcement learning modeling remote dependence. The method comprises the steps of taking an extracted question-answer knowledge graph main entity as a head entity, taking a question vector as a relation, taking entities except the main entity in the question-answer knowledge graph as tail entities, constructing triples, calculating the score of the triples, selecting the first entity with the highest score as a remote dependent entity to obtain remote dependent entity embedding, constructing a state set based on the question vector, the main entity embedding, the entity embedding selected in the current time step, decision history and the remote dependent entity embedding in the current time step, combining an action set of the current time step, adopting Markov decision to construct a strategy network, updating the state, introducing a soft rewarding mechanism to obtain the entity embedding selected in the next step, judging whether the entity is an answer entity, and carrying out iterative loop until the maximum loop times are reached or the answer entity is found.