CPC G06F 40/295 (2020.01) [G06F 40/211 (2020.01); G06F 40/30 (2020.01); G06F 40/237 (2020.01); G06F 40/279 (2020.01); G06F 40/284 (2020.01)] | 13 Claims |
1. A text processing method, comprising:
obtaining target knowledge data, wherein the target knowledge data comprises a first named entity, a second named entity, and an association between the first named entity and the second named entity;
processing, through vectorization, the target knowledge data to obtain a target knowledge vector, wherein the target knowledge vector comprises a vector corresponding to the first named entity, a vector corresponding to the second named entity, and a vector corresponding to the association between the first named entity and the second named entity;
processing, through vectorization, to-be-processed text to obtain a target text vector, wherein the to-be-processed text comprises one or more named entities, and the one or more named entities comprise the first named entity;
fusing the target text vector and the target knowledge vector based on a target fusion model to obtain a fused target text vector and a fused target knowledge vector, wherein the fused target text vector comprises information about the to-be-processed text and at least a part of information in the target knowledge data, and wherein the fused target knowledge vector comprises the target knowledge data and semantic background information of the to-be-processed text; and
processing the fused target text vector and/or the fused target knowledge vector based on a target processing model to obtain a processing result corresponding to a target task.
|