# US 10,956,677 B2 · Statistical preparation of data using semantic clustering

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

- Number: US 10,956,677 B2
- Document ID: US10956677B2
- Status: Granted
- Kind: B2
- Application number: 15/888,621
- Filed: 2018-02-05
- Published: 2019-08-08
- Granted: 2021-03-23
- Earliest claimed: 2018-02-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Daniel V Walker; Graham J Wills
- Web page: https://patentgrep.com/patent/US10956677B2

## CPC

- G06F 16/35: Clustering; Classification
- G06F 40/30: Semantic analysis
- G06F 16/313: {Selection or weighting of terms for indexing}
- G06F 16/322: {Trees}
- G06F 16/353: into predefined classes
- G06F 40/205: Parsing
- G06F 40/253: Grammatical analysis; Style critique
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Performing an operation comprising analyzing an electronic text corpus by a natural language processing (NLP) algorithm executing on a processor to determine a set of target terms specified in the electronic text corpus, analyzing the electronic text corpus by the NLP algorithm to determine a weight for each pair of terms in the set of target terms, and storing an indication of each pair of terms and the respective weight in a lookup table in a computer memory for runtime analysis of an input text data.

## Claims

### Claim 1

A computer program product, comprising:
a non-transitory computer-readable storage medium having computer readable program code embodied therewith, the computer readable program code executable by a processor to perform an operation comprising:
analyzing an electronic text corpus using a natural language processing (NLP) algorithm to determine a weight for each pair of terms in a set of target terms;
storing an indication of each pair of terms and the respective weight in a lookup table in a computer memory for runtime analysis of an input text data;
receiving, at runtime, input data;
upon determining that a first term included in a first row of the input data is not included in the lookup table, clustering the first row without reference to the lookup table; and
upon determining that a second term included in a second row of the input data is included in the lookup table:
clustering the second row based at least in part on a first weight in the lookup table.

### Claim 2 (depends on 1)

The computer program product of claim 1, the operation further comprising:
clustering each row of a plurality of rows in the input data into a plurality of clusters, based at least in part on the weights specified in the lookup table for each pair of terms.

### Claim 3 (depends on 1)

The computer program product of claim 1, the operation further comprising analyzing the text corpus to determine the set of target terms, comprising one or more of:
applying the NLP to perform a chunking of a text of the electronic text corpus, wherein the set of target terms comprises a one or more terms determined to be most frequently occurring in the electronic text corpus; and
applying the NLP algorithm to identify, for each of a plurality of sentences in the electronic text corpus, a plurality of parts of speech of each sentence, wherein the set of target terms further comprises one or more terms most frequently occurring as a first part of speech in each sentence.

### Claim 4 (depends on 3)

The computer program product of claim 3, wherein analyzing the text corpus to determine the set of target terms further comprises one or more of:
generating a grammar parse tree for each sentence in the electronic text corpus, wherein the set of target terms further comprises one or more terms determined to be included in a count of dependencies exceeding a dependency threshold; and
identifying a set of noun phrases having a number of words that is less than a phrase threshold, wherein the set of terms further comprises the identified set of noun phrases.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein analyzing the text corpus to determine the weight for each pair of terms is based on one or more of:
determining a co-occurrence count of the terms in each term pair;
determining an average textual distance between the terms of each term pair;
determining a type of dependency between the terms in each parse tree generated for the term pair.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the electronic text corpus is specific to a domain, wherein the generated lookup table is specific to the domain.

### Claim 7 (depends on 6)

The computer program product of claim 6, the operation further comprising:
merging the generated lookup table with a predefined lookup table comprising a plurality of predefined pairs of terms and associated weights.

### Claim 8

A system, comprising:
a processor; and
a memory storing instructions which, when executed by the processor, performs an operation comprising:
analyzing an electronic text corpus using a natural language processing (NLP) algorithm to determine a weight for each pair of terms in a set of target terms;
storing an indication of each pair of terms and the respective weight in a lookup table in a computer memory for runtime analysis of an input text data;
receiving, at runtime, input data;
upon determining that a first term included in a first row of the input data is not included in the lookup table, clustering the first row without reference to the lookup table; and
upon determining that a second term included in a second row of the input data is included in the lookup table:
clustering the second row based at least in part on a first weight in the lookup table.

### Claim 9 (depends on 8)

The system of claim 8, the operation further comprising:
clustering each row of a plurality of rows in the input data into a plurality of clusters, based at least in part on the weights specified in the lookup table for each pair of terms.

### Claim 10 (depends on 8)

The system of claim 8, the operation further comprising analyzing the text corpus to determine the set of target terms, comprising one or more of:
applying the NLP to perform a chunking of a text of the electronic text corpus, wherein the set of target terms comprises a one or more terms determined to be most frequently occurring in the electronic text corpus; and
applying the NLP algorithm to identify, for each of a plurality of sentences in the electronic text corpus, a plurality of parts of speech of each sentence, wherein the set of target terms further comprises one or more terms most frequently occurring as a first part of speech in each sentence.

### Claim 11 (depends on 10)

The system of claim 10, wherein analyzing the text corpus to determine the set of target terms further comprises one or more of:
generating a grammar parse tree for each sentence in the electronic text corpus, wherein the set of target terms further comprises one or more terms determined to be included in a count of dependencies exceeding a dependency threshold; and
identifying a set of noun phrases having a number of words that is less than a phrase threshold, wherein the set of terms further comprises the identified set of noun phrases.

### Claim 12 (depends on 8)

The system of claim 8, wherein analyzing the text corpus to determine the weight for each pair of terms is based on one or more of:
determining a co-occurrence count of the terms in each term pair;
determining an average textual distance between the terms of each term pair;
determining a type of dependency between the terms in each parse tree generated for the term pair.

### Claim 13 (depends on 8)

The system of claim 8, wherein the electronic text corpus is specific to a domain, wherein the generated lookup table is specific to the domain, the operation further comprising:
merging the generated lookup table with a predefined lookup table comprising a plurality of predefined pairs of terms and associated weights.
