# US 2017/0255603 A1 · Dynamic facet tree generation

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

- Number: US 2017/0255603 A1
- Document ID: US20170255603A1
- Status: Published application
- Kind: A1
- Application number: 15/058,189
- Filed: 2016-03-02
- Published: 2017-09-07
- Earliest claimed: 2016-03-02
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Yasumasa Kajinaga; Yutaka Moriya; Yuichi Suzuki
- Web page: https://patentgrep.com/patent/US20170255603A1

## CPC

- G06F 16/36: Creation of semantic tools, e.g. ontology or thesauri
- G06F 40/137: Hierarchical processing, e.g. outlines
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F 40/169: Annotation, e.g. comment data or footnotes
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present invention include dynamically updating a facet tree based on words found in one or more documents, the facet tree being a tree data structure that defines hierarchical relationships between a plurality of words. The method may further include calculating a degree of similarity between a first word and a second word based on similarity of usage of the first word and the second word in the one or more documents, and updating the facet tree based on the degree of similarity. The method may further include, for each of one or more candidate words in the one or more documents, calculating a degree of correlation between a co-occurrence of two or more existing facet tree entries in a document and an occurrence of the candidate word in the document, and updating the facet tree on the basis of the one or more degrees of correlation.

## Claims

### Claim 1

A method for generating a facet tree, the method comprising:
determining a degree of similarity between a first word and a second word based on a usage of the first word and the second word in one or more documents, wherein the determining the degree of similarity comprises:
detecting one or more surrounding words appearing with the first word in the one or more documents,
detecting one or more surrounding words appearing with the second word in the one or more documents,
comparing the one or more surrounding words of the first word with the one or more surrounding words of the second word, and
calculating the degree of similarity based on the comparing; and
updating the facet tree based on the degree of similarity, the facet tree being a tree data structure that defines hierarchical relationships between a plurality of words.

### Claim 2 (depends on 1)

The method of claim 1, wherein the detecting one or more surrounding words appearing with the first word includes detecting the one or more surrounding words within a proximity of the first word defined as a number of words, sentences, paragraphs, columns, pages, or document sections, and
wherein the detecting one or more surrounding words appearing with the second word includes detecting the one or more surrounding words within a proximity of the second word defined as a number of words, sentences, paragraphs, columns, pages, or document sections.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
calculating an additional degree of similarity between the first word and one or more other words;
calculating an additional degree of similarity between the second word and the one or more other words; and
determining a symmetry score between the first word and the second word based on the additional degrees of similarity of the first word and the second word, and
wherein the updating is further based on the symmetry score.

### Claim 4 (depends on 3)

The method of claim 3, wherein the determining includes determining the symmetry score based on a difference between a number of additional degrees of similarity of the first word that exceed a similarity threshold and a number of additional degrees of similarity of the second word that exceed the similarity threshold, and
wherein the updating includes adding, as a relationship between the first word and the second word added to the facet tree based on the degree of similarity, a parent-child relationship with the first word as the parent if the symmetry score is above a first symmetry threshold, a parent-child relationship with the second word as the parent if the symmetry score is below a second symmetry threshold that is below the first symmetry threshold, and a sibling relationship if the symmetry score is neither above the first symmetry threshold nor below the second symmetry threshold.

### Claim 5 (depends on 1)

The method of claim 1, wherein the updating includes adding a relationship between the first word and the second word to the facet tree in response to the degree of similarity exceeding a similarity threshold.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
outputting the degree of similarity in association with the first word and the second word; and
receiving a user request to add a relationship between the first word and the second word to the facet tree, and
wherein the updating includes adding the relationship between the first word and the second word to the facet tree in response to the user request.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
generating an annotator based on the facet tree, the annotator being a software process that adds annotations to words in an input document according to the hierarchical relationships defined in the facet tree.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
adding annotations to words in one or more input documents using the annotator, thereby producing one or more annotated documents.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
producing statistical information about the one or more input documents by counting words of interest in the annotated documents, wherein the statistical information comprises a count for a word of interest in at least one document.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
assigning each of the one or more documents to one or more of a plurality of subgroups according to a category or classification value of a document, and
wherein the determining comprises calculating the degree of similarity in a subgroup of the plurality of subgroups based on similarity of usage of the first word and the second word in the subgroup, and
wherein the updating comprises updating the facet tree based on the degree of similarity in the subgroup.

### Claim 11 (depends on 10)

The method of claim 10, wherein the updating comprises adding a relationship between the first word and the second word to the facet tree in response to the degree of similarity in the subgroup exceeding a similarity threshold, the relationship defined in the facet tree as being applicable only to documents in the subgroup.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
outputting the degree of similarity in association with the first word and the second word and the subgroup; and
receiving a user request to add, to the facet tree, a relationship between the first word and the second word applicable only to documents in the subgroup, and
wherein the updating includes adding the relationship between the first word and the second word to the facet tree in response to the user request, the relationship defined in the facet tree as being applicable only to documents in the subgroup.

### Claim 13 (depends on 10)

The method of claim 10, further comprising:
generating an annotator based on the facet tree, the annotator being a software process that adds annotations to words in an input document according to the hierarchical relationships defined by the facet tree, the annotator including one or more branches defined by the plurality of subgroups.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
acquiring a selection indicating the subgroup, of the plurality of subgroups, to which one or more input documents belong; and
adding annotations to words in the one or more input documents using the annotator based on the selection, thereby producing one or more annotated documents.

### Claim 15 (depends on 10)

The method of claim 10, wherein the category or classification value of a document is at least one of a subject, genre, type, source, location, language, author demographic, audience demographic, publication date, and production date of the document.

### Claim 16

A computer program product for generating a facet tree, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a computer to cause the computer to perform a method comprising:
determining a degree of similarity between a first word and a second word based on a usage of the first word and the second word in one or more documents, wherein the determining the degree of similarity comprises:
detecting one or more surrounding words appearing with the first word in the one or more documents,
detecting one or more surrounding words appearing with the second word in the one or more documents,
comparing the one or more surrounding words of the first word with the one or more surrounding words of the second word, and
calculating the degree of similarity based on the comparing; and
updating the facet tree based on the degree of similarity, the facet tree being a tree data structure that defines hierarchical relationships between a plurality of words.

### Claim 17 (depends on 16)

The computer program product of claim 16, further comprising:
calculating an additional degree of similarity between the first word and one or more other words;
calculating an additional degree of similarity between the second word and the one or more other words; and
determining a symmetry score between the first word and the second word based on the additional degrees of similarity of the first word and the second word, and
wherein the updating is further based on the symmetry score.

### Claim 18 (depends on 16)

The computer program product of claim 16, further comprising:
outputting the degree of similarity in association with the first word and the second word; and
receiving a user request to add a relationship between the first word and the second word to the facet tree, and
wherein the updating includes adding the relationship between the first word and the second word to the facet tree in response to the user request.

### Claim 19

A system for generating a facet tree, the system comprising:
one or more computer processors;
one or more computer-readable storage media;
program instructions stored on the computer-readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
instructions to determine a degree of similarity between a first word and a second word based on a usage of the first word and the second word in one or more documents, wherein the instructions to determine the degree of similarity comprise:
instructions to detect one or more surrounding words appearing with the first word in the one or more documents,
instructions to detect one or more surrounding words appearing with the second word in the one or more documents,
instructions to compare the one or more surrounding words of the first word with the one or more surrounding words of the second word, and
instructions to calculate the degree of similarity based on the comparing; and
instructions to update the facet tree based on the degree of similarity, the facet tree being a tree data structure that defines hierarchical relationships between a plurality of words.

### Claim 20 (depends on 19)

The system of claim 19, further comprising:
calculating an additional degree of similarity between the first word and one or more other words;
calculating an additional degree of similarity between the second word and the one or more other words; and
determining a symmetry score between the first word and the second word based on the additional degrees of similarity of the first word and the second word, and
wherein the updating is further based on the symmetry score.

### Claim 21

A computer program product for generating a facet tree, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a computer to cause the computer to perform a method comprising:
for each of one or more candidate words in one or more documents, determining a degree of correlation between a co-occurrence of two or more existing facet tree entries in a document and an occurrence of a candidate word in the document,
wherein the facet tree is a tree data structure that defines hierarchical relationships between a plurality of words, and
wherein the determining the degree of correlation includes:
detecting one or more surrounding words appearing with a first word in the one or more documents,
detecting one or more surrounding words appearing with a second word in the one or more documents,
comparing the one or more surrounding words of the first word with the one or more surrounding words of the second word, and
calculating the degree of correlation based on the comparing; and
updating the facet tree based on the one or more degrees of correlation.

### Claim 22 (depends on 21)

The computer program product of claim 21, further comprising:
calculating an additional degree of correlation between the first word and one or more other words;
calculating an additional degree of correlation between the second word and the one or more other words; and
determining a symmetry score between the first word and the second word based on the additional degrees of correlation of the first word and the second word, and
wherein the updating is further based on the symmetry score.

### Claim 23

A system for generating a facet tree, the system comprising:
one or more computer processors;
one or more computer-readable storage media;
program instructions stored on the computer-readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
for each of one or more candidate words in one or more documents, instructions to determine a degree of correlation between a co-occurrence of two or more existing facet tree entries in a document and an occurrence of a candidate word in the document,
wherein the facet tree is a tree data structure that defines hierarchical relationships between a plurality of words, and
wherein the instructions to determine the degree of correlation include:
instructions to detect one or more surrounding words appearing with a first word in the one or more documents,
instructions to detect one or more surrounding words appearing with a second word in the one or more documents,
instructions to compare the one or more surrounding words of the first word with the one or more surrounding words of the second word, and
instructions to calculate the degree of correlation based on the comparing; and
instructions to update the facet tree based on the one or more degrees of correlation.

### Claim 24 (depends on 23)

The system of claim 23, further comprising:
instructions to calculate an additional degree of correlation between the first word and one or more other words;
instructions to calculate an additional degree of correlation between the second word and the one or more other words; and
instructions to determine a symmetry score between the first word and the second word based on the additional degrees of correlation of the first word and the second word, and
wherein the instructions to update is further based on the symmetry score.

### Claim 25 (depends on 23)

The system of claim 23, further comprising:
instructions to output the degree of correlation in association with the first word and the second word; and
instructions to receive a user request to add a relationship between the first word and the second word to the facet tree, and
wherein the instructions to update include instructions to add the relationship between the first word and the second word to the facet tree in response to the user request.
