# US 2021/0334464 A1 · Method of calculating relevancy, apparatus for calculating relevancy, data query apparatus, and non-transitory computer-readable storage medium

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

- Number: US 2021/0334464 A1
- Document ID: US20210334464A1
- Status: Published application
- Kind: A1
- Application number: 16/330,545
- Filed: 2018-06-19
- Published: 2021-10-28
- Earliest claimed: 2018-01-22
- Assignees: Boe Technology Group Co., Ltd.
- Applicants: BOE Technology Group Co., Ltd.
- Inventors: Zhenzhong Zhang
- Web page: https://patentgrep.com/patent/US20210334464A1

## CPC

- G06F 16/3347: {using vector based model}
- G06F 40/30: Semantic analysis
- G06F 16/3334: {Selection or weighting of terms from queries, including natural language queries}
- G06F 16/3344: {using natural language analysis}
- G06F 16/338: Presentation of query results
- G06F 40/194: Calculation of difference between files
- G06F 40/279: Recognition of textual entities
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/09: Supervised learning
- 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

The present application provides a method of calculating relevancy between a first text and a second text. The method includes respectively mapping the first text and the second text to vectors; determining a similar part and a dissimilar part between the first text and the second text based on the vectors; and calculating the relevancy between the first text and the second text using both the similar part and the dissimilar part.

## Claims

### Claim 1

A method of calculating relevancy between a first text and a second text, comprising:
respectively mapping the first text and the second text to vectors;
determining a similar part and a dissimilar part between the first text and the second text based on the vectors; and
calculating the relevancy between the first text and the second text using both the similar part and the dissimilar part.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the similar part and the dissimilar part comprises:
determining a similar part and a dissimilar part of the first text; and
determining a similar part and a dissimilar part of the second text.

### Claim 3 (depends on 1)

The method of claim 1, subsequent to respectively mapping the first text and the second text to vectors, further comprising performing dimension reduction on the vectors, thereby representing the first text and the second text respectively using low-dimension dense vectors.

### Claim 4

(canceled)

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the similar part and dissimilar part comprises performing a semantic content analysis based on the first text and the second text.

### Claim 6 (depends on 5)

The method of claim 5, wherein the semantic content analysis comprises performing a sematic matching process between the first text and the second text thereby obtaining a sematic overlay between the first text and the second text.

### Claim 7 (depends on 6)

The method of claim 6, wherein performing the sematic matching process comprises reconstructing a vector of a word in the first text using word vectors of the second text; and
calculating a semantic overlay based on a result of the reconstructing.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining the similar part and dissimilar part comprises performing a semantics decomposition on the first text and the second text.

### Claim 9 (depends on 7)

The method of claim 7, wherein the semantic overlay is calculated based on Equation (1):
min(∥Si−Σj=1mαi,j×Tj∥2+λΣj=1mαi,j2) (1);
wherein Si is a d×1 column vector of the first text; Tj is a d×1 column vector of the second text; αi,j is parameter for semantic overlay calculation; λ>0; and λ is a positive real number.

### Claim 10 (depends on 9)

The method of claim 9, wherein the similar part of the first text is calculated based on
S
i
′
=
∑
j
=
1
m
⁢
⁢
A
i
,
j
×
T
j
;
wherein S′i represents the similar part of the first text, and Ai,j is a matrix of αi,j; and
Si-S′i represents the dissimilar part of the first text.

### Claim 11 (depends on 7)

The method of claim 7, wherein the semantic overlay is calculated based on Equation (2):
min(∥Ti−Σj=1mβi,j×Sj∥2+λΣj=1mβi,j2) (2);
wherein Ti is a d×1 column vector of the second text; Sj is a d×1 column vector of the first text; βi,j is parameter for semantic overlay calculation; λ>0; and λ is a positive real number.

### Claim 12 (depends on 11)

The method of claim 11, wherein the similar part of the second text is calculated based on
T
j
′
=
∑
j
=
1
m
⁢
⁢
A
i
,
j
×
S
j
;
wherein T′j represents the similar part of the second text, and Ai,j is a matrix of βi,j; and
Tj-T′j represents the dissimilar part of the second text.

### Claim 13 (depends on 1)

The method of claim 1, wherein the relevancy between the first text and the second text is calculated using a Recurrent Neural Network using the similar part and the dissimilar part between the first text and the second text as input.

### Claim 14

(canceled)

### Claim 15 (depends on 13)

The method of claim 13, further comprising training the Recurrent Neural Network using a sample data represented as (Ss, Ts, L), wherein Ss stands for a first sample text, Ts stands for a second sample text, and L represents a sample relevancy.

### Claim 16

(canceled)

### Claim 17

An apparatus for calculating relevancy between a first text and a second text, comprising:
a memory; and
one or more processors;
wherein the memory and the one or more processors are connected with each other;
the memory stores computer-executable instructions for controlling the one or more processors to:
respectively map the first text and the second text to vectors;
determine a similar part and a dissimilar part between the first text and the second text based on the vectors; and
calculate the relevancy between the first text and the second text using both the similar part and the dissimilar part.

### Claim 18

(canceled)

### Claim 19 (depends on 17)

The apparatus of claim 17, wherein the memory further stores computer-executable instructions for controlling the one or more processors to, subsequent to respectively mapping the first text and the second text to vectors, perform dimension reduction on the vectors, thereby representing the first text and the second text respectively using low-dimension dense vectors.

### Claim 20

(canceled)

### Claim 21 (depends on 17)

The apparatus of claim 17, wherein the memory further stores computer-executable instructions for controlling the one or more processors to perform a semantic content analysis based on the first text and the second text thereby determining the similar part and dissimilar part.

### Claim 22

(canceled)

### Claim 23

(canceled)

### Claim 24 (depends on 17)

The apparatus of claim 17, wherein the memory further stores computer-executable instructions for controlling the one or more processors to perform a semantics decomposition on the first text and the second text thereby determining the similar part and dissimilar part.

### Claim 25

(canceled)

### Claim 26

(canceled)

### Claim 27

(canceled)

### Claim 28

(canceled)

### Claim 29

(canceled)

### Claim 30

(canceled)

### Claim 31

(canceled)

### Claim 32

(canceled)

### Claim 33 (depends on 17)

A data query apparatus, comprising the apparatus for calculating relevancy of claim 17.

### Claim 34 (depends on 1)

A data query method, comprising calculating relevancy between a first text and a second text according to the method of claim 1, the second text being a text selected from a plurality of potential target texts;
ranking the plurality of potential target texts based on calculation of relevancy between the plurality of potential target texts and the first text; and
selecting a target text out of the plurality of potential target texts based on a resulting of ranking the plurality of potential target texts.

### Claim 35

A non-transitory computer-readable storage medium storing computer-readable instructions, the computer-readable instructions being executable by a processor to cause the processor to perform:
respectively map a first text and a second text to vectors;
determine a similar part and a dissimilar part between the first text and the second text based on the vectors; and
calculate a relevancy between a first text and a second text using both the similar part and the dissimilar part.
