# US 2021/0342540 A1 · Entity Disambiguation

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

- Number: US 2021/0342540 A1
- Document ID: US20210342540A1
- Status: Published application
- Kind: A1
- Application number: 16/861,564
- Filed: 2020-04-29
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: Runtime Collective Limited
- Applicants: Runtime Collective Limited
- Inventors: Aykut Firat; Karim Abdul Munaff; Christopher Bingham
- Web page: https://patentgrep.com/patent/US20210342540A1

## CPC

- G06F 40/295: Named entity recognition
- G06F 16/3347: {using vector based model}
- G06F 16/353: into predefined classes
- G06F 16/93: Document management systems
- G06F 40/237: Lexical tools
- G06F 40/30: Semantic analysis
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Data characterizing a document including a target word and a plurality of potential meanings for the target word is received. A first set of context words is determined using a language model. The first set of context words is for the target word. A second set of context words is determined using a knowledge base and the language model. The second set of context words is for the plurality of potential meanings of the target word. A score is determined for each of the plurality of potential meanings by at least comparing the first set of context words and the second set of context words. A potential meaning selected from the plurality of potential meanings that has a highest score is selected as a disambiguation of the first word. Related apparatus, systems, techniques and articles are also described.

## Claims

### Claim 1

A method comprising:
receiving data characterizing a document including a target word and a plurality of potential meanings for the target word;
determining, using a language model, a first set of context words, the first set of context words for the target word;
determining, using a knowledge base and the language model, a second set of context words, the second set of context words for the plurality of potential meanings of the target word;
determining a score for each of the plurality of potential meanings by at least comparing the first set of context words and the second set of context words; and
providing a potential meaning selected from the plurality of potential meanings that has a highest score as a disambiguation of the first word.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining the first set of context words includes:
providing, to the language model, the document or a portion of the document along with a suffix, wherein the language model characterizes the target word.

### Claim 3 (depends on 1)

The method of claim 1, wherein the determining the first set of context words includes:
providing, to the language model, the document or a portion of the document in which the target word is masked, wherein the language model outputs replacement words for the target word.

### Claim 4 (depends on 3)

The method of claim 3, wherein each context word in the first set of context words is represented as a vector.

### Claim 5 (depends on 4)

The method of claim 4, wherein the determining the score for each of the plurality of potential meanings by at least comparing the first set of context words and the second set of context words includes clustering context words of the first set of context words and clustering the second set of context words to determine a similarity between the target word and each of the plurality of potential meanings.

### Claim 6 (depends on 1)

The method of claim 1, further comprising determining, using the knowledge base, the plurality of potential meanings for the target word.

### Claim 7 (depends on 1)

The method of claim 1, wherein the second set of context words is determined using input sentences and the language model.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first set of context words are stored in a database; and wherein the determining the second set of context words and/or the determining the score for each of the plurality of potential meanings is performed after receiving a query by a user for a disambiguation of the target word.

### Claim 9

A method comprising:
receiving data characterizing a document including a first entity;
predicting, using a language model, a first replacement entity for the first entity;
determining, using the first replacement entity and a knowledge base, a first candidate entity characterizing a first potential meaning of the first entity;
comparing the first replacement entity and the first candidate entity; and
providing the first potential meaning characterized by the first candidate entity as a disambiguation of the first entity.

### Claim 10 (depends on 9)

The method of claim 9, wherein the language model is trained on a corpus;
wherein the first replacement entity corresponds to a first replacement entity word vector;
wherein the first candidate entity corresponds to a first candidate entity word vector, the first candidate entity word vector associated with a dominate candidate cluster based on a proximity of the first candidate entity word vector within a word vector space;
wherein the comparing is performed within the word vector space;
wherein the comparing includes comparing the first replacement entity word vector and the first candidate entity word vector associated with the dominant candidate cluster.

### Claim 11 (depends on 10)

The method of claim 10, wherein the document further includes a left context and a right context, the left context including entities in the document preceding the first entity, the right context including entities in the document succeeding the first entity;
wherein the language model is a staggered bidirectional language model; and
wherein the first replacement entity is predicted to complete a phrase including the left context followed by the first replacement entity followed by the right context.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
generating, using the first replacement entity, the first replacement entity word vector;
generating, using the first candidate entity, the first candidate entity word vector;
graphing, within the word vector space, the first replacement entity word vector and the first candidate entity word vector; and
clustering, using a graph clustering algorithm, the first candidate entity word vector into a first candidate cluster.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
determining, using the first replacement entity and the knowledge base, a set of candidate entities including the first candidate entity and corresponding to a set of candidate entity word vectors; and
determining, based on the proximity of the first candidate entity word vector to other candidate entity word vectors in the set of candidate entity word vectors, that the first candidate cluster is the dominant candidate cluster;
wherein the first potential meaning characterized by the first candidate is associated with the dominant candidate cluster.

### Claim 14 (depends on 12)

The method of claim 12, wherein the graph clustering algorithm includes agglomerative algorithms, divisive algorithms, relocation algorithms, probabilistic clustering, k-medoids algorithms, k-means algorithms, density-based connectivity clustering, density functions clustering, grid-based clustering, subspace clustering, and/or co-clustering.

### Claim 15 (depends on 13)

The method of claim 13, further comprising:
determining a first distance between the first replacement entity word vector and the first candidate entity word vector, wherein the first distance is less than distances between the first replacement entity word vector and the other candidate entity word vectors in the dominant candidate cluster;
wherein the first potential meaning associated with the dominant candidate cluster is provided as the disambiguation of the first entity in response to determining the first distance is less than the distances.

### Claim 16

A system comprising:
at least one data processor; and
memory storing executable instructions which, when executed by the at least one data processor, causes the at least one data processor to perform operations comprising:
receiving data characterizing a document including a target word and a plurality of potential meanings for the target word;
determining, using a language model, a first set of context words, the first set of context words for the target word;
determining, using a knowledge base and the language model, a second set of context words, the second set of context words for the plurality of potential meanings of the target word;
determining a score for each of the plurality of potential meanings by at least comparing the first set of context words and the second set of context words; and
providing a potential meaning selected from the plurality of potential meanings that has a highest score as a disambiguation of the first word.

### Claim 17 (depends on 16)

The system of claim 16, wherein the determining the first set of context words includes:
providing, to the language model, the document or a portion of the document along with a suffix, wherein the language model characterizes the target word.

### Claim 18 (depends on 16)

The system of claim 16, wherein the determining the first set of context words includes:
providing, to the language model, the document or a portion of the document in which the target word is masked, wherein the language model outputs replacement words for the target word.

### Claim 19 (depends on 18)

The system of claim 18, wherein each context word in the first set of context words is represented as a vector.

### Claim 20 (depends on 19)

The system of claim 19, wherein the determining the score for each of the plurality of potential meanings by at least comparing the first set of context words and the second set of context words includes clustering context words of the first set of context words and clustering the second set of context words to determine a similarity between the target word and each of the plurality of potential meanings.
