# US 2024/0004913 A1 · Long text clustering method based on introducing external label information

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

- Number: US 2024/0004913 A1
- Document ID: US20240004913A1
- Status: Published application
- Kind: A1
- Application number: 17/809,624
- Filed: 2022-06-29
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Zhong Fang Yuan; Tong Liu; Wen Wang; Li Juan Gao; Xiang Yu Yang
- Web page: https://patentgrep.com/patent/US20240004913A1

## CPC

- G06F 16/353: into predefined classes
- G06F 16/31: Indexing; Data structures therefor; Storage structures
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/23: Clustering techniques
- G06F 18/24: Classification techniques
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In an approach for using an open source of existing text labeling models to label sentences that need to be clustered with multiple external tags and then to use the tags as auxiliary information to perform the clustering at a dual level, a processor receives a set of text, wherein the set of text contains one or more sentences. A processor tags each sentence of the set of text with one or more tags using a plurality of open-source text classification models. A processor performs a preliminary clustering of one or more nodes under strict conditions using a canopy clustering algorithm.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving, by one or more processors, a set of text, wherein the set of text contains one or more sentences;
tagging, by the one or more processors, each sentence of the set of text with one or more tags using a plurality of open-source text classification models; and
performing, by the one or more processors, a preliminary clustering of one or more nodes under strict conditions using a canopy clustering algorithm.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein receiving the set of text further comprises:
dividing, by the one or more processors, each sentence of the set of text into one or more categories, wherein each category of the one or more categories represents a grouping regarded as having a particular shared characteristic.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising:
subsequent to tagging each sentence of the set of text with the one or more tags using the plurality of open-source text classification models, filtering, by the one or more processors, the one or more tags using a confidence score;
retaining, by the one or more processors, each tag of the one or more tags with a confidence score greater than 0.5; and
removing, by the one or more processors, each tag of the one or more tags with a confidence score less than 0.5.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, further comprising:
subsequent to filtering the one or more tags using the confidence score, representing, by the one or more processors, each sentence of the set of text as a first node in a graph structure; and
representing, by the one or more processors, each tag of the one or more tags as an attribute of the first node in the graph structure.

### Claim 5 (depends on 4)

The computer implemented method of claim 4, further comprising:
subsequent to representing each tag of the one or more tags as an attribute of the first node in the graph structure, embedding, by the one or more processors, each sentence and each tag of the first node using a one-hot encoding method; and
vectorizing, by the one or more processors, each sentence and each tag of the first node.

### Claim 6 (depends on 1)

The computer implemented method of claim 1, wherein performing the preliminary clustering of the one or more nodes under strict conditions using the canopy clustering algorithm further comprises:
enabling, by the one or more processors, a part of the one or more nodes to organize to form a settlement.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining, by the one or more processors, the first node is a subordinate of a cluster using an algorithm;
organizing, by the one or more processors, the first node into a miniature graph;
calculating, by the one or more processors, a degree of similarity between the miniature graph and a second node; and
assigning, by the one or more processors, a clustering relationship to the miniature graph and the second node using link prediction.

### Claim 8

A computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to receive a set of text, wherein the set of text contains one or more sentences;
program instructions to tag each sentence of the set of text with one or more tags using a plurality of open-source text classification models; and
program instructions to perform a preliminary clustering of one or more nodes under strict conditions using a canopy clustering algorithm.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein receiving the set of text further comprises:
program instructions to divide each sentence of the set of text into one or more categories, wherein each category of the one or more categories represents a grouping regarded as having a particular shared characteristic.

### Claim 10 (depends on 8)

The computer program product of claim 8, further comprising:
subsequent to tagging each sentence of the set of text with the one or more tags using the plurality of open-source text classification models, program instructions to filter the one or more tags using a confidence score;
program instructions to retain each tag of the one or more tags with a confidence score greater than 0.5; and
program instructions to remove each tag of the one or more tags with a confidence score less than 0.5.

### Claim 11 (depends on 10)

The computer program product of claim 10, further comprising:
subsequent to filtering the one or more tags using the confidence score, program instructions to represent each sentence of the set of text as a first node in a graph structure; and
program instructions to represent each tag of the one or more tags as an attribute of the first node in the graph structure.

### Claim 12 (depends on 11)

The computer program product of claim 11, further comprising:
subsequent to representing each tag of the one or more tags as an attribute of the first node in the graph structure, program instructions to embed each sentence and each tag of the first node using a one-hot encoding method; and
program instructions to vectorize each sentence and each tag of the first node.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein performing the preliminary clustering of the one or more nodes under strict conditions using the canopy clustering algorithm further comprises:
program instructions to enable a part of the one or more nodes to organize to form a settlement.

### Claim 14 (depends on 8)

The computer program product of claim 8, further comprising:
program instructions to determine the first node is a subordinate of a cluster using an algorithm;
program instructions to organize the first node into a miniature graph;
program instructions to calculate a degree of similarity between the miniature graph and a second node; and
program instructions to assign a clustering relationship to the miniature graph and the second node using link prediction.

### Claim 15

A computer system comprising:
one or more computer processors;
one or more computer readable storage media;
program instructions collectively stored on the one or more computer readable storage media for execution by at least one of the one or more computer processors, the stored program instructions comprising:
program instructions to receive a set of text, wherein the set of text contains one or more sentences;
program instructions to tag each sentence of the set of text with one or more tags using a plurality of open-source text classification models; and
program instructions to perform a preliminary clustering of one or more nodes under strict conditions using a canopy clustering algorithm.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein receiving the set of text further comprises:
program instructions to divide each sentence of the set of text into one or more categories, wherein each category of the one or more categories represents a grouping regarded as having a particular shared characteristic.

### Claim 17 (depends on 15)

The computer system of claim 15, further comprising:
subsequent to tagging each sentence of the set of text with the one or more tags using the plurality of open-source text classification models, program instructions to filter the one or more tags using a confidence score;
program instructions to retain each tag of the one or more tags with a confidence score greater than 0.5; and
program instructions to remove each tag of the one or more tags with a confidence score less than 0.5.

### Claim 18 (depends on 17)

The computer system of claim 17, further comprising:
subsequent to filtering the one or more tags using the confidence score, program instructions to represent each sentence of the set of text as a first node in a graph structure; and
program instructions to represent each tag of the one or more tags as an attribute of the first node in the graph structure.

### Claim 19 (depends on 18)

The computer system of claim 18, further comprising:
subsequent to representing each tag of the one or more tags as an attribute of the first node in the graph structure, program instructions to embed each sentence and each tag of the first node using a one-hot encoding method; and
program instructions to vectorize each sentence and each tag of the first node.

### Claim 20 (depends on 15)

The computer system of claim 15, further comprising:
program instructions to determine the first node is a subordinate of a cluster using an algorithm;
program instructions to organize the first node into a miniature graph;
program instructions to calculate a degree of similarity between the miniature graph and a second node; and
program instructions to assign a clustering relationship to the miniature graph and the second node using link prediction.
