# US 2020/0004836 A1 · Expanding indexed terms for searching files

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

- Number: US 2020/0004836 A1
- Document ID: US20200004836A1
- Status: Published application
- Kind: A1
- Application number: 16/147,444
- Filed: 2018-09-28
- Published: 2020-01-02
- Earliest claimed: 2018-06-03
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Vivek Kumar RANGARAJAN SRIDHAR; Xingwen XU; Vignesh JAGADEESH
- Web page: https://patentgrep.com/patent/US20200004836A1

## CPC

- G06F 16/3347: {using vector based model}
- G06F 16/13: File access structures, e.g. distributed indices (arrangements of input from, or output to, record carriers G06F3/06)
- G06F 16/322: {Trees}
- G06F 16/3338: {Query expansion}
- G06F 16/35: Clustering; Classification
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A device implementing a system for expanded search includes a processor configured to identify plural words, and generate, for each word of the plural words, a word vector based on a proximity of the word relative to other words of the plural words, the word vector comprising plural dimensions. The processor is further configured to create a compressed word vector structure comprising clusters of subsets of the plural dimensions across the word vectors, each cluster including similar values of the respective dimensions, convert the word vectors to points on at least one plane, and partition the at least one plane into nested groupings of the points based on a threshold number of points per nested grouping. The processor is further configured to create a tree look-up structure of the nested groupings, and provide the compressed word vector structure and the tree look-up structure to a client device.

## Claims

### Claim 1

A device, comprising:
at least one processor; and
a memory including instructions that, when executed by the at least one processor, cause the at least one processor to:
identify plural words in a corpus of data;
generate, for each word of the plural words, a word vector based on a proximity of the word relative to other words of the plural words in the corpus of data, the word vector comprising plural dimensions;
create a compressed word vector structure comprising clusters of subsets of the plural dimensions across the word vectors, each cluster including similar values of the respective dimensions;
convert the word vectors to points on at least one plane;
partition the at least one plane into nested groupings of the points based on a threshold number of points per nested grouping;
create a tree look-up structure of the nested groupings; and
provide the compressed word vector structure and the tree look-up structure to a client device.

### Claim 2 (depends on 1)

The device of claim 1, wherein the compressed word vector structure and the tree look-up structure are configured to be accessed by the client device, to increase a number of words for searching for a file stored on the client device.

### Claim 3 (depends on 2)

The device of claim 2, wherein the file is an image file, and wherein identifying the words comprises selecting words from the corpus of data that relate to images.

### Claim 4 (depends on 2)

The device of claim 2, wherein the file may be searched for by matching metadata of the file with a first word, and
wherein the client device is configured to query the tree look-up structure with the first word, to determine at least one second word for searching for the file.

### Claim 5 (depends on 4)

The device of claim 4, wherein the tree look-up structure, in conjunction with the compressed word vector structure, is configured to determine the at least one second word which is related to the first word.

### Claim 6 (depends on 4)

The device of claim 4, wherein the client device is configured to query the tree look-up structure with the first word as part of a file indexing process.

### Claim 7 (depends on 1)

The device of claim 1, wherein the compressed word vector structure and the tree look-up structure are stored locally on the client device.

### Claim 8 (depends on 1)

The device of claim 1, wherein each of the subsets of the plural dimensions comprises the same number of clusters.

### Claim 9

A computer program product comprising code stored in a tangible computer-readable storage medium, the code comprising:
code to identify words from a corpus of data;
code to generate, for each word, a word vector based on a proximity of the word relative to other words in the corpus of data, the word vector comprising plural dimensions;
code to create a compressed word vector structure comprising clusters of subsets of the plural dimensions across the word vectors, each cluster including similar values of the respective dimensions;
code to convert the word vectors to points on at least one plane;
code to partition the at least one plane into nested groupings of the points based on a threshold number of points per nested grouping;
code to create a tree look-up structure of the nested groupings; and
code to provide the compressed word vector structure and the tree look-up structure to a device.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the compressed word vector structure and the tree look-up structure are configured to be accessed by the device, to increase a number of words for searching for a file stored on the device.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the file is an image file, and wherein identifying the words comprises selecting words that relate to images.

### Claim 12 (depends on 10)

The computer program product of claim 10, wherein the file may be searched for by matching metadata of the file with a first word, and
wherein the device is configured to query the tree look-up structure with the first word, to determine at least one second word for searching for the file.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the tree look-up structure, in conjunction with the compressed word vector structure, is configured to determine the at least one second word which is related to the first word.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein the device is configured to query the tree look-up structure with the first word as part of a file indexing process.

### Claim 15 (depends on 9)

The computer program product of claim 9, wherein the compressed word vector structure and the tree look-up structure are stored locally on the device.

### Claim 16

A method comprising:
obtaining a first word at a device, the device storing a tree look-up structure;
querying the tree look-up structure with the first word,
wherein the tree look-up structure comprises nested groupings of points which represent words and which are partitioned based on a threshold number of points per nested grouping, and
wherein each word is associated with a word vector that indicates a proximity of the word relative to other words, each word vector comprising plural dimensions,
identifying, based on the query to the tree look-up structure, at least one second word related to the first word; and
providing the at least one second word as a result to the query.

### Claim 17 (depends on 16)

The method of claim 16, wherein a file may be searched for by matching metadata of the file with the first word.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
designating the at least one second word as a word for searching for the file.

### Claim 19 (depends on 18)

The method of claim 18, wherein the obtaining, the querying, the identifying, the providing and the designating are performed as part of a file indexing process for the device.

### Claim 20 (depends on 16)

The method of claim 16, wherein the device further stores a compressed word vector structure comprising clusters of subsets of the plural dimensions across the word vectors, each cluster including similar values of the respective dimensions.

### Claim 21 (depends on 20)

The method of claim 20, wherein the device generates the tree look-up structure and the compressed word vector structure.

### Claim 22 (depends on 16)

The method of claim 16, wherein the first word corresponds to an input query entered by a user at the device.
