Question answering method and device based on knowledge graph, equipment and storage medium
The invention discloses a question answering method and device based on a knowledge graph, equipment and a storage medium. When a multi-hop path set is generated, a hop-by-hop path search mode is adopted, paths irrelevant to question sentences are removed, path number explosion is avoided, and the f...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a question answering method and device based on a knowledge graph, equipment and a storage medium. When a multi-hop path set is generated, a hop-by-hop path search mode is adopted, paths irrelevant to question sentences are removed, path number explosion is avoided, and the feasibility of the scheme for dealing with complex problems is guaranteed. Moreover, by generating the multi-hop path set and the constraint path set, all possible answer paths of the question sentences can be obtained, and finally by calculating the similarity with the question sentences and screening the answer entity of the path with the highest similarity as the final answer, the comprehensiveness and accuracy of answer entity retrieval are improved.
本申请公开了一种基于知识图谱的问答方法、装置、设备及存储介质,本申请在生成多跳路径集合时采用了逐跳路径搜索方式,剔除掉与问题句子无关的路径,避免路径数量爆炸,保证了方案应对复杂问题的可行性。并且,通过生成多跳路径集合和约束路径集合,可以得到问题句子所有可能的答案路径,最终通过计算与问题句子的相似度,筛选相似度最高的路径的答案实体作为最终答案,提升了答案实体检索的全面性和准确性。 |
---|