# US 2015/0178285 A1 · Search device, search method, and computer program product

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

- Number: US 2015/0178285 A1
- Document ID: US20150178285A1
- Status: Published application
- Kind: A1
- Application number: 14/574,886
- Filed: 2014-12-18
- Published: 2015-06-25
- Earliest claimed: 2013-12-24
- Assignees: Kabushiki Kaisha Toshiba
- Applicants: Kabushiki Kaisha Toshiba
- Inventors: Manabu Nagao
- Web page: https://patentgrep.com/patent/US20150178285A1

## CPC

- G06F 16/90344: {by using string matching techniques}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to an embodiment, a search device searches paths of a digraph and includes a retriever, and an expander. The retriever is configured to, from among hypotheses stored in a storage, retrieve, as a target hypothesis, a single hypothesis for which a weight obtained by addition of a weight of an already-searched path corresponding to each hypothesis and a weight of the best path from a state of the head of concerned path to a final state is the best weight. The expander is configured to, when the retrieved target hypothesis is not a final hypothesis for which the search has been completed up to a final state, generate new hypotheses each holding an input symbol string that is present in a path in which the search has been performed from states held by the target hypothesis until finding a single input symbol, and write the generated hypotheses in the storage.

## Claims

### Claim 1

A search device that searches paths of a digraph which has input symbols and weights assigned thereto, the device comprising:
a hypothesis storage configured to store one or more hypotheses each representing information which holds an input symbol string and one or more state of the head of each of the paths from which the input symbol string is obtained, the input symbol string being obtained by searching the paths from an initial state of the digraph;
a retriever configured to, from among one or more hypotheses stored in the hypothesis storage, retrieve, as a target hypothesis, a single hypothesis for which a weight obtained by addition of a weight of an already-searched path corresponding to each hypothesis and a weight of the best path from the state of the head of concerned path to a final state is the best weight and which holds an input symbol string corresponding to the already-searched path; and
a hypothesis expander configured to, when the retrieved target hypothesis is not a final hypothesis for which the search has been completed up to a final state, generate one or more new hypotheses each holding an input symbol string that is present in a path in which the search has been performed from one or more states held by the target hypothesis until finding a single input symbol, and write the generated hypotheses in the hypothesis storage, wherein
the retriever repeatedly retrieves the target hypothesis from the hypothesis storage until a predetermined number of the final hypothesis is retrieved, and
when an outgoing transition from each of one or more states held by the target hypothesis includes an empty transition, the hypothesis expander adds to the target hypothesis a state reached by following the empty transition from concerned state and then continues with the search to generate the one or more new hypotheses.

### Claim 2 (depends on 1)

The device according to claim 1, further comprising an output unit configured to, subject to a condition that the retrieved target hypothesis is the final hypothesis, output the input symbol string held by the target hypothesis, wherein
when a retrieved target hypothesis is not the final hypothesis, the retriever retrieves next of the target hypothesis in response to writing of a new hypothesis in the hypothesis storage by the hypothesis expander, and
when the retrieved target hypothesis is the final hypothesis, the retriever immediately retrieves next of the target hypothesis.

### Claim 3 (depends on 1)

The device according to claim 1, wherein the digraph is a weighted finite state automaton.

### Claim 4 (depends on 2)

The device according to claim 2, wherein the hypothesis expander includes
an empty transition processor configured to, when an outgoing transition from each of one or more states held by the retrieved target hypothesis includes an empty transition, add to the target hypothesis a state reached by following the empty transition from concerned state;
a final generator configured to, after the empty transition processor performs operation, when one or more states held by the target hypothesis include a final state, generate, as the final hypothesis, a new hypothesis which holds an input symbol string held by the target hypothesis and which holds a final state from among one or more states held by the target hypothesis, and write the new hypothesis in the hypothesis storage; and
a hypothesis generator configured to, after the empty transition processor performs operation, generate one or more new hypotheses each of which holds an input symbol string obtained by concatenating a new input symbol at the end of an input symbol string held by the target hypothesis and holds one or more states reached by following a transition assigned with the new input symbol from each of one or more states held by the target hypothesis, and write the new hypotheses in the hypothesis storage.

### Claim 5 (depends on 4)

The device according to claim 4, wherein the hypothesis holds, as a path value, the best value from among values obtained by accumulating weights from an initial state to a final state in one or more paths from which the input symbol string held is obtained while passing through each of one or more of held states.

### Claim 6 (depends on 5)

The device according to claim 5, wherein the hypothesis generator generates a new hypothesis that further holds the path value, and writes the new hypothesis in the hypothesis storage.

### Claim 7 (depends on 1)

The device according to claim 1, wherein, at a starting stage of the search, the hypothesis storage stores a hypothesis which holds an empty input symbol string and one or more initial states of the digraph.

### Claim 8 (depends on 1)

The device according to claim 1, wherein the hypothesis expander adds to the target hypothesis a state having at least one outgoing transition other than an empty transition from among states reached by following empty transitions from the state.

### Claim 9 (depends on 8)

The device according to claim 8, wherein, with respect to each of one or more states held therein, the hypothesis holds a cumulative weight of the best path from an initial state to concerned state and from which the input symbol string held by the hypothesis is obtained.

### Claim 10 (depends on 9)

The device according to claim 9, wherein the hypothesis expander adds, to the target hypothesis as a corresponding cumulative weight, a value obtained by adding a cumulating weight corresponding to states held by the target hypothesis and a cumulative weight of the best path from among one or more paths reached by following empty transitions from the states held by the target hypothesis.

### Claim 11 (depends on 1)

The device according to claim 1, further comprising an obtaining unit configured to, for each state included in the digraph, obtain in advance a weight of the best path from concerned state to a final state.

### Claim 12

A search method for searching paths of a digraph which has input symbols and weights assigned thereto, the method comprising:
storing, in a hypothesis storage, one or more hypotheses each representing information which holds an input symbol string and one or more state of the head of each of the paths from which the input symbol string is obtained, the input symbol string being obtained by searching the paths from an initial state of the digraph;
retrieving, from among one or more hypotheses stored in the hypothesis storage, as a target hypothesis, a single hypothesis for which a weight obtained by addition of a weight of an already-searched path corresponding to each hypothesis and a weight of the best path from the state of the head of concerned path to a final state is the best weight and which holds an input symbol string corresponding to the already-searched path; and
when the retrieved target hypothesis is not a final hypothesis for which the search has been completed up to a final state, generating one or more new hypotheses each holding an input symbol string that is present in a path in which the search has been performed from one or more states held by the target hypothesis until finding a single input symbol, and writing the generated hypotheses in the hypothesis storage, wherein
the retrieving includes repeatedly retrieving the target hypothesis from the hypothesis storage until a predetermined number of the final hypothesis is retrieved, and
the generating includes adding, when an outgoing transition from each of one or more states held by the target hypothesis includes an empty transition, to the target hypothesis a state reached by following the empty transition from concerned state and then continuing with the search to generate the one or more new hypotheses.

### Claim 13

A computer program product comprising a computer-readable medium containing a program for searching paths of a digraph which has input symbols and weights assigned thereto, the program causing a computer to execute:
storing, in a hypothesis storage, one or more hypotheses each representing information which holds an input symbol string and one or more state of the head of each of the paths from which the input symbol string is obtained, the input symbol string being obtained by searching the paths from an initial state of the digraph;
retrieving, from among one or more hypotheses stored in the hypothesis storage, as a target hypothesis, a single hypothesis for which a weight obtained by addition of a weight of an already-searched path corresponding to each hypothesis and a weight of the best path from the state of the head of concerned path to a final state is the best weight and which holds an input symbol string corresponding to the already-searched path; and
when the retrieved target hypothesis is not a final hypothesis for which the search has been completed up to a final state, generating one or more new hypotheses each holding an input symbol string that is present in a path in which the search has been performed from one or more states held by the target hypothesis until finding a single input symbol, and writing the generated hypotheses in the hypothesis storage, wherein
the retrieving includes repeatedly retrieving the target hypothesis from the hypothesis storage until a predetermined number of the final hypothesis is retrieved, and
the generating includes adding, when an outgoing transition from each of one or more states held by the target hypothesis includes an empty transition, to the target hypothesis a state reached by following the empty transition from concerned state and then continuing with the search to generate the one or more new hypotheses.
