# US 2023/0267341 A1 · Device and computer implemented method for adding a quantity fact to a knowledge base

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

- Number: US 2023/0267341 A1
- Document ID: US20230267341A1
- Status: Published application
- Kind: A1
- Application number: 18/168,666
- Filed: 2023-02-14
- Published: 2023-08-24
- Earliest claimed: 2022-02-18
- Assignees: Robert Bosch GmbH
- Applicants: Robert Bosch GmbH
- Inventors: Daria Stepanova; Dragan Milchevski; Gerhard Weikum; Jannik Stroetgen; Vinh Thinh Ho
- Web page: https://patentgrep.com/patent/US20230267341A1

## CPC

- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 40/295: Named entity recognition
- G06F 40/30: Semantic analysis
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A device and a computer-implemented method for adding a quantity fact to a knowledge base, in particular a knowledge graph. The method includes: providing the knowledge base; providing a textual resource; providing an entity from the knowledge base; providing a relation from the knowledge base; providing a set of different units; determining a quantity comprising a unit within the set of different units that is within the textual resource depending on the entity, the relation, and the set of different units; determining a quantity fact comprising the entity, the relation, the quantity and the unit; and adding the quantity fact to the knowledge base.

## Claims

### Claim 1

A computer-implemented method for adding a quantity fact to a knowledge base, the knowledge base being a knowledge graph, the method comprising the following steps:
providing the knowledge base;
providing a textual resource;
providing an entity from the knowledge base;
providing a relation from the knowledge base;
providing a set of different units;
determining a quantity including a unit within the set of different units that is within the textual resource depending on the entity, the relation, and the set of different units;
determining a quantity fact including the entity, the relation, the quantity, and the unit; and
adding the quantity fact to the knowledge base.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining of the quantity includes finding a section of the textual resource that includes at least one quantity depending on the unit, determining a context for the unit within the section, determining a plurality of tuples, wherein each tuple of the plurality of tuples includes the entity, one of the at least one quantity, the unit, and the context, and selecting the quantity from one tuple of the plurality of tuples depending on the context.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
providing a reference for each tuple of the plurality of tuples;
determining a similarity of at least one tuple of the plurality of tuples to the reference for the tuple;
selecting the tuple from the plurality of tuples that includes a context that is more similar to its reference than a context in at least one other tuple of the plurality of tuples is to its reference.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the providing of the reference for each tuple including providing a reference predicate domain for the knowledge base, providing a reference entity from the knowledge base, and providing a set of reference units from the set of units.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining of the similarity includes: determining if a numerical representation of the entity of the at least one tuple is mapped by a numerical representation of the reference predicate to a numerical representation that is within a predetermined distance to a numerical representation of the reference entity or not, determining if the unit of the at least one tuple is within the set of reference units or not, and determining the similarity between the context from the at least on tuple of the plurality of tuples to the reference for at least one tuple of the plurality of tuples so that the numerical representation of the entity of the at least one tuple is mapped by the numerical representation of the reference predicate to a numeric representation that is within the predetermined distance to the numerical representation of the reference entity and so that the unit of the at least one tuple is within the set of reference units.

### Claim 6 (depends on 3)

The method according to claim 3, wherein the providing of the reference for each tuple includes determining, for each tuple of the plurality of tuples, the reference that is more similiar to the context in the tuple than to a context in at least one other tuple of the plurality of tuples.

### Claim 7 (depends on 3)

The method according to claim 3, the method further comprising:
determining a first score for at least one tuple of the plurality of tuples depending on the similarity to its reference, wherein the first score indicates a confidence for the at least one tuple being selectable for determining the quantity fact; and
adding the at least one tuple to a group of tuples when the first score indicates that the confidence for the at least one tuple being selectable for determining the quantity fact is higher than a first threshold;
wherein the determining of the quantity fact includes selecting a tuple from the group of tuples.

### Claim 8 (depends on 7)

The method according to claim 7, further comprising:
determining for a tuple in the group of tuples a second score depending on the quantity in the tuple, wherein the second score is indicative of a likelihood for that tuple being selectable for determining the quantity fact, and either adding the tuple to a set of candidate facts if the second score indicates that the likelihood of that tuple being selectable for determining the quantity fact is higher than a third threshold, or not adding that tuple to the set of candidate facts otherwise, wherein the determining the fact includes selecting a tuple from the set of candidate facts.

### Claim 9 (depends on 8)

The method according to claim 8, wherein when the first score indicates a confidence of the at least one tuple being selectable as the fact that is below a second threshold, performing:
determining a tuple in the plurality of tuples that is not in the set of candidate facts and has the same entity as a tuple of the set of candidate facts,
determining a similarity depending on a quantity in the tuple of the plurality of tuples and the quantity in the tuple of the set of candidate facts,
selecting the context in the tuple of the plurality of tuples as a candidate for another reference when the similarity is larger than a fourth threshold.

### Claim 10 (depends on 3)

The method according to claim 3, wherein the determining of the similarily includes determining the similarity depending on a normalization of the quantity in at least one of the tuples, wherein the normalization is determined depending on the unit in at least one of the tuples.

### Claim 11

A device for filling a knowledge base, the knowledge base being a knowledge graph, the device comprising:
at least one processor; and
at least one non-transitory memory;
wherein the at least one memory is configured to store an embedding of a knowledge base and a textual resource, and stores instructions for adding a quantity fact to a knowledge base, the knowledge base being a knowledge graph, the instructions, when executed by a processor, causing the processor to perform the following steps:
providing the knowledge base,
providing a textual resource,
providing an entity from the knowledge base,
providing a relation from the knowledge base,
providing a set of different units,
determining a quantity including a unit within the set of different units that is within the textual resource depending on the entity, the relation, and the set of different units,
determining a quantity fact including the entity, the relation, the quantity, and the unit, and
adding the quantity fact to the knowledge base.

### Claim 12

A non-transitory computer-readable medium on which is stored a computer program including computer readable instructions for adding a quantity fact to a knowledge base, the knowledge base being a knowledge graph, the instructions, when executed by a processor, causing the processor to perform the following steps:
providing the knowledge base;
providing a textual resource;
providing an entity from the knowledge base;
providing a relation from the knowledge base;
providing a set of different units;
determining a quantity including a unit within the set of different units that is within the textual resource depending on the entity, the relation, and the set of different units; and
determining a quantity fact including the entity, the relation, the quantity, and the unit; and
adding the quantity fact to the knowledge base.
