# US 2023/0056131 A1 · Server and method for classifying entities of a query

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

- Number: US 2023/0056131 A1
- Document ID: US20230056131A1
- Status: Published application
- Kind: A1
- Application number: 17/982,947
- Filed: 2022-11-08
- Published: 2023-02-23
- Earliest claimed: 2014-06-17
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Kaheer SULEMAN
- Web page: https://patentgrep.com/patent/US20230056131A1

## CPC

- G06F 16/3329: Natural language query formulation
- G06F 16/3344: {using natural language analysis}
- G06F 16/353: into predefined classes
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A server, method, and non-transitory computer readable medium for ranking a plurality of data sources are provided. The server includes a network interface, a memory storage unit and a processor. The method involves receiving an input query, identifying entities of the input query using conditional random fields, generating a normalized query and applying a support vector machine to the normalized query. The non-transitory computer readable medium is encoded with programming instructions to direct a processor to carry out the method.

## Claims

### Claim at position 1

-33. (canceled)

### Claim 34

A server for generating an output command by classifying entities of an input query, the server comprising:
a network interface for receiving the input query;
a memory storage unit for storing the input query and for storing programming instructions; and
a processor in communication with the network interface and the memory storage unit, the programming instructions when executed by the processor configured to cause the server to:
identify a first entity and a second entity in the input query using a natural language processing model, wherein the first entity and the second entity are distinct entities within a same entity type;
generate a normalized query by replacing the first entity of the input query with a first generic identifier representing the same entity type and replacing the second entity of the input query with a second generic identifier representing the same entity type, wherein the first generic identifier and the second generic identifier are the same;
determine, using a machine learning model on the normalized query including the first generic identifier and the second generic identifier, a first sub-entity type of the same entity type for the first entity and a second sub-entity type of the same entity type for the second entity, wherein the first sub-entity type and the second sub-entity type are distinct sub-entity types within the same entity type; and
generate the output command in response to the input query, wherein the output command is generated based on at least the first entity belonging to the first sub-entity type and the second entity belonging to the second sub-entity type.

### Claim 35 (depends on 34)

The server of claim 34, wherein the natural language processing model includes a conditional random field model, wherein the machine learning model includes a support vector machine model.

### Claim 36 (depends on 35)

The server of claim 35 wherein the processor is configured to extract a first plurality of features for the first entity based at least on the first generic identifier in the normalized query.

### Claim 37 (depends on 36)

The server of claim 36, wherein the processor is configured to extract the first plurality of features from a first window of words associated with the first generic identifier in the normalized query.

### Claim 38 (depends on 36)

The server of claim 36, wherein the processor is configured to apply the machine learning model to the first plurality of features.

### Claim 39 (depends on 37)

The server of claim 37, wherein the first window of words has a predetermined first window size.

### Claim 40 (depends on 39)

The server of claim 39, wherein the predetermined first window size of the first window of words is the same as a second window size of a second window of words associated with the second generic identifier in the normalized query.

### Claim 41

A method of generating an output command by classifying entities of an input query, the method comprising:
receiving the input query;
identifying a first entity and a second entity in the input query using a natural language processing model, wherein the first entity and the second entity are distinct entities within a same entity type;
generating a normalized query by replacing the first entity of the input query with a first generic identifier representing the same entity type and replacing the second entity of the input query with a second generic identifier representing the same entity type, wherein the first generic identifier and the second generic identifier are the same;
determining, using a machine learning model on the normalized query including the first generic identifier and the second generic identifier, a first sub-entity type of the same entity type for the first entity and a second sub-entity type of the same entity type for the second entity, wherein the first sub-entity type and the second sub-entity type are distinct sub-entity types within the same entity type; and
generating the output command in response to the input query, wherein the output command is generated based on at least the first entity belonging to the first sub-entity type and the second entity belonging to the second sub-entity type.

### Claim 42 (depends on 41)

The method of claim 41, wherein the natural language processing model includes a conditional random field model, and wherein the machine learning model includes a support vector machine model.

### Claim 43 (depends on 42)

The method of claim 42, the method further comprising:
extracting the first entity and the second entity from the input query; and
extracting a first plurality of features for the first entity based at least on the first generic identifier in the normalized query.

### Claim 44 (depends on 43)

The method of claim 43, wherein extracting the first plurality of features comprises extracting the first plurality of features from a first window of words associated with the first generic identifier in the normalized query.

### Claim 45 (depends on 43)

The method of claim 43, the method further comprising applying the support vector machine model to the first plurality of features.

### Claim 46 (depends on 44)

The method of claim 44, wherein the first window of words has a predetermined first window size.

### Claim 47 (depends on 46)

The method of claim 46, wherein the predetermined first window size of the first window of words is distinct from a second window size of a second window of words associated with the second generic identifier in the normalized query.

### Claim 48

A non-transitory computer readable medium encoded with programming instructions for generating an output command by classifying entities of an input query, the programming instructions directing a processor to:
receive the input query;
identify a first entity and a second entity in the input query using a natural language processing model, wherein the first entity and the second entity are distinct entities within a same entity type;
generate a normalized query by replacing the first entity of the input query with a first generic identifier representing the same entity type and replacing the second entity of the input query with a second generic identifier representing the same entity type, wherein the first generic identifier and the second generic identifier are the same;
determine, using a machine learning model on the normalized query including the first generic identifier and the second generic identifier, a first sub-entity type of the same entity type for the first entity and a second sub-entity type of the same entity type for the second entity, wherein the first sub-entity type and the second sub-entity type are distinct sub-entity types within the same entity type; and
generate the output command in response to the input query, wherein the output command is generated based on at least the first entity belonging to the first sub-entity type and the second entity belonging to the second sub-entity type.

### Claim 49 (depends on 48)

The non-transitory computer readable medium of claim 48, wherein the natural language processing model includes a conditional random field model, and wherein the machine learning model includes a support vector machine model.

### Claim 50 (depends on 49)

The non-transitory computer readable medium of claim 49, the programming instructions further directing the processor to:
extract the first entity and the second entity from the input query; and
extract a first plurality of features for the first entity based at least on the first generic identifier in the normalized query.

### Claim 51 (depends on 50)

The non-transitory computer readable medium of claim 50, wherein extracting the first plurality of features comprises extracting the first plurality of features from a first window of words associated with the first generic identifier in the normalized query.

### Claim 52 (depends on 50)

The non-transitory computer readable medium of claim 50, the programming instructions further directing the processor to:
apply the support vector machine model to the first plurality of features.

### Claim 53 (depends on 51)

The non-transitory computer readable medium of claim 51, wherein the first window of words has a predetermined first window size.
