Patent ID: 11934788
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 9:
10. An encoding apparatus provided in encoding equipment, characterized in that that apparatus comprises:
an obtaining module for receiving a target paragraph and a context sentence of the target paragraph from a specific user scenario, the context sentence including a sentence in one or more paragraphs before the target paragraph in the specific user scenario, a sentence in one or more paragraphs after the paragraph in the specific user scenario, or a sentence in the target paragraph, and inputting the target paragraph and the context sentence into a memory encoding model, the target paragraph comprising at least one sentence;
an input layer module for generating an original vector set and a memory vector set of the target paragraph in the input layer, the original vector set comprising a respective sentence vector of each sentence in the target paragraph, the memory vector set comprising a respective word vector of each word in the context sentence of the target paragraph;
a memory layer module for determining a first target sentence matrix of the original vector set in the memory layer according to the original vector set and the memory vector set, the first target sentence matrix describing the target paragraph according to a relationship between the original vector set and the memory vector set;
an output layer module for obtaining a paragraph vector of the target paragraph in the output layer according to the first target sentence matrix; and
a processing module for processing the paragraph vector to generate an output result associated with the target paragraph for the specific user scenario.