# US 2022/0277143 A1 · Methods and apparatus for natural language understanding in conversational systems using machine learning processes

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0277143 A1
- Document ID: US20220277143A1
- Status: Published application
- Kind: A1
- Application number: 17/187,762
- Filed: 2021-02-27
- Published: 2022-09-01
- Earliest claimed: 2021-02-27
- Assignees: Walmart Apollo, LLC
- Applicants: Walmart Apollo, LLC
- Inventors: Pratik Sridatt Jayarao; Arpit Sharma; Deepa Mohan
- Web page: https://patentgrep.com/patent/US20220277143A1

## CPC

- G06F 40/295: Named entity recognition
- G06F 40/30: Semantic analysis
- G06F 40/211: Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/56: Natural language generation
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0499: Feedforward networks
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

This application relates to apparatus and methods for natural language understanding in conversational systems using machine learning processes. In some examples, a computing device receives a request that identifies textual data. The computing device applies a natural language model to the textual data to generate first embeddings. In some examples, the natural language model is trained on retail data, such as item descriptions and chat session data. The computing device also applies a dependency based model to the textual data to generate second embeddings. Further, the computing device concatenates the first and second embeddings, and applies an intent and entity classifier to the concatenated embeddings to determine entities, and an intent, for the request. The computing device may generate a response to the request based on the determined intent and entities.

## Claims

### Claim 1

A system comprising:
a database; and
a computing device communicatively coupled to the database and configured to:
receive input data comprising a plurality of characters;
apply a natural language model to the input data to generate first output embeddings;
apply a dependency based model to the input data to generate second output embeddings;
determine, based on applying a classifier model to the first output embeddings and the second output embeddings, output values; and
store the third output values in the database.

### Claim 2 (depends on 1)

The system of claim 1, wherein the computing device is further configured to concatenate the first output embeddings and the second output embeddings to generate concatenated embeddings, wherein the classifier is applied to the concatenated embeddings.

### Claim 3 (depends on 1)

The system of claim 1, wherein the output values characterize at least one entity and an intent of the plurality of characters.

### Claim 4 (depends on 1)

The system of claim 1, wherein the computing device is further configured to tokenize the input data into a plurality of tokens, wherein the natural language model is applied to the tokenized input data.

### Claim 5 (depends on 1)

The system of claim 1, wherein applying the dependency based model to the input data further comprises generating dependency embeddings based on the input data, and applying a transformer encoder to the dependency embeddings.

### Claim 6 (depends on 5)

The system of claim 5, wherein applying the dependency based model to the input data further comprises applying a linear layer to output data of the transformer encoder to generate the second output embeddings.

### Claim 7 (depends on 1)

The system of claim 1, wherein the input data is received in a request from a second computing device, and wherein the computing device is further configured to generate a response to the request based on the output values.

### Claim 8 (depends on 1)

The system of claim 1, wherein the natural language model is a BERT model.

### Claim 9 (depends on 8)

The system of claim 8, the computing device is further configured to train the BERT model based on catalog data and chat session data.

### Claim 10

A method comprising:
receiving input data comprising a plurality of characters;
applying a natural language model to the input data to generate first output embeddings;
applying a dependency based model to the input data to generate second output embeddings;
determining, based on applying a classifier model to the first output embeddings and the second output embeddings, output values; and
storing the third output values in the database.

### Claim 11 (depends on 10)

The method of claim 10 further comprising concatenating the first output embeddings and the second output embeddings to generate concatenated embeddings, wherein the classifier is applied to the concatenated embeddings.

### Claim 12 (depends on 10)

The method of claim 10, wherein the output values characterize at least one entity and an intent of the plurality of characters.

### Claim 13 (depends on 10)

The method of claim 10 further comprising tokenizing the input data into a plurality of tokens, wherein the natural language model is applied to the tokenized input data.

### Claim 14 (depends on 10)

The method of claim 10 wherein applying the dependency based model to the input data further comprises generating dependency embeddings based on the input data, and applying a transformer encoder to the dependency embeddings.

### Claim 15 (depends on 15)

The method of claim 15 wherein applying the dependency based model to the input data further comprises applying a linear layer to output data of the transformer encoder to generate the second output embeddings.

### Claim 16 (depends on 10)

The method of claim 10, wherein the natural language model is a BERT model, the method further comprises training the BERT model based on catalog data and chat session data.

### Claim 17

A non-transitory computer readable medium having instructions stored thereon, wherein the instructions, when executed by at least one processor, cause a device to perform operations comprising:
receiving input data comprising a plurality of characters;
applying a natural language model to the input data to generate first output embeddings;
applying a dependency based model to the input data to generate second output embeddings;
determining, based on applying a classifier model to the first output embeddings and the second output embeddings, output values; and
storing the third output values in the database.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, further comprising instructions stored thereon that, when executed by the at least one processor, further cause the device to perform operations comprising concatenating the first output embeddings and the second output embeddings to generate concatenated embeddings, wherein the classifier is applied to the concatenated embeddings.

### Claim 19 (depends on 17)

The non-transitory computer readable medium of claim 17, further comprising instructions stored thereon that, when executed by the at least one processor, further cause the device to perform operations comprising:
tokenizing the input data into a plurality of tokens, wherein the natural language model is applied to the tokenized input data;
generating dependency embeddings based on the input data; and
applying a transformer encoder to the dependency embeddings.

### Claim 20 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the natural language model is a BERT model, and further comprising instructions stored thereon that, when executed by the at least one processor, further cause the device to perform operations comprising, training the BERT model based on catalog data and chat session data.
