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

Claim 9:
10. The method according to claim 9, wherein the inputting n groups of third natural training sentences and fourth natural training sentences into the training model, to train the second encoding model and the second decoding model comprises:
inputting the n groups of third natural training sentences and fourth natural training sentences into the second encoding model for classification, to obtain a style vector and a content vector that correspond to each group of the third natural training sentence and a style vector and a content vector that correspond to each group of the fourth natural training sentence;
inputting a content vector corresponding to a same group of the third natural training sentence and a content vector corresponding to the fourth natural training sentence into the trained supervision model to determine a similarity, to obtain the similarity between the content vector corresponding to the third natural training sentence and the content vector corresponding to the fourth natural training sentence;
inputting the content vector and a style vector that correspond to the same group of the third natural training sentence and the content vector and a style vector that correspond to the fourth natural training sentence into the second decoding model for restoration, to obtain a restored third natural training sentence and a restored fourth natural training sentence; and
when the similarity between the content vector corresponding to the third natural training sentence and the content vector corresponding to the fourth natural training sentence, a probability that the restored third natural training sentence is the same as the third natural training sentence, and a probability that the restored fourth natural training sentence is the same as the fourth natural training sentence keep unchanged within the preset number of training times, stopping training in response to determining that the function model converges, to obtain the first encoding model and the first decoding model.