US 12,147,465 B2
Question-answer processing method, apparatus, electronic device and computer-readable storage medium
Zhenzhong Zhang, Beijing (CN)
Assigned to BOE Technology Group Co., Ltd., Beijing (CN)
Appl. No. 17/754,418
Filed by BOE Technology Group Co., Ltd., Beijing (CN)
PCT Filed Apr. 29, 2021, PCT No. PCT/CN2021/090925
§ 371(c)(1), (2) Date Mar. 31, 2022,
PCT Pub. No. WO2022/226879, PCT Pub. Date Nov. 3, 2022.
Prior Publication US 2024/0119080 A1, Apr. 11, 2024
Int. Cl. G06F 16/33 (2019.01); G06F 16/332 (2019.01); G06F 16/383 (2019.01)
CPC G06F 16/383 (2019.01) [G06F 16/3329 (2019.01); G06F 16/3347 (2019.01)] 18 Claims
OG exemplary drawing
 
1. A question-answer processing method, comprising:
acquiring an input question and a candidate question-answer pair, wherein the candidate question-answer pair comprises a candidate question and a candidate answer matching the candidate question;
inputting the input question into a first model to obtain an input question vector;
calculating a similarity between the input question vector and a candidate question vector, and calculating a relevance between the input question vector and a candidate answer vector, wherein the candidate question vector is a vector corresponding to the candidate question, and the candidate answer vector is a vector corresponding to the candidate answer; and
determining a matching degree of the candidate answer and the input question according to the similarity and the relevance;
wherein the calculating the relevance between the input question vector and the candidate answer vector comprises:
calculating the relevance between the input question vector and the candidate answer vector by a formula 2, wherein the formula 2 is:

OG Complex Work Unit Math
rel(vq, va) is the relevance, vq is the input question vector, va is the candidate answer vector, vqT·va is the transpose of the input question vector and the dot product of the candidate question vector, |vq| is the length of the input question vector, |va| is the length of the candidate answer vector.