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

Claim 17:
18. The method of claim 17, further comprising:
obtaining a plurality of training queries each of which has a known primary intention term;
generating, for each of the plurality of training queries, a positive sample pair based on the known primary intention term and its corresponding query context;
generating, 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
training 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.