# US 2021/0287103 A1 · Infusing knowledge into natural language processing tasks using graph structures

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

- Number: US 2021/0287103 A1
- Document ID: US20210287103A1
- Status: Published application
- Kind: A1
- Application number: 16/814,830
- Filed: 2020-03-10
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Pavan Kapanipathi Bangalore; Kartik Talamadupula; Veronika Thost; Siva Sankalp Patel; Ibrahim Abdelaziz; Avinash Balakrishnan; Maria Chang; Kshitij Fadnis; Chulaka Gunasekara; Bassem Makni; Nicholas Mattei; Achille Belly Fokoue-Nkoutche
- Web page: https://patentgrep.com/patent/US20210287103A1

## CPC

- G06F 40/30: Semantic analysis
- G06N 5/02: Knowledge representation; Symbolic representation
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06N 3/045: Combinations of networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

One embodiment of the invention provides a method for natural language processing (NLP). The method comprises extracting knowledge outside of text content of a NLP instance by extracting a set of subgraphs from a knowledge graph associated with the text content. The set of subgraphs comprises the knowledge. The method further comprises encoding the knowledge with the text content into a fixed size graph representation by filtering and encoding the set of subgraphs. The method further comprises applying a text embedding algorithm to the text content to generate a fixed size text representation, and classifying the text content based on the fixed size graph representation and the fixed size text representation.

## Claims

### Claim 1

A method for natural language processing (NLP), comprising:
extracting knowledge outside of text content of a NLP instance by extracting a set of subgraphs from a knowledge graph associated with the text content, wherein the set of subgraphs comprises the knowledge;
encoding the knowledge with the text content into a fixed size graph representation by filtering and encoding the set of subgraphs;
applying a text embedding algorithm to the text content to generate a fixed size text representation; and
classifying the text content based on the fixed size graph representation and the fixed size text representation.

### Claim 2 (depends on 1)

The method of claim 1, wherein the knowledge graph is one of a knowledge base, a semantic network, or a social graph.

### Claim 3 (depends on 1)

The method of claim 1, wherein the text content comprises one or more text samples.

### Claim 4 (depends on 3)

The method of claim 3, wherein the one or more text samples include a premise and a hypothesis.

### Claim 5 (depends on 3)

The method of claim 3, wherein the knowledge graph comprises one of a directed graph representation or an undirected graph representation of the one or more text samples.

### Claim 6 (depends on 1)

The method of claim 1, wherein the set of subgraphs is encoded via a Relational Graph Convolutional Network (R-GCN).

### Claim 7 (depends on 1)

The method of claim 1, wherein the set of subgraphs is filtered based on a personalized page rank (PPR) algorithm.

### Claim 8 (depends on 1)

The method of claim 1, wherein the text content is classified via a Feed Forward Network (FFN).

### Claim 9 (depends on 1)

The method of claim 1, wherein the text embedding algorithm comprises one of Bidirectional Encoder Representations from Transformers (BERT) or Global Vectors (GloVe).

### Claim 10

A system for natural language processing (NLP), comprising:
at least one processor; and
a non-transitory processor-readable memory device storing instructions that when executed by the at least one processor causes the at least one processor to perform operations including:
extracting knowledge outside of text content of a NLP instance by extracting a set of subgraphs from a knowledge graph associated with the text content, wherein the set of subgraphs comprises the knowledge;
encoding the knowledge with the text content into a fixed size graph representation by filtering and encoding the set of subgraphs;
applying a text embedding algorithm to the text content to generate a fixed size text representation; and
classifying the text content based on the fixed size graph representation and the fixed size text representation.

### Claim 11 (depends on 10)

The system of claim 10, wherein the knowledge graph is one of a knowledge base, a semantic network, or a social graph.

### Claim 12 (depends on 10)

The system of claim 10, wherein the text content comprises one or more text samples.

### Claim 13 (depends on 12)

The system of claim 12, wherein the one or more text samples include a premise and a hypothesis.

### Claim 14 (depends on 12)

The system of claim 12, wherein the knowledge graph comprises one of a directed graph representation or an undirected graph representation of the one or more text samples.

### Claim 15 (depends on 10)

The system of claim 10, wherein the set of subgraphs is encoded via a Relational Graph Convolutional Network (R-GCN).

### Claim 16 (depends on 10)

The system of claim 10, wherein the set of subgraphs is filtered based on a personalized pagerank (PPR) algorithm.

### Claim 17 (depends on 10)

The system of claim 10, wherein the text content is classified via a Feed Forward Network (FFN).

### Claim 18 (depends on 10)

The system of claim 10, wherein the text embedding algorithm comprises one of Bidirectional Encoder Representations from Transformers (BERT) or Global Vectors (GloVe).

### Claim 19

A computer program product for natural language processing (NLP), the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
extracting knowledge outside of text content of a NLP instance by extracting a set of subgraphs from a knowledge graph associated with the text content, wherein the set of subgraphs comprises the knowledge;
encoding the knowledge with the text content into a fixed size graph representation by filtering and encoding the set of subgraphs;
applying a text embedding algorithm to the text content to generate a fixed size text representation; and
classifying the text content based on the fixed size graph representation and the fixed size text representation.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the knowledge graph is one of a knowledge base, a semantic network, or a social graph.
