Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4956503B2 - Graph integration apparatus and program thereof - Google Patents
[go: Go Back, main page]

JP4956503B2 - Graph integration apparatus and program thereof - Google Patents

Graph integration apparatus and program thereof Download PDF

Info

Publication number
JP4956503B2
JP4956503B2 JP2008196955A JP2008196955A JP4956503B2 JP 4956503 B2 JP4956503 B2 JP 4956503B2 JP 2008196955 A JP2008196955 A JP 2008196955A JP 2008196955 A JP2008196955 A JP 2008196955A JP 4956503 B2 JP4956503 B2 JP 4956503B2
Authority
JP
Japan
Prior art keywords
graph
input
similarity
integrated
graphs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2008196955A
Other languages
Japanese (ja)
Other versions
JP2010032919A (en
Inventor
寛之 世木
徹 都木
礼子 田高
信正 清山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2008196955A priority Critical patent/JP4956503B2/en
Publication of JP2010032919A publication Critical patent/JP2010032919A/en
Application granted granted Critical
Publication of JP4956503B2 publication Critical patent/JP4956503B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a graph integration device with a simple structure, capable of treating a plurality of integration graphs with less operational quantity. <P>SOLUTION: The graph integration device 1 configured to input a plurality of input graphs G each including nodes showing input elements and an edge which can be branched and combined between the nodes and integrate the input graphs G includes: a graph input means 11; an input graph storage means 12; a similarity calculation means 13 which calculates a similarity of each input graph G by DP matching; a similarity determination means 14 which determines whether each input graph G is similar or not based on the similarity; a graph integration means 15 which integrates each input graph G when the input graph G is similar; a graph addition means 16 which adds each input graph G as a new integration graph when the input graph G is not; and an integration graph storage means 17. <P>COPYRIGHT: (C)2010,JPO&amp;INPIT

Description

本発明は、入力要素を示すノードと、ノード間の接続、ノード間の分岐又はノード間の合流を示すエッジとで構成された入力グラフを統合するグラフ統合装置及びそのプログラムに関する。   The present invention relates to a graph integration device that integrates an input graph composed of nodes indicating input elements and edges indicating connections between nodes, branches between nodes, or merging between nodes, and a program thereof.

従来から、例えば、音声認識の際、音声信号を音素、単語等の認識候補のグラフとしたときに、このグラフを複数の言語モデルに基づいて認識することで、音声認識の精度を向上させることが行われている。   Conventionally, for example, when a speech signal is used as a graph of recognition candidates such as phonemes and words in speech recognition, the accuracy of speech recognition is improved by recognizing this graph based on a plurality of language models. Has been done.

ここで、複数の言語モデルからより適切な認識結果を生成するために、このグラフを統合することが行われている(特許文献1参照)。例えば、特許文献1に記載の発明は、このグラフから不要な経路を減らして、このグラフを統合するものである。
特開2003−15685号公報
Here, in order to generate a more appropriate recognition result from a plurality of language models, this graph is integrated (see Patent Document 1). For example, the invention described in Patent Document 1 integrates this graph by reducing unnecessary paths from this graph.
JP 2003-15685 A

しかし、特許文献1に記載の発明は、3個以上のグラフを統合する場合、これらグラフを組み合わせた回数、グラフを比較する必要があり、演算量が多くなってしまう。例えば、特許文献1に記載の発明では、n個のグラフを統合するために、n×(n−1)/2回、グラフを比較する必要があり、利便性に欠ける。また、従来技術では、複数のグラフを1個のグラフに統合するのみで、2以上のグラフに統合することができなかった。   However, in the invention described in Patent Document 1, when three or more graphs are integrated, it is necessary to compare the graphs by the number of times these graphs are combined, and the amount of calculation increases. For example, in the invention described in Patent Document 1, in order to integrate n graphs, it is necessary to compare the graphs n × (n−1) / 2 times, which is not convenient. Further, in the prior art, a plurality of graphs are only integrated into one graph, and cannot be integrated into two or more graphs.

そこで、本発明は、複数の統合グラフを扱うことができ、演算量が少なく、簡易な構成のグラフ統合装置及びそのプログラムを提供することを目的とする。   Therefore, an object of the present invention is to provide a graph integration apparatus and a program thereof that can handle a plurality of integrated graphs, have a small amount of calculation, and have a simple configuration.

前記した課題を解決するため、請求項1に係るグラフ統合装置は、入力要素を示すノードとノードにおいて分岐及び合流が可能なエッジとで構成された入力グラフが複数入力され、これら入力グラフを統合するグラフ統合装置において、類似度算出手段と、類似判定手段と、グラフ統合手段と、グラフ追加手段と、を備える構成とした。   In order to solve the above-described problem, the graph integration apparatus according to claim 1 integrates a plurality of input graphs configured by nodes indicating input elements and edges capable of branching and joining at the nodes, and integrating the input graphs. The graph integration device includes a similarity calculation unit, a similarity determination unit, a graph integration unit, and a graph addition unit.

かかる構成において、グラフ統合装置は、類似度算出手段によって、DPマッチング法を用いて、入力された複数の入力グラフのノードの一致と挿入誤りと欠落誤りと代替誤りとをDPマッチングの結果として求める。そして、グラフ統合装置は、類似度算出手段によって、このDPマッチングの結果を予め設定された関数に代入して入力グラフ同士の類似度を算出し、求めたDPマッチングの結果と、算出した入力グラフ同士の類似度を出力する。   In such a configuration, the graph integration apparatus obtains, as a result of DP matching, the node matching, insertion error, missing error, and substitution error of a plurality of input graphs using the DP matching method by the similarity calculation means. . Then, the graph integration device substitutes the DP matching result into a preset function by the similarity calculation means to calculate the similarity between the input graphs, and obtains the calculated DP matching result and the calculated input graph. Outputs the similarity between each other.

また、グラフ統合装置は、類似判定手段によって、類似度算出手段から入力された入力グラフ同士の類似度が予め設定された閾値以上の場合、入力グラフ同士が類似すると判定する。さらに、グラフ統合装置は、類似判定手段によって、類似度算出手段から入力された入力グラフ同士の類似度が閾値未満の場合、入力グラフ同士が類似しないと判定し、この類似判定結果を出力する。これによって、グラフ統合装置は、類似性の低い入力グラフ同士を統合してしまう事態を低減できる。   Also, the graph integration device determines that the input graphs are similar when the similarity between the input graphs input from the similarity calculation unit is greater than or equal to a preset threshold by the similarity determination unit. Furthermore, when the similarity between the input graphs input from the similarity calculation unit is less than the threshold by the similarity determination unit, the graph integration apparatus determines that the input graphs are not similar and outputs the similarity determination result. Thereby, the graph integration device can reduce a situation where input graphs having low similarity are integrated.

類似判定手段から入力された類似判定結果において、入力グラフ同士が類似する場合、グラフ統合装置は、グラフ統合手段によって、類似度算出手段から入力されたDPマッチングの結果に基づいて、入力グラフ同士を統合グラフに統合する。また、類似判定手段から入力された類似判定結果において、入力グラフ同士が類似しない場合、グラフ統合装置は、グラフ追加手段によって、入力グラフのそれぞれを新たな統合グラフとして追加する。   In the similarity determination result input from the similarity determination unit, when the input graphs are similar to each other, the graph integration device calculates the input graphs based on the DP matching result input from the similarity calculation unit by the graph integration unit. Integrate into an integrated graph. When the input graphs are not similar in the similarity determination result input from the similarity determination unit, the graph integration device adds each of the input graphs as a new integrated graph by the graph addition unit.

次に、グラフ統合装置は、類似度算出手段によって、DPマッチング法を用いて、入力グラフと、グラフ統合手段が統合した統合グラフ又はグラフ追加手段が追加した統合グラフとのノードの一致と挿入誤りと欠落誤りと代替誤りとをDPマッチングの結果として求める。そして、グラフ統合装置は、このDPマッチングの結果を関数に代入して入力グラフと統合グラフとの類似度を算出し、求めたDPマッチングの結果と、算出した入力グラフと統合グラフとの類似度を出力する。   Next, the graph integration device uses the DP matching method by the similarity calculation means to match and insert errors between the input graph and the integrated graph integrated by the graph integration means or the integrated graph added by the graph addition means. And a missing error and a substitution error are obtained as a result of DP matching. Then, the graph integration device calculates the similarity between the input graph and the integrated graph by substituting the DP matching result into a function, and calculates the similarity between the obtained DP matching result and the calculated input graph and the integrated graph. Is output.

また、グラフ統合装置は、類似判定手段によって、類似度算出手段から入力された入力グラフと統合グラフとの類似度が閾値以上の場合、入力グラフと統合グラフとが類似すると判定する。さらに、グラフ統合装置は、類似判定手段によって、類似度算出手段から入力された類似度が閾値未満の場合、入力グラフと統合グラフとが類似しないと判定し、この類似判定結果を出力する。これによって、グラフ統合装置は、類似性の低い入力グラフと統合グラフとを統合してしまう事態を低減できる。   The graph integration apparatus determines that the input graph and the integrated graph are similar when the similarity between the input graph input from the similarity calculation unit and the integrated graph is greater than or equal to a threshold by the similarity determination unit. Furthermore, when the similarity input from the similarity calculation unit is less than the threshold by the similarity determination unit, the graph integration apparatus determines that the input graph and the integrated graph are not similar, and outputs this similarity determination result. As a result, the graph integration device can reduce a situation where an input graph having a low similarity and an integrated graph are integrated.

類似判定手段から入力された類似判定結果において、入力グラフと統合グラフとが類似する場合、グラフ統合装置は、グラフ統合手段によって、類似度算出手段から入力されたDPマッチングの結果に基づいて、入力グラフと統合グラフとを統合する。   In the similarity determination result input from the similarity determination unit, when the input graph and the integrated graph are similar, the graph integration device performs input based on the DP matching result input from the similarity calculation unit by the graph integration unit. Integrate the graph with the integrated graph.

類似判定手段から入力された類似判定結果において、入力グラフと統合グラフとが類似しない場合、グラフ統合装置は、グラフ追加手段によって、入力グラフを新たな統合グラフとして追加する。これによって、グラフ統合装置は、入力グラフと統合グラフとを統合でき、入力グラフを組み合わせた回数分の類似判定を行う必要がなくなると共に、複数の統合グラフを扱うことを可能とする。   When the input graph and the integrated graph are not similar in the similarity determination result input from the similarity determination unit, the graph integration device adds the input graph as a new integrated graph by the graph addition unit. As a result, the graph integration device can integrate the input graph and the integrated graph, eliminating the need to perform similarity determination for the number of times the input graphs are combined, and handling a plurality of integrated graphs.

また、前記した課題を解決するため、請求項2に係るグラフ統合プログラムは、入力要素を示すノードとノードにおいて分岐及び合流が可能なエッジとで構成された入力グラフが複数入力され、これら入力グラフを統合するために、コンピュータを、類似度算出手段と、類似判定手段と、グラフ統合手段と、グラフ追加手段と、として機能させる構成とした。   In order to solve the above-described problem, the graph integration program according to claim 2 inputs a plurality of input graphs composed of nodes indicating input elements and edges that can branch and merge at the nodes. In order to integrate, the computer is configured to function as a similarity calculation unit, a similarity determination unit, a graph integration unit, and a graph addition unit.

かかる構成において、グラフ統合プログラムは、類似度算出手段によって、DPマッチング法を用いて、入力された複数の入力グラフのノードの一致と挿入誤りと欠落誤りと代替誤りとを求める。そして、グラフ統合プログラムは、このDPマッチングの結果を予め設定された関数に代入して入力グラフ同士の類似度を算出し、求めたDPマッチングの結果と、算出した入力グラフ同士の類似度を出力する。   In such a configuration, the graph integration program uses the DP calculation method by the similarity calculation means to obtain node matches, insertion errors, missing errors, and substitution errors of a plurality of input graphs. Then, the graph integration program calculates the similarity between the input graphs by substituting the DP matching result into a preset function, and outputs the calculated DP matching result and the calculated similarity between the input graphs. To do.

また、グラフ統合プログラムは、類似判定手段によって、類似度算出手段から入力された入力グラフ同士の類似度が予め設定された閾値以上の場合、入力グラフ同士が類似すると判定する。さらに、グラフ統合プログラムは、類似判定手段によって、類似度算出手段から入力された入力グラフ同士の類似度が閾値未満の場合、入力グラフ同士が類似しないと判定する。これによって、グラフ統合プログラムは、類似性の低い入力グラフ同士を統合してしまう事態を低減できる。   The graph integration program determines that the input graphs are similar when the similarity between the input graphs input from the similarity calculation unit is greater than or equal to a preset threshold by the similarity determination unit. Furthermore, the graph integration program determines that the input graphs are not similar when the similarity between the input graphs input from the similarity calculation unit is less than the threshold by the similarity determination unit. Thereby, the graph integration program can reduce the situation where input graphs with low similarity are integrated.

類似判定手段から入力された類似判定結果において、入力グラフ同士が類似する場合、グラフ統合プログラムは、グラフ統合手段によって、類似度算出手段から入力されたDPマッチングの結果に基づいて、入力グラフ同士を統合グラフに統合する。また、類似判定手段から入力された類似判定結果において、入力グラフ同士が類似しない場合、グラフ統合プログラムは、グラフ追加手段によって、入力グラフのそれぞれを新たな統合グラフとして追加する。   In the similarity determination result input from the similarity determination unit, when the input graphs are similar, the graph integration program calculates the input graphs based on the DP matching result input from the similarity calculation unit by the graph integration unit. Integrate into an integrated graph. If the input graphs are not similar in the similarity determination result input from the similarity determination unit, the graph integration program adds each of the input graphs as a new integrated graph by the graph addition unit.

次に、グラフ統合プログラムは、類似度算出手段によって、DPマッチング法を用いて、入力グラフと、グラフ統合手段が統合した統合グラフ又はグラフ追加手段が追加した統合グラフとのノードの一致と挿入誤りと欠落誤りと代替誤りとを求める。そして、グラフ統合プログラムは、このDPマッチングの結果を関数に代入して入力グラフと統合グラフとの類似度を算出し、求めたDPマッチングの結果と、算出した入力グラフと統合グラフとの類似度を出力する。   Next, the graph integration program uses the DP matching method by the similarity calculation means to match and insert errors between the input graph and the integrated graph integrated by the graph integration means or the integrated graph added by the graph addition means. Find missing errors and substitution errors. Then, the graph integration program calculates the similarity between the input graph and the integrated graph by substituting the DP matching result into a function, and calculates the similarity between the obtained DP matching result and the calculated input graph and the integrated graph. Is output.

また、グラフ統合プログラムは、類似判定手段によって、類似度算出手段から入力された入力グラフと統合グラフとの類似度が閾値以上の場合、入力グラフと統合グラフとが類似すると判定する。さらに、グラフ統合プログラムは、類似判定手段によって、類似度算出手段から入力された類似度が閾値未満の場合、入力グラフと統合グラフとが類似しないと判定する。これによって、グラフ統合プログラムは、類似性の低い入力グラフと統合グラフとを統合してしまう事態を低減できる。   The graph integration program determines that the input graph and the integrated graph are similar when the similarity between the input graph input from the similarity calculation unit and the integrated graph is greater than or equal to a threshold value by the similarity determination unit. Furthermore, the graph integration program determines that the input graph and the integrated graph are not similar when the similarity input from the similarity calculation unit is less than the threshold by the similarity determination unit. As a result, the graph integration program can reduce a situation where an input graph having a low similarity and an integrated graph are integrated.

類似判定手段から入力された類似判定結果において、入力グラフと統合グラフとが類似する場合、グラフ統合プログラムは、グラフ統合手段によって、類似度算出手段から入力されたDPマッチングの結果に基づいて、入力グラフと統合グラフとを統合する。   In the similarity determination result input from the similarity determination unit, when the input graph and the integrated graph are similar, the graph integration program is input based on the DP matching result input from the similarity calculation unit by the graph integration unit. Integrate the graph with the integrated graph.

類似判定手段から入力された類似判定結果において、入力グラフと統合グラフとが類似しない場合、グラフ統合プログラムは、グラフ追加手段によって、入力グラフを新たな統合グラフとして追加する。これによって、グラフ統合プログラムは、入力グラフと統合グラフとを統合でき、入力グラフを組み合わせた回数分の類似判定を行う必要がなくなると共に、複数の統合グラフを扱うことを可能とする。   When the input graph and the integrated graph are not similar in the similarity determination result input from the similarity determination unit, the graph integration program adds the input graph as a new integrated graph by the graph addition unit. As a result, the graph integration program can integrate the input graph and the integrated graph, eliminating the need to perform similarity determination for the number of times the input graphs are combined, and handling a plurality of integrated graphs.

本発明によれば、以下のような優れた効果を奏する。
請求項1,2に係る発明によれば、入力グラフを組み合わせた回数分の類似判定を行う必要がなくなると共に、複数の統合グラフを扱うことを可能とするため、演算量を少なくでき、グラフ統合装置を簡易な構成とすることができる。また、請求項1,2に係る発明によれば、類似性の低い入力グラフ同士及び入力グラフと統合グラフとを統合してしまう事態を低減できるため、グラフの統合がより正確になる。
According to the present invention, the following excellent effects can be obtained.
According to the first and second aspects of the invention, it is not necessary to perform similarity determination for the number of combinations of input graphs, and a plurality of integrated graphs can be handled, so that the amount of calculation can be reduced, and graph integration The apparatus can have a simple configuration. Further, according to the first and second aspects of the present invention, it is possible to reduce the situation where the input graphs having low similarity and the input graph and the integrated graph are integrated, so that the graphs are more accurately integrated.

[グラフ統合装置の構成]
以下、本発明の実施形態について、適宜図面を参照しながら詳細に説明する。
図1を参照して、本発明の本実施形態に係るグラフ統合装置の構成について説明する。図1は、本発明の本実施形態に係るグラフ統合装置の構成を示すブロック図である。
[Configuration of Graph Integration Device]
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.
With reference to FIG. 1, the structure of the graph integration apparatus which concerns on this embodiment of this invention is demonstrated. FIG. 1 is a block diagram showing a configuration of a graph integration apparatus according to this embodiment of the present invention.

図1のグラフ統合装置1は、入力要素を示すノードと、ノード間において分岐及び合流が可能なエッジとで構成されたエッジとで構成された入力グラフGが複数入力され、入力グラフGを統合するものであって、グラフ入力手段11と、入力グラフ記憶手段12と、類似度算出手段13と、類似判定手段14と、グラフ統合手段15と、グラフ追加手段16と、統合グラフ記憶手段17と、を備える。なお、図1では、入力グラフを符号G、統合グラフを符号Tで示した。   The graph integration device 1 in FIG. 1 integrates an input graph G by inputting a plurality of input graphs G composed of nodes indicating input elements and edges composed of edges that can branch and merge between the nodes. A graph input unit 11, an input graph storage unit 12, a similarity calculation unit 13, a similarity determination unit 14, a graph integration unit 15, a graph addition unit 16, and an integrated graph storage unit 17. . In FIG. 1, the input graph is indicated by a symbol G and the integrated graph is indicated by a symbol T.

グラフ入力手段11は、図2の複数の入力グラフG1,G2,G3,G4(G)が入力されるものである。例えば、グラフ入力手段11としては、入力グラフG1,G2,G3,G4(G)を外部から受信する通信ポート、又は、磁気ディスク等の記憶媒体に記憶された入力グラフGを読み取る読取装置がある。以下、入力グラフG1,G2,G3,G4を区別しないで説明する場合、単に入力グラフGとする。なお、入力グラフGの詳細は、後記する。   The graph input means 11 receives a plurality of input graphs G1, G2, G3, G4 (G) in FIG. For example, the graph input means 11 includes a communication port that receives the input graphs G1, G2, G3, and G4 (G) from the outside, or a reading device that reads the input graph G stored in a storage medium such as a magnetic disk. . Hereinafter, when the input graphs G1, G2, G3, and G4 are described without being distinguished, they are simply referred to as the input graph G. Details of the input graph G will be described later.

入力グラフ記憶手段12は、グラフ入力手段11に入力された入力グラフGを記憶する、例えば、HDD(Hard Disk Drive)等の記憶手段である。   The input graph storage unit 12 is a storage unit such as an HDD (Hard Disk Drive) that stores the input graph G input to the graph input unit 11.

類似度算出手段13は、例えば、後記する統合グラフ記憶手段17が統合グラフTを記憶してなければ、DPマッチング法を用いて、入力グラフ記憶手段12が記憶する複数の入力グラフG同士(例えば、図2(a)の入力グラフG1と図2(b)の入力グラフG2)におけるノードの一致と挿入誤りと欠落誤りと代替誤りとをDPマッチングの結果として求める。そして、類似度算出手段13は、このDPマッチングの結果を予め設定された関数に代入し、入力グラフGのそれぞれの類似度を算出するものである。   For example, if the integrated graph storage unit 17 (to be described later) does not store the integrated graph T, the similarity calculation unit 13 uses a DP matching method to store a plurality of input graphs G stored in the input graph storage unit 12 (for example, The node match, insertion error, missing error, and substitution error in the input graph G1 in FIG. 2A and the input graph G2 in FIG. 2B are obtained as a result of DP matching. Then, the similarity calculation unit 13 substitutes the DP matching result into a preset function, and calculates the similarity of each of the input graphs G.

ここで、入力グラフ記憶手段12は、入力グラフG毎に、その入力グラフGの類似度を算出したか否かを示す算出フラグをあわせて記憶しても良い。この場合、算出フラグは、類似度を未算出(例えば、「0」)が初期値として設定される。そして、類似度算出手段13は、類似度を算出した入力グラフGについて、算出フラグを算出済み(例えば、「1」)に設定しても良い。   Here, the input graph storage unit 12 may store a calculation flag indicating whether or not the similarity of the input graph G has been calculated for each input graph G. In this case, the calculation flag is set as an initial value where the similarity is not calculated (for example, “0”). Then, the similarity calculation means 13 may set the calculation flag to “calculated” (for example, “1”) for the input graph G for which the similarity is calculated.

また、類似度算出手段13は、例えば、統合グラフ記憶手段17が統合グラフTを記憶していれば、DPマッチング法を用いて、入力グラフ記憶手段12が記憶する入力グラフGと、統合グラフ記憶手段17が記憶する統合グラフTとのノードの一致と挿入誤りと欠落誤りと代替誤りとをDPマッチングの結果として求め、このDPマッチングの結果を関数に代入して入力グラフGと統合グラフTとの類似度を算出するものである。また、類似度算出手段13は、求めたDPマッチングの結果と、算出した類似度とを類似判定手段14、及び、類似判定手段14を介してグラフ統合手段15に出力する。   In addition, the similarity calculation unit 13 uses, for example, the DP matching method to store the input graph G stored in the input graph storage unit 12 and the integrated graph storage using the DP matching method if the integrated graph storage unit 17 stores the integrated graph T. The node match with the integrated graph T stored in the means 17, the insertion error, the missing error, and the substitution error are obtained as DP matching results, and the result of the DP matching is substituted into a function to obtain the input graph G and the integrated graph T; The degree of similarity is calculated. The similarity calculation unit 13 outputs the obtained DP matching result and the calculated similarity to the graph integration unit 15 via the similarity determination unit 14 and the similarity determination unit 14.

ここで、後記する統合グラフ記憶手段17は、統合グラフT毎に、その統合グラフTの類似度を算出したか否かを示す統合フラグをあわせて記憶しても良い。この場合、統合フラグは、類似度を未算出(例えば、「0」)が初期値として設定される。そして、類似度算出手段13は、類似度を算出した統合グラフTについて、統合フラグを算出済み(例えば、「1」)に設定しても良い。   Here, the integrated graph storage means 17 to be described later may store an integrated flag indicating whether or not the similarity of the integrated graph T has been calculated for each integrated graph T. In this case, the integration flag is set as an initial value that has not been calculated (for example, “0”). Then, the similarity calculation unit 13 may set the integration flag to already calculated (for example, “1”) for the integrated graph T for which the similarity is calculated.

類似判定手段14は、例えば、統合グラフ記憶手段17が統合グラフTを記憶してなければ、入力グラフGのそれぞれの類似度が予め設定された閾値以上の場合、入力グラフ記憶手段12が記憶する入力グラフGのそれぞれが類似すると判定し、入力グラフGのそれぞれの類似度が閾値未満の場合、入力グラフ記憶手段12が記憶する入力グラフGのそれぞれが類似しないと判定するものである。   For example, if the integrated graph storage unit 17 does not store the integrated graph T, the similarity determination unit 14 stores the input graph G when the similarity of each of the input graphs G is equal to or greater than a preset threshold value. It is determined that each of the input graphs G is similar, and when each similarity of the input graphs G is less than the threshold value, it is determined that each of the input graphs G stored by the input graph storage unit 12 is not similar.

また、類似判定手段14は、例えば、統合グラフ記憶手段17が統合グラフTを記憶していれば、入力グラフ記憶手段12が記憶する入力グラフGと統合グラフ記憶手段17が記憶する統合グラフTとが類似するか否かを判定する。なお、類似度の算出及び類似判定の詳細は、後記する。また、類似判定手段14は、類似するか否かの類似判定結果をグラフ統合手段15及びグラフ追加手段16に出力する。   In addition, the similarity determination unit 14 includes, for example, an input graph G stored in the input graph storage unit 12 and an integrated graph T stored in the integrated graph storage unit 17 if the integrated graph storage unit 17 stores the integrated graph T. Are determined to be similar. Details of the calculation of similarity and similarity determination will be described later. Further, the similarity determination unit 14 outputs a similarity determination result indicating whether or not they are similar to the graph integration unit 15 and the graph addition unit 16.

グラフ統合手段15は、類似判定手段14が出力した類似判定結果において、入力グラフGのそれぞれが類似する場合、DPマッチングの結果に基づいて、入力グラフGのそれぞれを統合グラフTに統合するものである。また、グラフ統合手段15は、類似判定手段14が出力した類似判定結果において、入力グラフGと統合グラフTとが類似する場合、DPマッチング法の結果に基づいて、入力グラフGと統合グラフTとを統合し、統合グラフ記憶手段17に記憶させる。   The graph integration unit 15 integrates each of the input graphs G into the integrated graph T based on the result of DP matching when the input graphs G are similar in the similarity determination result output by the similarity determination unit 14. is there. Further, the graph integration unit 15 determines that the input graph G and the integrated graph T based on the result of the DP matching method when the input graph G and the integrated graph T are similar in the similarity determination result output by the similarity determination unit 14. Are integrated and stored in the integrated graph storage means 17.

グラフ追加手段16は、類似判定手段14が出力した類似判定結果において、入力グラフGのそれぞれが類似しない場合、入力グラフGのそれぞれを新たな統合グラフTとして追加するものである。また、グラフ追加手段16は、類似判定手段14が出力した類似判定結果において、入力グラフGと統合グラフTとが類似しない場合、入力グラフGを新たな統合グラフTとして追加し、統合グラフ記憶手段17に記憶させる。   The graph addition unit 16 adds each of the input graphs G as a new integrated graph T when the input graphs G are not similar in the similarity determination result output by the similarity determination unit 14. Further, the graph adding means 16 adds the input graph G as a new integrated graph T when the input graph G and the integrated graph T are not similar in the similarity determination result output by the similarity determining means 14, and the integrated graph storage means 17 to memorize.

統合グラフ記憶手段17は、グラフ統合手段15が統合した統合グラフT又はグラフ追加手段16が追加した統合グラフTを記憶するものである。ここで、グラフ統合装置1は、統合グラフ記憶手段17が記憶する統合グラフTを、外部の音声認識装置(不図示)からの要求に応じて出力しても良い。なお、図1では、説明のために、入力グラフ記憶手段12と統合グラフ記憶手段17とを別々に図示したが、これらを1個の記憶手段で構成しても良い(不図示)。   The integrated graph storage unit 17 stores the integrated graph T integrated by the graph integration unit 15 or the integrated graph T added by the graph addition unit 16. Here, the graph integration device 1 may output the integrated graph T stored by the integrated graph storage unit 17 in response to a request from an external speech recognition device (not shown). In FIG. 1, the input graph storage unit 12 and the integrated graph storage unit 17 are illustrated separately for the sake of explanation, but these may be configured by one storage unit (not illustrated).

<入力グラフの詳細>
以下、図2,3を参照して、入力グラフの詳細について説明する(適宜図1参照)。図2は図1のグラフ入力手段に入力された入力グラフを説明する図であり、(a)〜(d)がそれぞれ入力グラフの第1例〜第4例である。また、図3は図1のグラフ入力手段に入力された入力グラフを説明する図であり、(a)〜(c)がそれぞれ入力グラフの第1例、第5例及び第6例である。なお、図2(a)と図3(a)に示す入力グラフは、同じものである。
<Details of input graph>
The details of the input graph will be described below with reference to FIGS. 2 and 3 (see FIG. 1 as appropriate). FIG. 2 is a diagram for explaining the input graph input to the graph input means of FIG. 1, and (a) to (d) are first to fourth examples of the input graph, respectively. FIG. 3 is a diagram for explaining an input graph input to the graph input means of FIG. 1, and (a) to (c) are a first example, a fifth example, and a sixth example of the input graph, respectively. Note that the input graphs shown in FIGS. 2A and 3A are the same.

図2では、入力グラフGの先頭を「先頭」、及び、入力グラフGの終了を「終了」として図示した。また、ノードは、長方形で図示し、そのノード名を長方形の内部に示した。以下、ノードを特定して説明する場合、そのノード名を記す(例えば、ノードA1、ノードC6等と記す)。さらに、エッジは、ノード間の接続、ノード間の合流及びノード間の分岐を示すものであり、ノード間を接続する矢印、及び、入力グラフGの先頭や終了とノードとを接続する矢印で図示した。この矢印の方向がエッジの接続方向を示すことからも明らかなように、入力グラフGは、ノードとエッジとで構成される有向グラフである。   In FIG. 2, the head of the input graph G is illustrated as “head”, and the end of the input graph G is illustrated as “end”. The nodes are illustrated by rectangles, and the node names are shown inside the rectangles. Hereinafter, when a node is specified and described, the node name is described (for example, a node A1, a node C6, etc.). Further, the edge indicates connection between nodes, merging between nodes, and branching between nodes, and is illustrated by an arrow connecting the nodes and an arrow connecting the head or end of the input graph G and the node. did. As is clear from the direction of the arrow indicating the connection direction of the edge, the input graph G is a directed graph composed of nodes and edges.

図2(a)に示すように、入力グラフG1は、その先頭から終了まで、ノードA1、ノードA2、ノードA3、ノードA4、ノードA5及びノードA6が順にエッジで接続されている。また、図2(b)に示すように、入力グラフG2は、ノードA1・・・ノードA4、ノードB5及びノードA6が順にエッジで接続されている。   As shown in FIG. 2A, in the input graph G1, the node A1, the node A2, the node A3, the node A4, the node A5, and the node A6 are sequentially connected by edges from the head to the end. As shown in FIG. 2B, in the input graph G2, the nodes A1,..., The node A4, the node B5, and the node A6 are sequentially connected by edges.

また、図2(c)に示すように、入力グラフG3は、ノードA1・・・ノードA4、ノードB5及びノードC6が順にエッジで接続されている。さらに、図2(d)に示すように、入力グラフG4は、ノードA1、ノードD2、ノードD3、ノードA4、ノードB5及びノードC6が順にエッジで接続されている。   Further, as shown in FIG. 2C, in the input graph G3, nodes A1,..., Node A4, node B5, and node C6 are sequentially connected by edges. Further, as shown in FIG. 2D, in the input graph G4, the node A1, the node D2, the node D3, the node A4, the node B5, and the node C6 are sequentially connected by edges.

図3(b)に示すように、入力グラフG5は、ノードA1・・・ノードA4及びノードB5が順にエッジで接続されている。また、図3(c)に示すように、入力グラフG6は、ノードA1・・・ノードB5、ノードA6及びノードA7が順にエッジで接続されている。   As shown in FIG. 3B, in the input graph G5, nodes A1,..., Node A4 and node B5 are sequentially connected by edges. As shown in FIG. 3C, the input graph G6 has nodes A1,..., Node B5, node A6, and node A7 connected in order by edges.

<類似度の算出及び類似判定の詳細:第1例>
以下、図4を参照して、類似度の算出及び類似判定の詳細について説明する(適宜図1,図2参照)。図4は図1のグラフ統合手段が統合した統合グラフを説明する図であり、(a)〜(c)がそれぞれ統合グラフの第1例〜第3例である。ここでは、図2に示す4個の入力グラフGの類似度を算出して類似判定する例を説明する。
<Details of Similarity Calculation and Similarity Determination: First Example>
Hereinafter, details of the calculation of the similarity and the similarity determination will be described with reference to FIG. 4 (see FIGS. 1 and 2 as appropriate). FIG. 4 is a diagram for explaining an integrated graph integrated by the graph integration unit of FIG. 1, and (a) to (c) are first to third examples of the integrated graph, respectively. Here, an example in which similarity is determined by calculating the similarity of the four input graphs G shown in FIG.

まず、類似度算出手段13は、DPマッチング法を用いて、図2の入力グラフG1,G2の類似度を算出する。具体的には、類似度算出手段13は、入力グラフG1,G2のノードの一致(H)、挿入誤り(I)、欠落誤り(D)又は代替誤り(S)を結果として求め、このDPマッチングの結果を下記式(1)に代入して類似度を算出する。ここで、式(1)が、請求項に記載の関数に相当する。   First, the similarity calculation unit 13 calculates the similarity of the input graphs G1 and G2 in FIG. 2 using the DP matching method. Specifically, the similarity calculation means 13 obtains the node match (H), insertion error (I), missing error (D) or substitution error (S) of the input graphs G1 and G2 as a result, and this DP matching. The degree of similarity is calculated by substituting the result into the following formula (1). Here, the expression (1) corresponds to the function described in the claims.

類似度=(H−I)/(H+S+D)・・・式(1)   Similarity = (HI) / (H + S + D) Formula (1)

この場合、類似度算出手段13は、入力グラフG1のノードA5と入力グラフG2のノードB5のみが代替誤りとなり、他のノードが一致するという結果「HHHHSH」を得ることができる。そして、類似度算出手段13は、このDPマッチングの結果を式(1)に代入し、類似度を5/6と算出する。なお、類似度算出手段13は、入力グラフG1,G2の算出フラグを算出済みに設定しても良い。   In this case, the similarity calculation means 13 can obtain “HHHHSH” as a result that only the node A5 of the input graph G1 and the node B5 of the input graph G2 become substitution errors and the other nodes match. Then, the similarity calculation means 13 substitutes the result of this DP matching into the equation (1), and calculates the similarity as 5/6. Note that the similarity calculation means 13 may set the calculation flags of the input graphs G1 and G2 to have been calculated.

類似判定手段14は、入力グラフG1,G2の類似度(例えば、5/6)と、予め設定された閾値(例えば、1/2)とを比較し、この類似度が閾値以上なので入力グラフG1,G2が類似すると判定する。   The similarity determination means 14 compares the similarity (for example, 5/6) of the input graphs G1 and G2 with a preset threshold value (for example, 1/2), and since the similarity is equal to or greater than the threshold value, the input graph G1 , G2 are determined to be similar.

入力グラフG1,G2が類似するので、グラフ統合手段15は、DPマッチング法の結果に基づいて、入力グラフG1,G2を図4(a)の統合グラフTに統合する。ここで、グラフ統合手段15は、DPマッチングの結果が一致となるノードについては、統合グラフTにおいて、そのノードをそのまま配置しても良い。また、グラフ統合手段15は、DPマッチングの結果が挿入誤りとなるノードについては、そのノードを統合グラフTに挿入しても良い。さらに、グラフ統合手段15は、DPマッチングの結果が欠落誤りとなるノードについては、そのノードをスキップするように、そのノードに前後するノード同士を直接接続するエッジを追加しても良い。そして、グラフ統合手段15は、DPマッチングの結果が代替誤りとなるノードについては、統合グラフTにおいて、代替え関係となるノードを並列に配置しても良い。   Since the input graphs G1 and G2 are similar, the graph integration unit 15 integrates the input graphs G1 and G2 into the integrated graph T in FIG. 4A based on the result of the DP matching method. Here, the graph integration unit 15 may arrange the nodes as they are in the integrated graph T for the nodes whose DP matching results match. Further, the graph integration unit 15 may insert a node into the integrated graph T for a node in which the DP matching result is an insertion error. Further, the graph integration unit 15 may add an edge that directly connects the nodes before and after the node so that the node that skips the DP matching result is skipped. Then, the graph integration unit 15 may arrange nodes in the integrated graph T in parallel in the integrated graph T for the nodes whose DP matching result is an alternative error.

具体的には、入力グラフG1,G2において、ノードA1〜ノードA4及びノードA6が一致するので、グラフ統合手段15は、「先頭」からノードA1・・・ノードA4を順にし、ノードA6を「終点」の直前とする。また、入力グラフG1,G2において、ノードA5とノードB5とが代替誤りとなるので、グラフ統合手段15は、ノードA5とノードB5とを並列にする。そして、グラフ統合手段15は、代替誤りとなるノードA5,B5の直前に位置するノードA4から、代替誤りとなるノードA5,B5にエッジを分岐させる。さらに、グラフ統合手段15は、代替誤りとなるノードA5,B5の直後に位置するノードA6に、代替誤りとなるノードA5,B5からエッジを合流させる。   Specifically, since the nodes A1 to A4 and the node A6 match in the input graphs G1 and G2, the graph integration unit 15 sequentially changes the node A6 from the “first” to the node A1. Immediately before the “end point”. In addition, in the input graphs G1 and G2, since the node A5 and the node B5 become substitution errors, the graph integration unit 15 makes the node A5 and the node B5 in parallel. Then, the graph integration unit 15 branches the edge from the node A4 located immediately before the nodes A5 and B5 that are substitution errors to the nodes A5 and B5 that are substitution errors. Further, the graph integration unit 15 merges edges from the nodes A5 and B5 that are substitution errors into the node A6 that is located immediately after the nodes A5 and B5 that are substitution errors.

なお、入力グラフG1,G2が類似しない場合、グラフ追加手段16は、入力グラフG1,2をそれぞれ、新たな統合グラフTとして統合グラフ記憶手段17に記憶させる。この場合、グラフ統合装置1は、複数の統合グラフTを用いて類似判定を行うことができる。   When the input graphs G1 and G2 are not similar, the graph adding unit 16 stores the input graphs G1 and G2 in the integrated graph storage unit 17 as new integrated graphs T, respectively. In this case, the graph integration device 1 can perform similarity determination using a plurality of integrated graphs T.

次に、類似度算出手段13は、DPマッチング法を用いて、算出フラグが未算出である、図2(c)の入力グラフG3と、図4(a)の統合グラフTとの類似度を算出する。なお、類似度算出手段13は、入力グラフG3の算出フラグを算出済みに設定し、統合グラフTの統合フラグを算出済みに設定しても良い。   Next, the similarity calculation means 13 uses the DP matching method to calculate the similarity between the input graph G3 in FIG. 2C and the integrated graph T in FIG. calculate. The similarity calculation unit 13 may set the calculation flag of the input graph G3 to “calculated” and set the integration flag of the integrated graph T to “calculated”.

ここでは、ノードA1・・・ノードA4までのDPマッチングが終了している場合を例に説明する。類似度算出手段13は、ノードA5とノードB5とが分岐するので、(1)統合グラフTにおけるノードA5に対する「HHHHD」、(2)統合グラフTにおけるノードA5に対する「HHHHS」、(3)統合グラフTにおけるノードB5に対する「HHHHD」、(4)統合グラフTにおけるノードB5に対する「HHHHH」、及び、(5)入力グラフG3におけるノードB5に対する「HHHHI」という5個の仮説を生成する。   Here, a case where DP matching up to node A1... Node A4 is completed will be described as an example. Since the node A5 and the node B5 branch, the similarity calculation means 13 is (1) “HHHHD” for the node A5 in the integrated graph T, (2) “HHHHS” for the node A5 in the integrated graph T, (3) integration Five hypotheses are generated: “HHHHD” for the node B5 in the graph T, (4) “HHHHH” for the node B5 in the integrated graph T, and (5) “HHHHI” for the node B5 in the input graph G3.

また、類似度算出手段13は、ノードA6で合流するので、(1)統合グラフTにおけるノードA5の欠落誤り、(2)統合グラフTにおけるノードA5の代替誤り、(3)統合グラフTにおけるノードB5の欠落誤り、(4)統合グラフTにおけるノードB5の一致、及び、(5)入力グラフG3におけるノードB5の挿入誤りという、前記した仮説をマージする。   Further, since the similarity calculation means 13 joins at the node A6, (1) a missing error of the node A5 in the integrated graph T, (2) a substitution error of the node A5 in the integrated graph T, (3) a node in the integrated graph T The above hypotheses of B5 missing error, (4) node B5 match in the integrated graph T, and (5) node B5 insertion error in the input graph G3 are merged.

ここでは、類似度算出手段13は、上記(4)の仮説が最小となるので、ノードB5が一致という結果を用いて、類似度を算出する。従って、類似度算出手段13は、統合グラフTのノードA6と入力グラフG3のノードC6のみが代替誤りとなり、他のノードが一致するという結果「HHHHH(B5)S」を用いて、類似度を5/6と算出する。   Here, the similarity calculation means 13 calculates the similarity using the result that the node B5 matches because the hypothesis (4) is minimized. Therefore, the similarity calculation means 13 uses the result “HHHHH (B5) S” that results in the substitution error only in the node A6 of the integrated graph T and the node C6 of the input graph G3, and the other nodes match. Calculated as 5/6.

類似判定手段14は、統合グラフTと入力グラフG3との類似度(例えば、5/6)と、閾値(例えば、1/2)とを比較し、この類似度が閾値以上なので統合グラフTと入力グラフG3とが類似すると判定する。   The similarity determination unit 14 compares the similarity (for example, 5/6) between the integrated graph T and the input graph G3 with a threshold (for example, 1/2). It is determined that the input graph G3 is similar.

統合グラフTと入力グラフG3とが類似するので、グラフ統合手段15は、DPマッチングの結果に基づいて、統合グラフTと入力グラフG3とを図4(b)の統合グラフT´(T)に統合する。ここで、統合グラフTと入力グラフG3において、ノードA1〜ノードA5,B5が一致するので、グラフ統合手段15は、統合グラフTのノードA1〜ノードA5,B5をそのままの順とする。   Since the integrated graph T and the input graph G3 are similar, the graph integration unit 15 converts the integrated graph T and the input graph G3 into an integrated graph T ′ (T) in FIG. 4B based on the DP matching result. Integrate. Here, since the nodes A1 to A5 and B5 match in the integrated graph T and the input graph G3, the graph integration unit 15 sets the nodes A1 to A5 and B5 of the integrated graph T as they are.

具体的には、統合グラフTと入力グラフG3において、ノードA6とノードC6が代替誤りとなるため、グラフ統合手段15は、ノードA6とノードC6とを並列に追加する。そして、グラフ統合手段15は、ノードA5とノードA6とを接続し、ノードB5からノードA6,C6にエッジを分岐させる。   Specifically, in the integrated graph T and the input graph G3, since the node A6 and the node C6 are substitution errors, the graph integration unit 15 adds the node A6 and the node C6 in parallel. Then, the graph integration unit 15 connects the node A5 and the node A6, and branches the edge from the node B5 to the nodes A6 and C6.

最後に、類似度算出手段13は、DPマッチング法を用いて、図2(d)の入力グラフG4と、図4(b)統合グラフT´との類似度を算出する。なお、類似度算出手段13は、入力グラフG4の算出フラグを算出済みに設定し、統合グラフT´の統合フラグを算出済みに設定しても良い。   Finally, the similarity calculation means 13 calculates the similarity between the input graph G4 in FIG. 2D and the integrated graph T ′ in FIG. 4B by using the DP matching method. The similarity calculation unit 13 may set the calculation flag of the input graph G4 to “calculated” and set the integration flag of the integrated graph T ′ to “calculated”.

このとき、前記と同様に、類似度算出手段13は、ノードB5及びノードC6を用いて類似度を算出する。この場合、類似度算出手段13は、統合グラフT´のノードA6と入力グラフG3のノードC6のみが代替誤りとなり、他のノードが一致するという結果「HSSH(B5)H(C6)」を用いて、類似度を2/3と算出する。   At this time, similar to the above, the similarity calculation unit 13 calculates the similarity using the node B5 and the node C6. In this case, the similarity calculation means 13 uses “HSSH (B5) H (C6)” as a result that only the node A6 of the integrated graph T ′ and the node C6 of the input graph G3 become substitution errors and other nodes match. Thus, the similarity is calculated as 2/3.

類似判定手段14は、統合グラフT´と入力グラフG4との類似度(例えば、2/3)と、閾値(例えば、1/2)とを比較し、この類似度が閾値以上なので統合グラフT´と入力グラフG4とが類似すると判定する。   The similarity determination unit 14 compares the similarity (for example, 2/3) between the integrated graph T ′ and the input graph G4 with a threshold (for example, 1/2), and since this similarity is equal to or greater than the threshold, the integrated graph T It is determined that 'and the input graph G4 are similar.

統合グラフT´と入力グラフG4とが類似するので、グラフ統合手段15は、DPマッチングの結果に基づいて、統合グラフT´と入力グラフG4とを図4(c)の統合グラフT´´(T)に統合する。   Since the integrated graph T ′ and the input graph G4 are similar, the graph integration unit 15 converts the integrated graph T ′ and the input graph G4 into the integrated graph T ″ (FIG. 4C) based on the DP matching result. T).

具体的には、統合グラフT´と入力グラフG4において、ノードA1,A4が一致するので、グラフ統合手段15は、統合グラフTのノードA1,A4をそのままの順とする。また、統合グラフT´と入力グラフG4において、ノードA2とノードD2、ノードA3とノードD3、ノードA5とノードB5、及び、ノードA6とノードC6が代替誤りとなる。ここで、グラフ統合手段15は、ノードA2とノードD2とを並行にし、ノードA3とノードD3とを並列にする。さらに、グラフ統合手段15は、代替誤りとなるノードA2,D2の直前に位置するノードA1から代替誤りとなるノードA2,D2にエッジを分岐させる。   Specifically, since the nodes A1 and A4 match in the integrated graph T ′ and the input graph G4, the graph integration unit 15 keeps the nodes A1 and A4 of the integrated graph T as they are. In addition, in the integrated graph T ′ and the input graph G4, the node A2 and the node D2, the node A3 and the node D3, the node A5 and the node B5, and the node A6 and the node C6 become substitution errors. Here, the graph integration unit 15 makes the node A2 and the node D2 parallel, and makes the node A3 and the node D3 parallel. Further, the graph integration unit 15 branches the edge from the node A1 located immediately before the nodes A2 and D2 that are substitution errors to the nodes A2 and D2 that are substitution errors.

また、グラフ統合手段15は、代替誤りとなるノードA2,D2とノードA3,D3とが連続するので、ノードA2からノードA3にエッジを接続し、ノードD2からノードD3にエッジを接続する。そして、グラフ統合手段15は、代替誤りとなるノードA3,D3の直後に位置するノードA4に、代替誤りとなるノードA3,D3からエッジを合流させる。なお、ノードA5,B5及びノードA6,C6については、統合グラフT´と同様のため、説明を省略する。   Further, since the nodes A2 and D2 and the nodes A3 and D3 that are substitution errors are continuous, the graph integration unit 15 connects the edge from the node A2 to the node A3, and connects the edge from the node D2 to the node D3. Then, the graph integration unit 15 merges the edges from the nodes A3 and D3 that are substitution errors into the node A4 that is located immediately after the nodes A3 and D3 that are substitution errors. Since the nodes A5 and B5 and the nodes A6 and C6 are the same as the integrated graph T ′, the description thereof is omitted.

このように、類似度算出手段13が、並行となるノードNのうち、入力グラフGのノードNと一致する経路で類似度を算出することで、従来ではn×(n−1)/2回行っていたグラフの比較回数を、n回に低減することができる。   As described above, the similarity calculation unit 13 calculates the similarity using a path that matches the node N of the input graph G among the parallel nodes N, and thus conventionally n × (n−1) / 2 times. The number of graph comparisons that have been made can be reduced to n times.

なお、統合グラフT´と入力グラフG4とが類似しない場合、グラフ追加手段16は、入力グラフG4を新たな統合グラフTとして統合グラフ記憶手段17に記憶させる。この場合、グラフ統合装置1は、複数の統合グラフTを用いて類似判定を行うことができる。   When the integrated graph T ′ and the input graph G4 are not similar, the graph adding unit 16 stores the input graph G4 in the integrated graph storage unit 17 as a new integrated graph T. In this case, the graph integration device 1 can perform similarity determination using a plurality of integrated graphs T.

<類似度の算出及び類似判定の詳細:第2例>
以下、図3に戻り、欠落誤り及び挿入誤りが発生した場合における類似度の算出を説明する(適宜図1参照)。
<Details of Similarity Calculation and Similarity Determination: Second Example>
Hereinafter, returning to FIG. 3, the calculation of the similarity when a missing error and an insertion error occur will be described (see FIG. 1 as appropriate).

例えば、図3(a)の入力グラフG1と、図3(b)の入力グラフG5と比較すると、類似度算出手段13は、ノードA6が欠落誤りとなる結果「HHHHSD」を得ることができる。また、類似度算出手段13は、このDPマッチングの結果を式(1)に代入して類似度を4/6と算出する。そして、前記と同様に、類似判定手段14は、この類似度が所定の閾値以上であるか否かにより、類似判定を行う。ここでは、この類似度が閾値(例えば、1/2)以上なので、類似判定手段14は、入力グラフG1,G5を類似すると判定する。   For example, when comparing the input graph G1 in FIG. 3A with the input graph G5 in FIG. 3B, the similarity calculation unit 13 can obtain the result “HHHHSD” in which the node A6 has a missing error. Also, the similarity calculation means 13 calculates the similarity as 4/6 by substituting the DP matching result into the equation (1). In the same manner as described above, the similarity determination unit 14 determines similarity based on whether or not the similarity is equal to or greater than a predetermined threshold. Here, since the similarity is greater than or equal to a threshold value (for example, 1/2), the similarity determination unit 14 determines that the input graphs G1 and G5 are similar.

また、図3(a)の入力グラフG1と、図3(c)の入力グラフG6と比較すると、類似度算出手段13は、ノードA7が挿入誤りとなる結果「HHHHSHI」を得ることができる。また、類似度算出手段13は、このDPマッチングの結果を式(1)に代入して類似度を4/6と算出する。そして、前記と同様に、類似判定手段14は、この類似度が所定の閾値以上であるか否かにより、類似判定を行う。ここでは、この類似度が閾値(例えば、1/2)以上なので、類似判定手段14は、入力グラフG1,G6を類似すると判定する。   Also, when comparing the input graph G1 in FIG. 3A and the input graph G6 in FIG. 3C, the similarity calculation means 13 can obtain “HHHHSHI” as a result of the insertion error in the node A7. Also, the similarity calculation means 13 calculates the similarity as 4/6 by substituting the DP matching result into the equation (1). In the same manner as described above, the similarity determination unit 14 determines similarity based on whether or not the similarity is equal to or greater than a predetermined threshold. Here, since the similarity is greater than or equal to a threshold (for example, 1/2), the similarity determination unit 14 determines that the input graphs G1 and G6 are similar.

[グラフ統合装置の動作]
以下、図5を参照して、本発明の本実施形態に係るグラフ統合装置の動作について説明する(適宜図1参照)。図5は、図1のグラフ統合装置の動作を示すフローチャートである。ここでは、入力グラフGが入力グラフ記憶手段12に記憶され、統合グラフTが統合グラフ記憶手段17に記憶されているものとして説明する。
[Operation of Graph Integration Device]
The operation of the graph integration apparatus according to this embodiment of the present invention will be described below with reference to FIG. 5 (see FIG. 1 as appropriate). FIG. 5 is a flowchart showing the operation of the graph integration apparatus of FIG. Here, description will be made assuming that the input graph G is stored in the input graph storage unit 12 and the integrated graph T is stored in the integrated graph storage unit 17.

グラフ統合装置1は、類似度算出手段13によって、入力グラフ記憶手段12に記憶された算出フラグを参照し、類似度が未計算の入力グラフGが有るか否かを判定する(ステップS1)。類似度が未計算の入力グラフGが有る場合(ステップS1でYes)、グラフ統合装置1は、類似度算出手段13によって、類似度の最大値を初期化(例えば、0に初期化)する(ステップS2)。   The graph integration device 1 refers to the calculation flag stored in the input graph storage unit 12 by the similarity calculation unit 13 and determines whether or not there is an input graph G whose similarity is not calculated (step S1). When there is an input graph G for which the similarity is not calculated (Yes in step S1), the graph integration device 1 initializes the maximum value of the similarity using the similarity calculation unit 13 (for example, initializes it to 0) ( Step S2).

ステップS2に続いて、グラフ統合装置1は、類似度算出手段13によって、統合グラフ記憶手段17に記憶された統合フラグを参照し、類似度が未計算の統合グラフTが有るか否かを判定する(ステップS3)。   Following step S2, the graph integration device 1 refers to the integration flag stored in the integrated graph storage unit 17 by the similarity calculation unit 13 and determines whether there is an integrated graph T whose similarity is not calculated. (Step S3).

類似度が未計算の統合グラフTが有る場合(ステップS3でYes)、グラフ統合装置1は、類似度算出手段13によって、DPマッチング法を用いて、統合グラフTと入力グラフGとの類似度を算出する(ステップS4)。そして、グラフ統合装置1は、類似度算出手段13によって、算出した類似度が、類似度の最大値以上であるか否かを判定する(ステップS5)。   When there is an integrated graph T whose similarity is not calculated (Yes in step S3), the graph integration device 1 uses the DP matching method by the similarity calculation unit 13 to determine the similarity between the integrated graph T and the input graph G. Is calculated (step S4). Then, the graph integration apparatus 1 determines whether or not the calculated similarity is equal to or greater than the maximum value of the similarity by the similarity calculation unit 13 (step S5).

算出した類似度が最大値以上の場合(ステップS5でYes)、グラフ統合装置1は、類似度算出手段13によって、算出した類似度で類似度の最大値を更新し(ステップS6)、ステップS3の処理に戻る。一方、類似度が最大値未満の場合(ステップS5でNo)、グラフ統合装置1は、類似度の最大値を更新せずに、ステップS3の処理に戻る。   When the calculated similarity is equal to or greater than the maximum value (Yes in step S5), the graph integration device 1 updates the maximum value of the similarity with the calculated similarity by the similarity calculation means 13 (step S6), and step S3. Return to the process. On the other hand, when the similarity is less than the maximum value (No in step S5), the graph integration device 1 returns to the process of step S3 without updating the maximum value of the similarity.

類似度が未計算の統合グラフTが無い場合(ステップS3でNo)、グラフ統合装置1は、類似判定手段14によって、統合グラフTと入力グラフGとの類似度が閾値以上の場合、統合グラフTと入力グラフGとが類似すると判定し、統合グラフTと入力グラフGとの類似度が閾値未満の場合、統合グラフTと入力グラフGとが類似しないと判定する(ステップS7)。   When there is no integrated graph T whose similarity is not calculated (No in step S3), the graph integration apparatus 1 determines that the similarity between the integrated graph T and the input graph G is greater than or equal to the threshold by the similarity determination unit 14. It is determined that T and the input graph G are similar, and if the similarity between the integrated graph T and the input graph G is less than the threshold value, it is determined that the integrated graph T and the input graph G are not similar (step S7).

統合グラフTと入力グラフGとが類似する場合(ステップS7でYes)、グラフ統合装置1は、グラフ統合手段15によって、DPマッチング法の結果に基づいて、統合グラフTと入力グラフGとを統合する(ステップS8)。一方、統合グラフTと入力グラフGとが類似しない場合(ステップS7でNo)、グラフ統合装置1は、グラフ追加手段16によって、入力グラフGを新たな統合グラフTとして追加する(ステップS9)。   When the integrated graph T and the input graph G are similar (Yes in step S7), the graph integration device 1 integrates the integrated graph T and the input graph G by the graph integration unit 15 based on the result of the DP matching method. (Step S8). On the other hand, when the integrated graph T and the input graph G are not similar (No in step S7), the graph integrating device 1 adds the input graph G as a new integrated graph T by the graph adding unit 16 (step S9).

その後、グラフ統合装置1は、ステップS1の処理に戻り、入力グラフ記憶手段12に記憶された算出フラグを参照し、類似度が未計算の入力グラフGが有るか否かを判定する。ここで、類似度が未計算の入力グラフGが有る場合、グラフ統合装置1は、類似度が未計算の入力グラフGが無くなるまで、前記した処理を繰り返す。また、類似度が未計算の入力グラフGが無い場合(ステップS1でNo)、グラフ統合装置1は、処理を終了する。   Thereafter, the graph integration device 1 returns to the process of step S1 and refers to the calculation flag stored in the input graph storage unit 12 to determine whether or not there is an input graph G whose degree of similarity has not been calculated. Here, when there is an input graph G whose similarity is not calculated, the graph integration apparatus 1 repeats the above-described processing until there is no input graph G whose similarity is not calculated. If there is no input graph G whose similarity is not calculated (No in step S1), the graph integration device 1 ends the process.

なお、本実施形態では、本発明に係るグラフ統合装置を独立した装置として説明したが、本発明では、一般的なコンピュータを、前記した各手段として機能させるプログラムによって動作させることもできる。このプログラムは、通信回線を介して配布しても良く、CD−ROMやフラッシュメモリ等の記録媒体に書き込んで配布しても良い。   In the present embodiment, the graph integration apparatus according to the present invention has been described as an independent apparatus. However, in the present invention, a general computer can be operated by a program that functions as each of the above-described units. This program may be distributed via a communication line, or may be distributed by writing in a recording medium such as a CD-ROM or a flash memory.

本発明の本実施形態に係るグラフ統合装置の構成を示すブロック図である。It is a block diagram which shows the structure of the graph integration apparatus which concerns on this embodiment of this invention. 図1のグラフ入力手段に入力された入力グラフを説明する図であり、(a)〜(d)がそれぞれ入力グラフの第1例〜第4例である。It is a figure explaining the input graph input into the graph input means of FIG. 1, (a)-(d) is the 1st example-4th example of an input graph, respectively. 図1のグラフ入力手段に入力された入力グラフを説明する図であり、(a)〜(c)がそれぞれ入力グラフの第1例、第5例及び第6例である。It is a figure explaining the input graph input into the graph input means of FIG. 1, (a)-(c) is the 1st example, 5th example, and 6th example of an input graph, respectively. 図1のグラフ統合手段が統合した統合グラフを説明する図であり、(a)〜(c)がそれぞれ統合グラフの第1例〜第3例である。It is a figure explaining the integrated graph which the graph integration means of FIG. 1 integrated, (a)-(c) is the 1st example-3rd example of an integrated graph, respectively. 図1のグラフ統合装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the graph integration apparatus of FIG.

符号の説明Explanation of symbols

1 グラフ統合装置
11 グラフ入力手段
12 入力グラフ記憶手段
13 類似度算出手段
14 類似判定手段
15 グラフ統合手段
16 グラフ追加手段
17 統合グラフ記憶手段
DESCRIPTION OF SYMBOLS 1 Graph integration apparatus 11 Graph input means 12 Input graph storage means 13 Similarity calculation means 14 Similarity determination means 15 Graph integration means 16 Graph addition means 17 Integrated graph storage means

Claims (2)

入力要素を示すノードと前記ノードにおいて分岐及び合流が可能なエッジとで構成された入力グラフが複数入力され、前記入力グラフを統合するグラフ統合装置において、
DPマッチング法を用いて、前記複数の入力グラフの前記ノードの一致と挿入誤りと欠落誤りと代替誤りとを求め、当該DPマッチングの結果を予め設定された関数に代入して前記入力グラフ同士の類似度を算出する類似度算出手段と、
前記入力グラフ同士の類似度が予め設定された閾値以上の場合、前記入力グラフ同士が類似すると判定し、前記類似度が前記閾値未満の場合、前記入力グラフ同士が類似しないと判定する類似判定手段と、
前記DPマッチングの結果に基づいて、前記入力グラフ同士が類似する場合、前記入力グラフ同士を統合グラフに統合するグラフ統合手段と、
前記入力グラフ同士が類似しない場合、前記入力グラフのそれぞれを新たな前記統合グラフとして追加するグラフ追加手段と、を備え、
前記類似度算出手段は、前記入力グラフと、前記グラフ統合手段が統合した統合グラフ又は前記グラフ追加手段が追加した統合グラフとの類似度を算出し、
前記類似判定手段は、前記入力グラフと前記統合グラフとの類似度が前記閾値以上の場合、前記入力グラフと前記統合グラフとが類似すると判定し、前記類似度が前記閾値未満の場合、前記入力グラフと前記統合グラフとが類似しないと判定し、
前記グラフ統合手段は、前記入力グラフと前記統合グラフとが類似する場合、前記入力グラフと前記統合グラフとを統合し、
前記グラフ追加手段は、前記入力グラフと前記統合グラフとが類似しない場合、前記入力グラフを新たな前記統合グラフとして追加することを特徴とするグラフ統合装置。
In a graph integration device that inputs a plurality of input graphs composed of nodes indicating input elements and edges capable of branching and joining at the nodes, and integrating the input graphs,
Using the DP matching method, the node matching, insertion error, missing error, and substitution error of the plurality of input graphs are obtained, and the result of the DP matching is substituted into a preset function to obtain a difference between the input graphs. Similarity calculation means for calculating similarity;
Similarity determination means for determining that the input graphs are similar when the similarity between the input graphs is equal to or greater than a preset threshold, and determining that the input graphs are not similar when the similarity is less than the threshold When,
Based on the result of the DP matching, when the input graphs are similar to each other, a graph integration unit that integrates the input graphs into an integrated graph;
If the input graphs are not similar to each other, a graph adding means for adding each of the input graphs as a new integrated graph, and
The similarity calculation means calculates the similarity between the input graph and the integrated graph integrated by the graph integration means or the integrated graph added by the graph addition means,
The similarity determination unit determines that the input graph and the integrated graph are similar when the similarity between the input graph and the integrated graph is equal to or greater than the threshold, and when the similarity is less than the threshold, the input Determining that the graph and the integrated graph are not similar,
The graph integration means integrates the input graph and the integrated graph when the input graph and the integrated graph are similar,
The graph adding unit adds the input graph as the new integrated graph when the input graph and the integrated graph are not similar.
入力要素を示すノードと前記ノードにおいて分岐及び合流が可能なエッジとで構成された入力グラフが複数入力され、前記入力グラフを統合するために、コンピュータを、
DPマッチング法を用いて、前記複数の入力グラフの前記ノードの一致と挿入誤りと欠落誤りと代替誤りとを求め、当該DPマッチングの結果を予め設定された関数に代入して前記入力グラフ同士の類似度を算出する類似度算出手段、
前記入力グラフ同士の類似度が予め設定された閾値以上の場合、前記入力グラフ同士が類似すると判定し、前記類似度が前記閾値未満の場合、前記入力グラフ同士が類似しないと判定する類似判定手段、
前記DPマッチングの結果に基づいて、前記入力グラフ同士が類似する場合、前記入力グラフ同士を統合グラフに統合するグラフ統合手段、
前記入力グラフ同士が類似しない場合、前記入力グラフのそれぞれを新たな前記統合グラフとして追加するグラフ追加手段、として機能させ、
前記類似度算出手段は、前記入力グラフと、前記グラフ統合手段が統合した統合グラフ又は前記グラフ追加手段が追加した統合グラフとの類似度を算出し、
前記類似判定手段は、前記入力グラフと前記統合グラフとの類似度が前記閾値以上の場合、前記入力グラフと前記統合グラフとが類似すると判定し、前記類似度が前記閾値未満の場合、前記入力グラフと前記統合グラフとが類似しないと判定し、
前記グラフ統合手段は、前記入力グラフと前記統合グラフとが類似する場合、前記入力グラフと前記統合グラフとを統合し、
前記グラフ追加手段は、前記入力グラフと前記統合グラフとが類似しない場合、前記入力グラフを新たな前記統合グラフとして追加することを特徴とするグラフ統合プログラム。
In order to integrate a plurality of input graphs composed of nodes indicating input elements and edges that can branch and merge at the nodes,
Using the DP matching method, the node matching, insertion error, missing error, and substitution error of the plurality of input graphs are obtained, and the result of the DP matching is substituted into a preset function to obtain a difference between the input graphs. Similarity calculation means for calculating similarity,
Similarity determination means for determining that the input graphs are similar when the similarity between the input graphs is equal to or greater than a preset threshold, and determining that the input graphs are not similar when the similarity is less than the threshold ,
If the input graphs are similar based on the result of the DP matching, a graph integration unit that integrates the input graphs into an integrated graph;
When the input graphs are not similar to each other, function as a graph addition unit that adds each of the input graphs as a new integrated graph,
The similarity calculation means calculates the similarity between the input graph and the integrated graph integrated by the graph integration means or the integrated graph added by the graph addition means,
The similarity determination unit determines that the input graph and the integrated graph are similar when the similarity between the input graph and the integrated graph is equal to or greater than the threshold, and when the similarity is less than the threshold, the input Determining that the graph and the integrated graph are not similar,
The graph integration means integrates the input graph and the integrated graph when the input graph and the integrated graph are similar,
The graph adding program, when the input graph and the integrated graph are not similar, adds the input graph as a new integrated graph.
JP2008196955A 2008-07-30 2008-07-30 Graph integration apparatus and program thereof Active JP4956503B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008196955A JP4956503B2 (en) 2008-07-30 2008-07-30 Graph integration apparatus and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008196955A JP4956503B2 (en) 2008-07-30 2008-07-30 Graph integration apparatus and program thereof

Publications (2)

Publication Number Publication Date
JP2010032919A JP2010032919A (en) 2010-02-12
JP4956503B2 true JP4956503B2 (en) 2012-06-20

Family

ID=41737441

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008196955A Active JP4956503B2 (en) 2008-07-30 2008-07-30 Graph integration apparatus and program thereof

Country Status (1)

Country Link
JP (1) JP4956503B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5315291B2 (en) 2010-04-30 2013-10-16 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, program, and system for calculating similarity between nodes in a graph

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3364631B2 (en) * 1999-09-17 2003-01-08 株式会社国際電気通信基礎技術研究所 Statistical language model generation apparatus and speech recognition apparatus
JP2001282779A (en) * 2000-03-30 2001-10-12 Telecommunication Advancement Organization Of Japan Computerized text creation system
JP2003015685A (en) * 2001-06-28 2003-01-17 Nippon Hoso Kyokai <Nhk> Graph change device, time series data integration device, graph change program, and time series data integration program
JP4826719B2 (en) * 2005-07-25 2011-11-30 日本電気株式会社 Speech recognition system, speech recognition method, and speech recognition program

Also Published As

Publication number Publication date
JP2010032919A (en) 2010-02-12

Similar Documents

Publication Publication Date Title
US8494835B2 (en) Post-editing apparatus and method for correcting translation errors
CN110970031B (en) Speech recognition system and method
JPWO2008004666A1 (en) Speech recognition apparatus, speech recognition method, and speech recognition program
JP2005258439A (en) Generating large unit of graphoneme with mutual information criterion for character-to-sound conversion
CN105869629A (en) Voice recognition method and device
CN111105787B (en) Text matching method and device and computer readable storage medium
JP2024522238A (en) Method and apparatus for generating training data for application to a speech recognition model
US20130138441A1 (en) Method and system for generating search network for voice recognition
CN111737417A (en) Method and apparatus for correcting natural language generation results
CN112241629B (en) Method and device for generating pinyin-annotated text by combining RPA and AI
JP4956503B2 (en) Graph integration apparatus and program thereof
JP2010139745A (en) Recording medium storing statistical pronunciation variation model, automatic voice recognition system, and computer program
CN114495986B (en) Pronunciation error detection method and device, speech scoring method and device
CN105373527A (en) Omission recovery method and question-answering system
JP2005084436A (en) Speech recognition apparatus and computer program
CN115545013A (en) Sound-like error correction method and device for conversation scene
JP6027754B2 (en) Adaptation device, speech recognition device, and program thereof
JP4990822B2 (en) Dictionary correction device, system, and computer program
US20090299744A1 (en) Voice recognition apparatus and method thereof
JP2017015821A (en) Speech synthesis apparatus, speech synthesis method, and program
JP5113662B2 (en) Text-to-speech reading device for speech synthesis and program thereof
JP2010224153A (en) Spoken dialogue apparatus and program
CN119067102A (en) Text error correction method, device, medium, and equipment based on large model
JP4826719B2 (en) Speech recognition system, speech recognition method, and speech recognition program
McDonough et al. An algorithm for fast composition of weighted finite-state transducers

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110128

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20110128

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20110128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120209

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120221

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120316

R150 Certificate of patent or registration of utility model

Ref document number: 4956503

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150323

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250