Patent ID: 11954136
Assignee: TENCENT AMERICA LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. A device for training a model for query generation, the device comprising:
at least one memory configured to store computer program code; and
at least one processor configured to access said at least one memory and operate as instructed by said computer program code, said computer program code including:
receiving code configured to cause the at least one processor to receive a training instance query corresponding to a dialogue history;
first generating code configured to cause the at least one processor to generate a first static view of the model based on a number of common words between the training instance query and the dialogue history by performing a first making operation that applies a 0-1 scaling value to the training instance query based on the number of common words between the training instance query and the dialogue history, the 0-1 scaling value being a value between 0 and 1;
second generating code configured to cause the at least one processor to generate a second static view of the model based on one or more tokens not covered by the dialogue history, the one or more tokens corresponding to one or more query words;
third generating code configured to cause the at least one processor to generate a dynamic view of the model based on a score operation that compares a candidate query generated from the model with a target query; and
training code configured to cause the at least one processor to train the model based at least on the first static view, the second static view, and the dynamic view.