# US 2015/0178273 A1 · Unsupervised Relation Detection Model Training

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

- Number: US 2015/0178273 A1
- Document ID: US20150178273A1
- Status: Published application
- Kind: A1
- Application number: 14/136,919
- Filed: 2013-12-20
- Published: 2015-06-25
- Earliest claimed: 2013-12-20
- Assignees: Microsoft Corporation
- Applicants: Microsoft Corporation
- Inventors: Dilek Z. Hakkani-Tur; Gokhan Tur; Larry Paul Heck
- Web page: https://patentgrep.com/patent/US20150178273A1

## CPC

- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A relation detection model training solution. The relation detection model training solution mines freely available resources from the World Wide Web to train a relationship detection model for use during linguistic processing. The relation detection model training system searches the web for pairs of entities extracted from a knowledge graph that are connected by a specific relation. Performance is enhanced by clipping search snippets to extract patterns that connect the two entities in a dependency tree and refining the annotations of the relations according to other related entities in the knowledge graph. The relation detection model training solution scales to other domains and languages, pushing the burden from natural language semantic parsing to knowledge base population. The relation detection model training solution exhibits performance comparable to supervised solutions, which require design, collection, and manual labeling of natural language data.

## Claims

### Claim 1

A method of training a relation detection model without supervision, the method comprising the acts of:
searching a knowledge source for entity pairs associated by a relation defined by a knowledge graph;
processing snippets returned by the knowledge source that contain both entities from the entity pair to generate training data;
labeling the training data with the relation to produce annotated training data; and
training the relation detection model using the annotated training data.

### Claim 2 (depends on 1)

The method of claim 1 further comprising the act of extracting entity pairs for the relation from the knowledge graph.

### Claim 3 (depends on 1)

The method of claim 1 wherein the act of processing snippets returned by the knowledge source that contain both entities from the entity pair to generate training data further comprises the act of parsing the snippets to develop natural language patterns realizing the relation.

### Claim 4 (depends on 1)

The method of claim 1 wherein the act of training the relation detection model using the annotated snippets further comprises the act of training the relation detection model using a classification engine.

### Claim 5 (depends on 1)

The method of claim 1 wherein the act of processing snippets returned by the knowledge source that contain both entities from the entity pair to generate training data further comprises the acts of:
retrieving all properties associated with the relation, the properties comprising entities and corresponding relations;
comparing the properties to the snippets; and
labeling snippets containing matches to entities from the properties with the corresponding relations.

### Claim 6 (depends on 1)

The method of claim 1 further comprising the acts of:
training a relation classifier with annotated training data; and
labeling the annotated training data snippets with an additional relations from a set of additional relations using the relation classifier.

### Claim 7 (depends on 6)

The method of claim 6 wherein the set of additional relations comprises relations with a high probability of appearing in a conversational input the method further comprising the act of optimizing a threshold for selecting the relation with the highest probability of corresponding to a given conversational input according a classifier.

### Claim 8 (depends on 1)

The method of claim 1 further comprising the act of enriching the training data by extracting queries linked to the uniform resource locators returned by the knowledge source pointing to documents that contain both entities from the entity pair.

### Claim 9 (depends on 8)

The method of claim 8 further comprising the acts of:
identifying a first set of uniform resource locators clicked on after performing a first query appearing in a query click log and corresponding to documents that contain both entities from the entity pair;
identifying a second set of uniform resource locators clicked on after performing a second query appearing in a query click log and corresponding to documents that contain both entities from the entity pair;
determining that the first query and the second query are closely related queries when a common uniform resource locator appears in both the first set of uniform resource locators and the second set of uniform resource locators; and
adding the closely related queries to the training data.

### Claim 10 (depends on 9)

The method of claim 9 further comprising the act of discarding the closely related queries if the first query or the second query does not contain at least one of the entities from the entity pair.

### Claim 11 (depends on 1)

The method of claim 1 wherein the knowledge source is the World Wide Web.

### Claim 12 (depends on 1)

The method of claim 1 wherein the relation and the entity pairs form a triple.

### Claim 13

An unsupervised relation detection model training system executed on computing device containing a memory, the unsupervised relation detection model training system comprising a:
an ontology builder operable to obtain a semantic ontology from an external knowledge graph, the semantic ontology defining entity pairs connected by a relation.
a data miner operable to collect snippets returned in response to a search of an external knowledge source for content containing both entities from the entity pair;
a snippet parser operable to parse out the smallest segment of the snippets that contain both entities from the entity pair and replace the entities in the smallest segments with corresponding tokens to form natural language patterns; and
a pattern annotator operable to label the natural language patterns with at least one corresponding relation; and
a training engine operable to build a relation detection model for use in linguistic processing from training data, the training data comprising the annotated natural language patterns.

### Claim 14 (depends on 13)

The unsupervised relation detection model training system of claim 13 wherein the snippet parser comprises:
a natural language parser; and
a treebank converter.

### Claim 15 (depends on 13)

The unsupervised relation detection model training system of claim 13 wherein training engine comprises a classifier operable to build a statistical relation detection model.

### Claim 16 (depends on 13)

The unsupervised relation detection model training system of claim 13 further comprising a query click log analyzer operable to enrich the training data with queries linked to the uniform resource locators returned by the knowledge source pointing to documents that contain both entities from the entity pair extracted from query click logs.

### Claim 17 (depends on 13)

The unsupervised relation detection model training system of claim 13 wherein the knowledge source is the World Wide Web.

### Claim 18

A computer readable medium containing computer executable instructions which, when executed by a computer, perform a method for training a relation detection model without supervision, the method comprising:
extracting entity pairs for a selected relation from a knowledge graph;
searching a knowledge source for entity pairs associated by the selected relation defined by a knowledge graph;
parsing snippets returned by the knowledge source and containing both entities from the entity pair to develop natural language patterns realizing the relation;
labeling the natural language patterns with the relation to produce annotated patterns; and
training the relation detection model using the annotated patterns.

### Claim 19 (depends on 18)

The computer readable medium of claim 18 wherein the act of parsing snippets returned by the knowledge source and containing both entities from the entity pair to develop natural language patterns realizing the relation further comprises the acts of:
selecting the smallest sequence of constituent elements in the snippet that contains both entities from the entity pair as the natural language pattern; and
replacing the entities in the natural language pattern with tokens from the knowledge graph corresponding to each entity.

### Claim 20 (depends on 19)

The computer readable medium of claim 19 wherein the method further comprises the act of labeling an annotated pattern from the annotated patterns with additional relations when the annotated pattern corresponds to more than one relation.
