Patent ID: 11947548
Assignee: WALMART APOLLO, LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 8:
9. The system of claim 8, wherein the one or more processors are further configured to execute the instructions to:
obtain a plurality of training queries each of which has a known primary intention term; generate, for each of the plurality of training queries, a positive sample pair based on the known primary intention term and its corresponding query context;
generate, for each of at least one of the plurality of training queries, a negative sample pair based on a randomly-chosen unrelated intention term and its corresponding query context; and
train the weighting model based on machine learning and a minimization of a loss function associated with each of the plurality of training queries, wherein the loss function is computed based on: (a) a compatibility score between the known primary intention term and its corresponding query context from the positive sample pair of the training query, and (b) one or more compatibility scores each between the unrelated intention term and its corresponding query context from a respective negative sample pair of the training query.