# US 2022/0292122 A1 · Data Processing Method and Apparatus

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

- Number: US 2022/0292122 A1
- Document ID: US20220292122A1
- Status: Published application
- Kind: A1
- Application number: 17/637,362
- Filed: 2020-08-06
- Published: 2022-09-15
- Earliest claimed: 2019-08-21
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Wenxiu Liang; Kaiji Chen; Wenlong Chen
- Web page: https://patentgrep.com/patent/US20220292122A1

## CPC

- G06F 16/3331: Query processing
- G06F 16/3344: {using natural language analysis}
- G06F 16/335: Filtering based on additional data, e.g. user or group profiles (filtering in web context G06F16/9535, G06F16/9536)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data processing method applied to an artificial intelligence-based intelligent search field includes obtaining a to-be-queried text, determining, from a preset database, a to-be-queried object set corresponding to the to-be-queried text, where there is one or more to-be-queried object sets, and each to-be-queried object set includes one or more to-be-queried objects, determining relationship information of a to-be-queried object in each to-be-queried object set from preset relationship information between two objects, and determining, based on the relationship information of the to-be-queried object in each to-be-queried object set, a query field corresponding to the to-be-queried text.

## Claims

### Claim 1

A method, comprising:
obtaining a to-be-queried text;
determining, from a preset database, one or more to-be-queried object sets corresponding to the to-be-queried text, wherein each of the one or more to-be-queried object sets comprises one or more to-be-queried objects;
determining, from preset relationship information, first relationship information of each of the to-be-queried objects in each of the to-be-queried object sets; and
determining, based on the first relationship information, a query field corresponding to the to-be-queried text.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the to-be-queried object sets comprises one to-be-queried object, wherein second relationship information of the to-be-queried object comprises one or more types of relationships, and wherein the method further comprises:
determining whether a first type of a first relationship of the to-be-queried object includes a second type that is of a second relationship and that belongs to a first preset field; and
determining that the first preset field belongs to the query field when the first type includes the second type.

### Claim 3 (depends on 1)

The method of claim 1, wherein each of the to-be-queried object sets comprises a plurality of to-be-queried objects, wherein second relationship information of each of the to-be-queried objects comprises a first type of a first relationship between a first to-be-queried object in each of the to-be-queried object sets and a second to-be-queried object in each of the to-be-queried object sets other than the first to-be-queried object, and wherein the method further comprises:
determining whether the first to-be-queried object and the second to-be-queried object are connected by using a second relationship with a second type that belongs to a first preset field; and
determining that the first preset field belongs to the query field when the first to-be-queried object and the second to-be-queried object are connected.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
performing natural language understanding (NLU) processing on the to-be-queried text to obtain a target text;
performing word segmentation processing on the target text to obtain word segments of the target text; and
determining, based on each of the word segments, the one or more to-be-queried objects from the preset database.

### Claim 5 (depends on 4)

The method of claim 4, wherein each of the word segments corresponds to an object in the preset database, and wherein the method further comprises setting, as different to-be-queried objects in different to-be-queried object sets, different objects in the preset database that correspond to each of the word segments.

### Claim 6 (depends on 4)

The method of claim 4, wherein the word segments comprise a first word segment corresponding to a first object in the preset database and a second word segment not corresponding to an object in the preset database, and wherein the method further comprises:
determining second relationship information of the first object from the preset relationship information;
determining, from the second relationship information, third relationship information that has a matching relationship with the second word segment;
determining a target object based on a second object when the first object is connected to the second object based on the first third relationship information in the preset database; and
setting the target object as the one or more to-be-queried objects.

### Claim 7 (depends on 1)

The method of claim 1, wherein after determining the query field, the method further comprises:
sending, to a serving device corresponding to the query field, text information corresponding to any to-be-queried object set;
receiving a query result from the serving device; and
outputting the query result.

### Claim at position 8

-15. (canceled)

### Claim 16

A terminal comprising:
a memory configured to store instructions; and
a processor coupled to the memory, wherein when executed by the processor, the instructions cause the terminal to:
obtain a to-be-queried text;
determine, from a preset database, one or more to-be-queried object sets corresponding to the to-be-queried text, wherein each of the to-be-queried object sets comprises one or more to-be-queried objects;
determine, from preset relationship information, first relationship information of each of the to-be-queried objects in each of the to-be-queried object sets; and 2vdetermine, based on the first relationship information, a query field corresponding to the to-be-queried text.

### Claim 17 (depends on 16)

The terminal of claim 16, wherein each of the to-be-queried object sets comprises one to-be-queried object, wherein second relationship information of the to-be-queried object comprises one or more types of relationships, and wherein when executed by the processor, the instructions further cause the terminal to:
determine whether a first type of a first relationship of the one to-be-queried object includes a second type that is of a second relationship and that belongs to a first preset field; and
determine that the first preset field belongs to the query field when the first type includes the second type.

### Claim 18 (depends on 16)

The terminal of claim 16, wherein each of the to-be-queried object sets comprises a plurality of to-be-queried objects, wherein second relationship information of each of the to-be-queried objects comprises a first type of a first relationship between a first to-be-queried object in each of the to-be-queried object sets and a second to-be-queried object in each of the to-be-queried object sets other than the first to-be-queried object, and wherein when executed by the processor, the instructions further cause the terminal to:
determine whether all the first to-be-queried object and the second to-be-queried object are connected by using a second relationship with a second type that belongs to a first preset field; and
determine that the first preset field belongs to the query field when the first to-be-queried object and the second to-be-queried object are connected.

### Claim 19 (depends on 16)

The terminal of claim 16, wherein when executed by the processor, the instructions further cause the terminal to:
perform natural language understanding (NLU) processing on the to-be-queried text to obtain a target text;
perform word segmentation processing on the target text to obtain word segments of the target text; and
determine, based on each of the word segments, the to-be-queried objects from the preset database.

### Claim 20 (depends on 19)

The terminal of claim 19, wherein each of the word segments corresponds to an object in the preset database, and wherein when executed by the processor, the instructions further cause the terminal to set, as different to-be-queried objects in different to-be-queried object sets, different objects in the preset database that correspond to each of the word segments.

### Claim 21 (depends on 19)

The terminal of claim 19, wherein the word segments comprise a first word segment corresponding to a first object in the preset database and a second word segment not corresponding to an object in the preset database, and wherein when executed by the processor, the instructions further cause the terminal to:
determine second relationship information of the first object from the preset relationship information;
determine, from the second relationship information, third relationship information that has a matching relationship with the second word segment;
determine a target object based on a second object when the first object is connected to the second object based on the third relationship information in the preset database; and
set the target object as the one or more to-be-queried objects.

### Claim 22 (depends on 16)

The terminal of claim 16, wherein after determining the query field, when executed by the processor, the instructions further cause the terminal to:
send, to a serving device corresponding to the query field, text information corresponding to any to-be-queried object set;
receive a query result from the serving device; and
output the query result.

### Claim 23

A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by a processor, cause an apparatus to:
obtain a to-be-queried text;
determine, from a preset database, one or more to-be-queried object sets corresponding to the to-be-queried text, wherein each of the to-be-queried object sets comprises one or more to-be-queried objects;
determine, from preset relationship information, first relationship information of each of the to-be-queried objects in each of the to-be-queried object sets; and
determine, based on the first relationship information, a query field corresponding to the to-be-queried text.

### Claim 24 (depends on 23)

The computer program product of claim 23, wherein each of the to-be-queried object sets comprises one to-be-queried object, wherein second relationship information of the to-be-queried object comprises one or more types of relationships, and wherein the computer-executable instructions further cause the apparatus to:
Determine whether a first type of a first relationship of the to-be-queried object includes a second type that is of a second relationship and that belongs to a first preset field; and
determine that the first preset field belongs to the query field when the first type includes the second type.

### Claim 25 (depends on 23)

The computer program product of claim 23, wherein each of the to-be-queried object sets comprises a plurality of to-be-queried objects, wherein second relationship information of each of the to-be-queried objects comprises a first type of a first relationship between a first to-be-queried object in each of the to-be-queried object sets and a second to-be-queried object in each of the to-be-queried object sets other than the first to-be-queried object, and wherein the computer-executable instructions further cause the apparatus to:
determine whether all the first to-be-queried object and the second to-be-queried object are connected using a second relationship with a second type that belongs to a first preset field; and
determine that the first preset field belongs to the query field when the first to-be-queried object and the second to-be-queried object are connected.

### Claim 26 (depends on 23)

The computer program product of claim 23, wherein the computer-executable instructions further cause the apparatus to:
perform natural language understanding (NLU) processing on the to-be-queried text to obtain a target text;
perform word segmentation processing on the target text to obtain word segments of the target text; and
determine, based on each of the word segments, the one or more to-be-queried objects from the preset database.

### Claim 27 (depends on 26)

The computer program product of claim 26, wherein each of the word segments corresponds to an object in the preset database, and wherein the computer-executable instructions further cause the apparatus to set, as different to-be-queried objects in different to-be-queried object sets, different objects in the preset database that correspond to each of the word segments.

### Claim 28 (depends on 26)

The computer program product of claim 26, wherein the word segments comprise a first word segment corresponding to a first object in the preset database and a second word segment not corresponding to an object in the preset database, and wherein the computer-executable instructions further cause the apparatus to:
determine second relationship information of the first object from the preset relationship information;
determine, from the second relationship information, third relationship information that has a matching relationship with the second word segment;
determine a target object based on a second object when the first object is connected to the second object based on the third relationship information in the preset database; and
set the target object as the one or more to-be-queried objects.
