# US 2021/0286835 A1 · Method and device for matching semantic text data with a tag, and computer-readable storage medium having stored instructions

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

- Number: US 2021/0286835 A1
- Document ID: US20210286835A1
- Status: Published application
- Kind: A1
- Application number: 17/260,177
- Filed: 2019-07-04
- Published: 2021-09-16
- Earliest claimed: 2018-12-27
- Assignees: China Unionpay Co., Ltd.
- Applicants: China Unionpay Co., Ltd.
- Inventors: Yu WANG; Xuetao QIU; Sishuang WAN; Xiaohan SHE; Yang WANG; Qi ZHANG; Zhijun FEI
- Web page: https://patentgrep.com/patent/US20210286835A1

## CPC

- G06F 16/35: Clustering; Classification
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 16/36: Creation of semantic tools, e.g. ontology or thesauri
- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F 40/30: Semantic analysis
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method for matching semantic text data with tags. The method comprises: pre-processing multiple semantic text data to obtain original corpus data comprising multiple semantic independent members; determining the degree of association between any two of the multiple semantic independent members according to a reproduction relationship of the multiple semantic independent members in a natural text, determining a theme corresponding to the association according to the degree of association between any two, and thus determining a mapping probability relationship between the multiple semantic text data and the theme; selecting one of the multiple semantic independent members corresponding to the association as a tag of the theme, and mapping the multiple semantic text data to the tag according to the determined mapping probability relationship between the multiple semantic text data and the theme; and taking the determined mapping relationship between the multiple semantic text data and the tag as a supervision material, and matching the unmapped semantic text data with the tag according to the supervision material.

## Claims

### Claim 1

A method for matching semantic text data with a tag, comprising:
pre-processing a plurality of semantic text data to obtain original corpus data comprising a plurality of semantically independent members;
determining a degree of association between any two of the plurality of semantically independent members based on a reproduction relationship of the plurality of semantically independent members in a natural text, and determining a theme corresponding to the association based on the degree of association between the any two semantically independent members, and then determining a mapping probability relationship between the plurality of semantic text data and the theme;
selecting one of the plurality of semantically independent members corresponding to the association as a tag of the theme, and mapping the plurality of semantic text data to the tag based on the determined mapping probability relationship between the plurality of semantic text data and the theme; and
using determined mapping relationship between the plurality of semantic text data and the tag as a supervision material, and matching unmapped semantic text data with the tag based on the supervision material.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
the pre-processing comprises one or more of segmenting the plurality of semantic text data, removing a stop word, removing a non-Chinese character, removing a numeric symbol, and performing word error correction.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the pre-processing comprises extracting only the plurality of semantic text data containing negative semantics and/or question semantics.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the reproduction relationship in the natural text is a degree of association of context reproduction in the original corpus data and/or in the natural text corpus library.

### Claim 5 (depends on 1)

The method of claim 1, wherein the determining the degree of association between any two of the plurality of semantically independent members comprises:
indexing all semantically independent members in the original corpus data;
determining a word vector of the plurality of semantically independent members in the original corpus data, and determining a similarity between any two of the plurality of semantically independent members; and
constructing a similarity matrix of a semantically independent member pair based on the indexing and the similarity.

### Claim 6 (depends on 5)

The method of claim 5, wherein the determining the theme corresponding to the association based on the degree of association between the any two semantically independent members comprises:
performing Gibbs iterative sampling on the similarity matrix to obtain a mapping relationship between the original corpus data and the theme, and a mapping relationship between the theme and the semantically independent member pair, and then determining the mapping probability relationship between the plurality of semantic text data and the theme and a mapping probability relationship between the theme and the plurality of semantically independent members.

### Claim 7 (depends on 6)

The method of claim 6, wherein the selecting one of the plurality of semantically independent members corresponding to the association as a tag of the theme comprises:
clustering the plurality of semantic text data, and determining the theme of the plurality of semantic text data after clustering based on the mapping relationship between the plurality of semantic text data and the theme; and
mapping the theme of the plurality of semantic text data after clustering as a semantically independent member based on the mapping probability relationship between the theme and the plurality of the semantically independent members, to use the semantically independent member as the tag corresponding to the theme after clustering.

### Claim 8 (depends on 7)

The method of claim 7, wherein the determining the theme of the plurality of semantic text data after clustering based on the mapping probability relationship between the plurality of semantic text data and the theme comprises:
determining a maximum probability theme of each of the plurality of semantic text data;
determining a number of the maximum probability themes in each cluster; and
using the maximum probability theme with a largest number in the cluster as the theme after clustering.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
determining a predetermined number of semantically independent members with a highest probability value corresponding to the theme after clustering based on the mapping probability relationship between the theme and the plurality of the semantically independent members, to serve as the tag of the theme after clustering.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
if the tags of different themes after clustering comprise a same tag, comparing probability values of the same tag in the different themes after clustering, and keeping the tag with a largest probability value as the tag of the theme after clustering to which the tag with a largest probability value belongs; and
for themes except for the theme after clustering to which the tag with a largest probability value belongs, using a semantically independent member whose probability value is lower than the probability values of the same tag as the tag of the theme after clustering.

### Claim 11

A device for matching semantic text data with a tag, comprising:
a pre-processing unit configured to pre-process a plurality of semantic text data to obtain original corpus data comprising a plurality of semantically independent members;
a theme model unit configured to determine a degree of association between any two of the plurality of semantically independent members based on a reproduction relationship of the plurality of semantically independent members in a natural text, and determine a theme corresponding to the association based on the degree of association between the any two semantically independent members, and then determine a mapping probability relationship between the plurality of semantic text data and the theme;
a tag-determining unit configured to select one of the plurality of semantically independent members corresponding to the association as a tag of the theme, and map the plurality of semantic text data to the tag based on the determined mapping probability relationship between the plurality of semantic text data and the theme; and
a tag-matching unit configured to use determined mapping relationship between the plurality of semantic text data and the tag as a supervision material, and match unmapped semantic text data with the tag based on the supervision material.

### Claim 12 (depends on 11)

The device of claim 11, wherein:
the pre-processing comprises one or more of segmenting the plurality of semantic text data, removing a stop word, removing a non-Chinese character, removing a numeric symbol, and performing word error correction, and extracting only the plurality of semantic text data containing negative semantics and/or question semantics.

### Claim 13

(canceled)

### Claim 14 (depends on 11)

The device of claim 11, wherein:
the reproduction relationship in the natural text is a degree of association of context reproduction in the original corpus data and/or in the natural text corpus library.

### Claim 15 (depends on 11)

The device of claim 11, wherein the theme model unit configured to determine the degree of association between any two of the plurality of semantically independent members comprises the theme model unit configured to:
index all semantically independent members in the original corpus data;
determine a word vector of the plurality of semantically independent members in the original corpus data, and determining a similarity between any two of the plurality of semantically independent members; and
construct a similarity matrix of a semantically independent member pair based on the indexing and the similarity.

### Claim 16 (depends on 15)

The device of claim 15, wherein the theme model unit configured to determine the theme corresponding to the association based on the degree of association between the any two semantically independent members comprises the theme model unit configured to:
perform Gibbs iterative sampling on the similarity matrix to obtain a mapping relationship between the original corpus data and the theme, and a mapping relationship between the theme and the semantically independent member pair, and then determine the mapping probability relationship between the plurality of semantic text data and the theme and a mapping probability relationship between the theme and the plurality of semantically independent members.

### Claim 17 (depends on 16)

The device of claim 16, wherein the tag-determining unit configured to select one of the plurality of semantically independent members corresponding to the association as a tag of the theme comprises the tag-determining unit configured to:
cluster the plurality of semantic text data, and determine the theme of the plurality of semantic text data after clustering based on the mapping relationship between the plurality of semantic text data and the theme; and
map the theme of the plurality of semantic text data after clustering as a semantically independent member based on the mapping probability relationship between the theme and the plurality of the semantically independent members, to use the semantically independent member as the tag corresponding to the theme after clustering.

### Claim 18 (depends on 17)

The device of claim 17, wherein the tag-determining unit configured to determine the theme of the plurality of semantic text data after clustering based on the mapping probability relationship between the plurality of semantic text data and the theme comprises the tag-determining unit configured to:
determine a maximum probability theme of each of the plurality of semantic text data;
determine a number of the maximum probability themes in each cluster; and
use the maximum probability theme with a largest number in the cluster as the theme after clustering.

### Claim 19 (depends on 18)

The device of claim 18, wherein the tag-determining unit is configured to:
determine a predetermined number of semantically independent members with a highest probability value corresponding to the theme after clustering based on the mapping probability relationship between the theme and the plurality of the semantically independent members, to serve as the tag of the theme after clustering.

### Claim 20 (depends on 19)

The device of claim 19, wherein the tag-determining unit is configured to:
if the tags of different themes after clustering comprise a same tag, compare probability values of the same tag in the different themes after clustering, and keep the tag with a largest probability value as the tag of the theme after clustering to which the tag with a largest probability value belongs; and
for themes except for the theme after clustering to which the tag with a largest probability value belongs, use a semantically independent member whose probability value is lower than the probability values of the same tag as the tag of the theme after clustering.

### Claim 21 (depends on 1)

A computer-readable storage medium having stored instructions, that when executed by a processor, configure the processor to perform the method of claim 1.
