JPS5860800A - Similarity detector - Google Patents
Similarity detectorInfo
- Publication number
- JPS5860800A JPS5860800A JP56160518A JP16051881A JPS5860800A JP S5860800 A JPS5860800 A JP S5860800A JP 56160518 A JP56160518 A JP 56160518A JP 16051881 A JP16051881 A JP 16051881A JP S5860800 A JPS5860800 A JP S5860800A
- Authority
- JP
- Japan
- Prior art keywords
- counter
- count output
- section
- comparison
- match
- 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.)
- Pending
Links
Landscapes
- Character Discrimination (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
本発明は基準情報と比較情報とを比較してその類似度の
評価を行なう類似度検出装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a similarity detection device that compares reference information and comparison information to evaluate their similarity.
一般に音声認識などのツヤターン認識においては、比“
較される入カッ々ターンと原(基準)パターンとが完全
に一致することは殆んどない。したがって、このような
場合、入カバターンと原パターンが単に一致するか否か
というより、両パターンの間にどの程度の隔たりがある
か、すなわち両パターンの類似度がどの程度であるかを
検出できることが必要となる。In general, in glossy turn recognition such as voice recognition,
It is very unlikely that the input pattern to be compared and the original (reference) pattern will completely match. Therefore, in such cases, it is possible to detect not only whether the input cover pattern and the original pattern match, but also how much of a gap there is between the two patterns, that is, how similar the two patterns are. Is required.
本発明は上記事情に鑑みてなされたものでその目的は、
基準情報に対する比較情報の類似度が効率的に検出でき
る類似度検出装置を提供することにある。The present invention has been made in view of the above circumstances, and its purpose is to:
An object of the present invention is to provide a similarity detection device that can efficiently detect the similarity of comparison information to reference information.
以下、本発明の一実施例を図面を参照して説明する。第
1図#−i類似度検出装置の構成を示すプロ、り図であ
り、11.11!rriたとえばレジスタ構成(メモリ
′構成であってもよい)の第1゜第2保持部である。第
1保持部KFi比較の基となる基準情報(のデータ列)
が保持され、第2保持部には比較の対象となる比較情報
(のデータ列)が保持される。13は読み出し部である
。Hereinafter, one embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a professional diagram showing the configuration of the similarity detection device, and 11.11! rri is, for example, a first and second holding section of a register configuration (or may be a memory' configuration). Reference information (data string) that is the basis of first holding unit KFi comparison
is held, and the comparison information (data string) to be compared is held in the second holding unit. 13 is a reading section.
読み出し部13は後述する判断部17からの指令に応じ
て[1,@2保持部11.12の指定された位置からそ
れぞれ上記基準情報および比較情報の該当部分を構成要
素単位で読み出すとともK、必要に応じて構成要素の列
の入れ換えを行ない、第1.第2読み出し出力として比
較器14に出力するようになっている。比較器14はこ
れら@1.第2読み出し出力を比較して一致/不一致を
検出するもので、たとえば一致の場合に論理11′、不
一致の場合に論理′o1の比較検出信号COMPを出力
する。15は比較器14の不一致検出回数をカウントす
るカウンタ、16はカウンタ15のカウント出力が記憶
される配憶部、17け判断部である。The reading unit 13 reads the corresponding portions of the reference information and comparison information in units of constituent elements from the designated positions of the holding units 11 and 12 in response to a command from the determining unit 17, which will be described later. , the columns of the constituent elements are swapped as necessary, and the first. It is designed to be outputted to the comparator 14 as a second readout output. The comparator 14 compares these @1. It compares the second read outputs to detect coincidence/mismatch, and outputs a comparison detection signal COMP of logic 11' if they match, and logic 'o1 if they do not match. 15 is a counter for counting the number of times the comparator 14 detects a discrepancy; 16 is a storage section in which the count output of the counter 15 is stored; and 17 is a judgment section.
判断s77は比較器14から出力される比較検出信号C
OMPおよびカウンタ15のカウント出力に応じ、読み
出し部Z3に対して第1.第2保持部11.12におけ
る次の読み出し位置、更には入れ換えを指定するように
なっている。Judgment s77 is based on the comparison detection signal C output from the comparator 14.
According to OMP and the count output of the counter 15, the first . The next reading position in the second holding section 11, 12 and further replacement are designated.
この指定によって読み出し部13は構成要素の先読み、
更には構成要素の入れ換えなどの読み出し操作を奥行す
る0本実施例では、基準情報と比較情報との類似度評価
を、その構成要素間の比較すなわち部分比較に基づいて
行なうようになっている。ところで、この部分比較にお
いて、一致が検出されなかった場合でも、構成要素の配
列を前後入れ換えることによって一致したり・基準情報
または比較情報のいずれか一方の構成Ij!素に代え、
該当する構成要素より何文字か後の構成要素を先読みし
てくることによって一致したりすることがある。そこで
本実施例では・本来比較されるべき構成要素間で〒致が
検出されなかつた場合次の#IIt或l!素の比較へと
移らずに、次の■の操作(操作■)が行なわれるように
なっている。With this designation, the reading unit 13 reads the constituent elements in advance,
In this embodiment, the similarity between the reference information and the comparison information is evaluated based on a comparison between the constituent elements, that is, a partial comparison. By the way, even if a match is not detected in this partial comparison, a match can be achieved by rearranging the arrangement of the constituent elements.・Configuration Ij of either the reference information or the comparison information! Instead of plain,
Sometimes a match can be made by looking ahead at the component several characters after the corresponding component. Therefore, in this embodiment, if no match is detected between the constituent elements that should originally be compared, the next #IItorl! The next operation (■) is performed without moving on to elementary comparison.
■−・第1.第2保持部11.12の該当位置に続く幾
つかの位置(たとえば次の位置)の構成要素を読み出し
、該当位置の構成要素を含む基準情報または比較情報の
いずれか一方の部分構成要素列の入れ換えを行なって比
較を行なう。■-・First. The components at some positions (for example, the next position) following the corresponding position of the second holding unit 11.12 are read out, and the partial component string of either the reference information or the comparison information including the component at the corresponding position is read out. Perform the swap and compare.
■の操作で一致が検出されなかった場合K11次の構成
要素の比較へと移らずに、操作■が行なわれるようにな
っている。If no match is detected in the operation (2), the operation (2) is performed without proceeding to the comparison of the next component in K11.
■・・・第1保持部11の#蟲位−に続く幾つかの位置
(たとえば次の装置)の構成要素を先読みし、第2保持
部12の1*尚位置の構成要素と比較する。この■の操
作で一致が検出されなかった場合には操作■が行なわれ
る。(2) Pre-read the components at some positions (for example, the next device) following ## in the first holding section 11 and compare them with the components at the 1* still position in the second holding section 12. If no match is detected in this operation (2), operation (2) is performed.
■・・・第2保持部12の該蟲位置に続く幾つかの位f
ft(たとえば次の位tjt)のS数要素を先読みし、
第1保持部1ノの該当位置の構成要素と比較する・これ
ら操作■、■の順序は■→■であってもよく、本実施例
では操作■、■いずれにおいて一致が検出されても同じ
評価を与えるようになっている。上記■の操作で一致が
検出されなかった場合には、上記操作■〜■6ように該
当構成要素を変形して一致させようとする操作を停止す
る(操作■)、そして、一致検出時と同様に次の構成要
素の比較へと移る。■...Several positions f following the insect position of the second holding part 12
Read ahead the S number elements of ft (for example, the next digit tjt),
Compare with the component at the corresponding position of the first holding part 1・The order of these operations ■ and ■ may be ■→■, and in this embodiment, the same is true even if a match is detected in either operation ■ or ■ It is designed to give an evaluation. If a match is not detected in the above operation (■), stop the operation of transforming the corresponding component to make it match as described in operations (■) to (6) above (operation ■), and then Similarly, we move on to the comparison of the next component.
判断部1rは、比較器14で一致が検出された場合(C
OMP=’l’)、その時点のカウンタ15のカウント
出力を記憶部16に記憶し、しかる後カウンタ15を初
期化たとえばクリアする。When a match is detected by the comparator 14 (C
OMP='l'), the count output of the counter 15 at that time is stored in the storage section 16, and then the counter 15 is initialized, for example, cleared.
また判断部11は上記■の操作で一致が検出されなかっ
た場合、カウンタ15のカウント出力をたとえば+1し
て配憶s16に記憶し、しかる後カウンタ15をクリア
する・更に判断部I2は基準情報と比較情報との比較が
終了した際に配憶部16に記憶されている各カウント出
力の総和をとり、この値に基づいて類似度の評価を行な
うようになっている。なお本実施例では、上記各カウン
ト出力の総和をとる際、カウント出力=「3」は「2」
として処理されるようになっている。Further, if a match is not detected in the above operation (■), the judgment unit 11 increases the count output of the counter 15 by, for example, +1, stores it in the memory s16, and then clears the counter 15.Furthermore, the judgment unit I2 outputs the reference information. When the comparison between the information and the comparison information is completed, the sum of each count output stored in the storage unit 16 is calculated, and the degree of similarity is evaluated based on this value. In addition, in this embodiment, when calculating the sum of the above respective count outputs, the count output = "3" is equal to "2".
It is now processed as .
次に第1図の構成の動作をテキスト文の処理における文
字列の比較の場合を例にとって説明する。たとえば基準
情報がrTHI BU8I邪58J(aと称する)、比
較情報がrHTK BU88INNESJ (bと称す
る) 、 rTHE BU8YJ (eと称する)の場
合に、1とbの比較およびaとCの比較を行ない、b、
cいずれの方がaに対する類似度が高いかを調べる・も
のとする。Next, the operation of the configuration shown in FIG. 1 will be explained by taking as an example the case of character string comparison in text sentence processing. For example, when the reference information is rTHI BU8I evil58J (referred to as a) and the comparison information is rHTK BU88INNESJ (referred to as b), rTHE BU8YJ (referred to as e), 1 and b are compared and a and C are compared, b,
Investigate which c has a higher degree of similarity to a.
まず、aとbの比較について説明する。いま、第1保持
部11にa (rTHE BU8INESSJ)が、f
jlIJ2保持部12にb (rHTE BU88IN
NE8J)がそれぞれ保持されているものとする。この
状態で判断部12に対して比較命令が与えられると、判
断部11は読み出し部13に対して第1保持部11゜第
2保持部Z2の読み出し位置を指定する。この結果、読
み出し部1Bは第1保持部11.第2保持部12の左端
の構成要戴T 、 Hをそれぞれ読み出しく本実施例で
は1文字が1構成要素となっている)、第1.第2読み
出し出力として比較器14に出力する。とれにより比較
器14において1文字目同士(TとH)の比較が行なわ
れる。この場合には不一致となるため、比較器14から
論理′01の比較検出信号COMPが出力される。カウ
ンタ15はこの論理′O′の比較検出信号COMPによ
ってカウントアツプし・そのカウント出力は「1」とな
る0判断部17Fi鍮理′01の比較検出信号COMP
およびカウント出力「1」によって読み出し部13に対
する次の指示内容を判断し、前述した■の操作の指示を
絖み呂し部z3に与える。これKより読み出し部13#
i第1保持部11.第2保持部12からそれぞれ次の1
文字(2文字目)H,Tを読み出し、前の1文字T、H
と合わせてHT 、 THとし、いずれか一方の文字列
を入れ換えて嬉1゜8g2読み出し出力として比較器1
4に出力する。First, a comparison between a and b will be explained. Now, a (rTHE BU8INESSJ) is placed in the first holding part 11, and f
jlIJ2 holding part 12 b (rHTE BU88IN
NE8J) are held respectively. When a comparison command is given to the determining unit 12 in this state, the determining unit 11 specifies the reading position of the first holding unit 11° and the second holding unit Z2 to the reading unit 13. As a result, the reading section 1B has the first holding section 11. The components T and H at the left end of the second holding section 12 are read out (in this embodiment, one character is one component), the first. It is output to the comparator 14 as a second readout output. Due to this, the first characters (T and H) are compared in the comparator 14. In this case, since they do not match, the comparator 14 outputs a comparison detection signal COMP of logic '01. The counter 15 counts up in response to the comparison detection signal COMP of logic 'O' and its count output becomes "1".
Based on the count output "1", the content of the next instruction to the reading unit 13 is determined, and the instruction for the above-mentioned operation (2) is given to the locking unit z3. Read unit 13# from this K
i first holding section 11. Each of the following 1 from the second holding part 12
Read the characters (2nd character) H, T, read the previous character T, H
Combined with HT and TH, replace one of the strings and read out the 1゜8g2 output from comparator 1.
Output to 4.
この場合には一致するため、比較器14がら論理′1”
の比較検出信号COMPが出力される・判断部17は論
理′11の比較検出信号COMP Kよって一致検出を
知り、そのときのカウンタI5のカウント出力「1」を
賠2図に示されるように記憶部16の先頭領域に記憶せ
しめ、しかる後カウンタ1sをクリアする。次に、判断
部17F13文字目の比較を行なうためにその旨の指示
を読み出し剖13に与える。この場合には比較器14に
て3文字目同士すなわちE(a側)、E(b側)の比較
が行なわれることKなり、一致が検出される。したがっ
てカウンタ15はクリア状態を保っており・12図に示
されるように記憶部ICo彼続する領域にはカウンタ1
5のカウント出力「0」が記憶される。以下、4文字目
(ブランク)〜7文字目(S)についても上述した場合
と同様に4文字目同士〜7文字目同士でそれぞれ一致す
るため、カウンタ15のカウント出力「0」が笛2図に
示されるように記憶部16の更に彼続する領域に順次記
憶される。In this case, since they match, the comparator 14 outputs a logic '1''.
The comparison detection signal COMP of logic '11' is output.The judgment unit 17 knows that a match has been detected by the comparison detection signal COMPK of logic '11, and stores the count output '1' of the counter I5 at that time as shown in Figure 2. The counter 1s is then cleared. Next, in order to compare the 13th character of the judgment section 17F, an instruction to that effect is read out and given to the autopsy section 13. In this case, the comparator 14 compares the third characters, that is, E (a side) and E (b side), and a match is detected. Therefore, the counter 15 maintains a clear state, and as shown in FIG.
The count output "0" of 5 is stored. Hereinafter, as for the 4th character (blank) to the 7th character (S), the 4th to 7th characters match, respectively, as in the case described above, so the count output "0" of the counter 15 is the same as the whistle 2 figure. The data are sequentially stored in subsequent areas of the storage unit 16 as shown in FIG.
次の8文字目はI(a引IJ)、S(b側)となる、こ
の場合一致しないので次の9文字目同(a側)、1(b
ll)も読み出して文字夕BN(a側)、5r(b側)
とし、いずれか一方の文字列を入れ換えて比較を行なう
(操作■″)。との場合も一致しないため、前述した■
の操作の指示が判断部17から読み出し部1Mに与えら
れる。この結果、sgl保持部11から1文字先読みさ
れ(9文字目N)、第2保持部1208文字目Sと比較
される0本実艶例ではとの■の操作にても一致しないた
め、■9声作が行なわれる。すなわち第2保持部12か
ら1文字先読みされ(9文字目I)、第1保持部11の
8文字目Iと比較される。この結果、比較器14にで一
致が検出される。この例では、8文字目向士の比較が行
なわれてから、一致が検出されるまでの不一致検出回数
は3回であり、第2図に示されるように記憶部16の更
に後続する領域にカウンタ15のカウント出力「3」が
記憶される。この場合・上述したように■の操作により
aの8文字目とbの9文字目との一致が検出されるため
、次の比較はaの9文字目Nとbの10文字目Nとの間
で行なわれる。この比較で16の更に後続する領域にt
ill!2図に示されるようにカウンタ15のカウント
出力「0」が記憶される。The next 8th character is I (a pull IJ), S (b side). In this case, they do not match, so the next 9th character is I (a side), 1 (b side).
ll) is also read out and the characters BN (a side), 5r (b side)
, replace one of the strings and compare (operation ■″). Since there is no match in the case of , the above-mentioned ■
An instruction for the operation is given from the judgment section 17 to the reading section 1M. As a result, one character is read ahead from the sgl holding unit 11 (9th character N) and compared with the 1208th character S of the second holding unit. A nine-voice piece will be performed. That is, one character is prefetched from the second holding section 12 (the ninth character I) and compared with the eighth character I of the first holding section 11 . As a result, the comparator 14 detects a match. In this example, the number of times a mismatch is detected after the 8th character is compared until a match is detected is three times, and as shown in FIG. The count output "3" of the counter 15 is stored. In this case, as mentioned above, a match between the 8th character of a and the 9th character of b is detected by the operation ■, so the next comparison is between the 9th character N of a and the 10th character N of b. It is done between. In this comparison, t
ill! As shown in FIG. 2, the count output "0" of the counter 15 is stored.
次に1の10文字目Eとbの11文字目Nとの比較が行
なわれる。この場合不一致となるため、更にaの11文
字目8.bの12文字目Eも読み出して文字列E8(1
側)、NE(b@)とし、いずれか一方の文字列を入れ
換えて比較を行なう(操作■)、この場合も一致しない
ため、aの11文字目Sとbol 1文字目Nとの比較
に移行する(操作■)、そして、との■の操作にても一
致しないため更Kaの10文字目Eとbの12文字目E
との比較に移行する(操作■)。Next, the 10th character E of 1 is compared with the 11th character N of b. In this case, there is a mismatch, so the 11th character of a is 8. The 12th character E of b is also read and the character string E8 (1
side), NE (b@), and replace one of the character strings and compare (operation ■). In this case as well, there is no match, so in comparing the 11th character S of a and the 1st character N of bol, Shift (operation ■), and since they do not match even with the operation ■, the 10th character E of Sara Ka and the 12th character E of b
Move on to comparison with (operation ■).
この結果、比較器14にて一致が検出される・この例で
は、前回カクン・り15がクリアされてから上記一致が
検出されるまでの不一致検出回数は3回であり、第2図
に示されるように記憶部16の更に*続する領域にカウ
ンタI5のカウント出力「3」が記憶される。この場合
、上述したように■の操作によりaの10文字目とbの
12文字目との一致が検出されたため、次の比較はaの
11文字目Bとbの13文字目Sとの間で行なわれる。As a result, a match is detected in the comparator 14. In this example, the number of times the mismatch has been detected from the previous clearing of the KAKUN-RI 15 until the above match is detected is 3, as shown in FIG. The count output "3" of the counter I5 is stored in a further area of the storage unit 16 so that In this case, as mentioned above, a match between the 10th character of a and the 12th character of b was detected by the operation ■, so the next comparison is between the 11th character B of a and the 13th character S of b. It will be held in
この比較では明らかなように一致が検出され、記憶部1
6の更に後続する領域には嬉2図に示されるようにカウ
ンタ15のカウント出力「0」が記憶される。As is clear from this comparison, a match is detected, and storage unit 1
In the area further following 6, the count output "0" of the counter 15 is stored as shown in Figure 2.
次に1の12文字目(S)とbの14文字目(ブランク
)との比較が行なわれる。この場合、不一致となり、そ
の後の操作■に基づく比較も不一致となる。そして、操
作■に続く操作■によって第1保持部11から1文字先
読みされる13文字目(ブランク)とbの14文字目(
fランク)との比較が行なわれ、一致が検出される。し
たがりて、記憶部16の更に後続する領域には、第2図
に示されるようにカウンタ16のカウント出力「2」が
記憶される拳
判断部17は第1保持部11の内容(基準情報a)と第
2保持部120内容(比較情報b)との比較を終了する
と、記憶部16に順次記憶された各カウント出力の総和
をとる。このとき、判断部17はカウント出力「3」は
カウント出力「2」として処理するため、上述の例では
上記総和は「7」となる。この総和が小さいはど類似度
が高いととKなる。Next, the 12th character (S) of 1 is compared with the 14th character (blank) of b. In this case, there will be a mismatch, and the subsequent comparison based on operation (2) will also be a mismatch. Then, by the operation ■ following the operation ■, the 13th character (blank) is pre-read by one character from the first holding unit 11, and the 14th character b (
f rank) and a match is detected. Therefore, in the subsequent area of the storage unit 16, the count output “2” of the counter 16 is stored as shown in FIG. When the comparison between a) and the contents of the second holding unit 120 (comparison information b) is completed, the sum of each count output sequentially stored in the storage unit 16 is calculated. At this time, since the determination unit 17 processes the count output "3" as the count output "2", the total sum becomes "7" in the above example. If this sum is small, the degree of similarity is high, and it becomes K.
次にaとCの比較について説明する。この場合には第1
保持部11に1(rT部BUSIぽ5SJ)が、第2保
持部12にe (「Tnh BUSYJ)がそれぞれ保
持されることになる。明らかなように1文字目〜7文字
目については操作■〜■を経ずに一致が検出される・し
たがって記憶部16の連続する7つの領域にt;II3
図に示されるようにカウント出力「0」が記憶される。Next, a comparison between a and C will be explained. In this case, the first
1 (rT part BUSI Po5SJ) will be held in the holding section 11, and e ("Tnh BUSYJ) will be held in the second holding section 12.As is clear, operation ■ is required for the first to seventh characters. A match is detected without going through ~ ■ Therefore, t;II3 is stored in seven consecutive areas of the storage unit 16
As shown in the figure, count output "0" is stored.
これに対し、8文字目〜11文字目については操作■〜
■を経ても一致が検出されないため、該当文字に対する
一致のための操作が停止される(操作■)。On the other hand, for the 8th to 11th characters, operate ■~
Since no match is detected even after step (■), the operation for matching the corresponding character is stopped (operation -).
この場合のカウンタ15のカウント出力は「3」であり
、判断部17はこのカウント出力「3」に1を加算し、
カウント出力「4」として記憶部I6に記憶せしめる。In this case, the count output of the counter 15 is "3", and the judgment unit 17 adds 1 to this count output "3",
It is stored in the storage unit I6 as a count output "4".
したがって記憶部16の更に連続する4つの領域には蒙
3図に示されるようにカウント出力「4」が記憶される
。また、lot 2文字目(S)については13文字目
(ブランク)を先読みすることによってとの13文字目
(ブランク)とbの12文字目(ブランク)とで一致が
検出されるため、記憶部160更に後続する領域にね妃
3図に示されるようにカウント出力「2」が記憶される
。aとCの部分比較の結果、記憶部16に順次記憶され
た各カウント出力の総和は「18」となる、したがりて
Cにくらぺbの方がより畠に類似していることが容易に
判別できるー
以上の説明から明らかなように、本実施例によれば、基
準情報に対する比較情報の類似度を数値(小さいほど類
似度が高い)化することができる。したがって、基準情
報ごとに基準値を設定し、この基準値と前記カウント出
力の総和(1重似度)との大小を比較することによって
情報の認識を行なうことができる。これは前記実施例に
おけるテキスト文の処理に限らず、音声I&!i!識等
のノやターン認識にも好適する。Therefore, the count output "4" is stored in four consecutive areas of the storage unit 16 as shown in Figure 3. In addition, for the second character (S) of lot, by reading ahead the 13th character (blank), a match is detected between the 13th character (blank) of and the 12th character (blank) of b, so the memory 160 A count output "2" is stored in the subsequent area as shown in Figure 3. As a result of the partial comparison between a and C, the sum of the count outputs sequentially stored in the storage unit 16 is "18". Therefore, it is easy to see that C and Kurape b are more similar to Hatake. As is clear from the above description, according to this embodiment, the degree of similarity of comparison information to reference information can be expressed as a numerical value (the smaller the degree, the higher the degree of similarity). Therefore, information can be recognized by setting a reference value for each reference information and comparing the reference value with the sum of the count outputs (single similarity). This is not limited to the processing of text sentences in the above embodiment, but is also applicable to voice I&! i! It is also suitable for recognition of turns and turns.
なお、前記実施例では、カクンタ15のカウント出力を
そのまま類似度評価に用いていたが(カウント出力「3
」については例外)1重み指定部を設け、操作内容(■
〜■)Kよって更に差を持たせるようにしてもよい、−
!lた、操作■〜■は必ずしも前記実施例の順でなくて
もよく、また操作■〜■の幾つかを省略してもよい。In the above embodiment, the count output of Kakunta 15 was used as it is for similarity evaluation (the count output "3" was used as it is for similarity evaluation).
Exception) 1 weight specification section is provided for operation details (■
~ ■) You may make a further difference by K, -
! In addition, operations (1) to (2) do not necessarily have to be performed in the order of the above embodiments, and some of operations (1) to (2) may be omitted.
また、前記実施例では1文字(lllli成g1素)を
最小の単位として比較する場合について説明したが特定
区間を設け(2構成要素以上)、その区間ごとに比較す
るようにしてもよい。Further, in the above embodiment, the case where the comparison is performed using one character (1 element) as the minimum unit has been explained, but it is also possible to provide a specific section (two or more constituent elements) and compare each section.
以上詳述したように本発明の類似度検出装置によれば、
基準情報に対する比較情報の類似度が効率的に検出でき
る。As detailed above, according to the similarity detection device of the present invention,
The degree of similarity between comparison information and reference information can be detected efficiently.
第1図は本発明の類似度検出装置の一実施例を示すブロ
ック図、第2図および第3図は2種の比較情報に対する
比較結果を示すための記憶部の記憶内容の一例を示す図
である。
11・・・[1保持部、I!・・・嬉2保持部、IJ・
・・読み出し部、14・・・比較器、15・・・カクン
タ。
16・・・記憶部、17・・・判断部。
出願人代理人 弁理士 鈴 江 武 彦第1図FIG. 1 is a block diagram showing an embodiment of the similarity detection device of the present invention, and FIGS. 2 and 3 are diagrams showing an example of the storage contents of a storage unit for showing comparison results for two types of comparison information. It is. 11...[1 holding part, I! ... Joy 2 holding department, IJ・
...Reading unit, 14...Comparator, 15...Kakunta. 16... Storage section, 17... Judgment section. Applicant's agent Patent attorney Takehiko Suzue Figure 1
Claims (3)
保持される第2保持部と、これら第1および第2保持部
の指定された領域からそれぞれ上記基準情報および比較
情報の一部もしくは全部を構成要素単位で読み出し、必
要に応じて構成要素の列の入れ換えを行なって第1およ
びこの読み出し部から出力される上記第1および第2読
み出し出力の一致検出を行なう比較器と、この比較器の
不一致検出回数をカウントするカウンタと、このカウン
タのカウント出力が記憶される記憶部と、上記比較器の
検出出力および上記カウンタのカウント出力に応じて上
記読み出し部を制御するとともに、上記比較器で一致が
検出されるごとにその時点の上記カウンタのカウント出
力を上記記憶部K11次記憶せしめ、上記基準情報およ
び比較情報の比較が終了した際に上記記憶部の記憶内容
に基づいて類似度の評価を行なう判断部とを具備するこ
とを特徴とする類似度検出装置。(1) A first holding section where reference information is held, a second holding section where comparison information is held, and the above reference information and comparison information are collected from designated areas of these first and second holding sections, respectively. a comparator that reads out the first and second read outputs from the first and second readout sections by reading out the first and second readout outputs from the first readout section and the second readout outputs by interchanging the columns of the constituent elements as necessary; a counter for counting the number of times the comparator detects a mismatch; a storage section for storing the count output of the counter; Every time a match is detected by the comparator, the count output of the counter at that time is stored in the storage section K11, and when the comparison of the reference information and comparison information is completed, the similarity is stored based on the contents stored in the storage section. 1. A similarity detection device, comprising: a determination unit that evaluates the degree of similarity.
、上記カウンタのカウント出力を上記記憶部に記憶した
後に上記カウンタを初期化し、かつ上記読み出し部に対
して後続する構成要素を所定数だけ読み出す操作の指示
を与えるとともに、上記比較器で不一致が検出された場
合に、該当する構成要素を含む構成要素列の読み出し/
入れ換え操作、または該当する構成要素に後続する構成
要素を所定数だけ先読みする操作の指示を、上記カウン
タのカウント出力に応じて上記読み出し部に与えること
を特徴とする特許請求の範囲第1項記載の類似度検出装
置。(2) When a match is detected by the comparator, the judgment section initializes the counter after storing the count output of the counter in the storage section, and also initializes the subsequent component with respect to the reading section. In addition to giving an instruction to read a predetermined number of components, if the comparator detects a mismatch, read/read the component string containing the corresponding component.
Claim 1, characterized in that an instruction for a replacement operation or an operation for pre-reading a predetermined number of components following the corresponding component is given to the reading unit in accordance with the count output of the counter. similarity detection device.
記カウンタのカウント出力が所定値に達した場合に、こ
のカウンタのカウント出力に一定値を加えて上記記憶部
に記憶せしめるとともに、上記読み出し部に対して後続
する構成要素を所定数だけ読み出す操作の指示を与える
ことを特徴とする特許請求の範囲第2項記載の類似度検
出装置。(3) When the comparator detects a discrepancy and the count output of the counter reaches a predetermined value, the judgment section adds a constant value to the count output of the counter and stores it in the storage section; 3. The similarity detection device according to claim 2, wherein an instruction is given to the reading unit to read out a predetermined number of subsequent components.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56160518A JPS5860800A (en) | 1981-10-08 | 1981-10-08 | Similarity detector |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56160518A JPS5860800A (en) | 1981-10-08 | 1981-10-08 | Similarity detector |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS5860800A true JPS5860800A (en) | 1983-04-11 |
Family
ID=15716685
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56160518A Pending JPS5860800A (en) | 1981-10-08 | 1981-10-08 | Similarity detector |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5860800A (en) |
-
1981
- 1981-10-08 JP JP56160518A patent/JPS5860800A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4675809A (en) | Data processing system for floating point data having a variable length exponent part | |
| GB1512713A (en) | Data processing system | |
| CN115345168A (en) | Cascade Pooling for Natural Language Processing | |
| US3798421A (en) | Double field code reading system | |
| KR890006054A (en) | Image processing device | |
| US2991456A (en) | Directional data transfer apparatus | |
| JPS5848180A (en) | Character decision processing system | |
| US3222648A (en) | Data input device | |
| JP2730087B2 (en) | Register file address circuit | |
| JPS5958971A (en) | Coding circuit | |
| Rodriquez | A GRAPH MODEL FOR PARALLEL COMPUTATIONS. | |
| JPH03147036A (en) | variable length data processing device | |
| CN117290535B (en) | Memory device and data search method thereof | |
| US3244865A (en) | Asynchronous binary computer system using ternary components | |
| JPS63103393A (en) | Word recognizing device | |
| JPS6332673A (en) | Picture recognizing device | |
| JP3812779B2 (en) | Integrated performance evaluation method and system, and information recording medium | |
| JP2577452B2 (en) | Digital signal processor | |
| JPS62194535A (en) | Symbol processor | |
| SU1005189A1 (en) | Device for reading-out information from associative storage | |
| JPS6198472A (en) | Kana-Kanji conversion device | |
| Seiffertt | State Machines | |
| JPS59144948A (en) | Information search method | |
| JPH02138618A (en) | computing device | |
| JPS59160338U (en) | character input device |