JPH0554148B2 - - Google Patents
Info
- Publication number
- JPH0554148B2 JPH0554148B2 JP59148926A JP14892684A JPH0554148B2 JP H0554148 B2 JPH0554148 B2 JP H0554148B2 JP 59148926 A JP59148926 A JP 59148926A JP 14892684 A JP14892684 A JP 14892684A JP H0554148 B2 JPH0554148 B2 JP H0554148B2
- Authority
- JP
- Japan
- Prior art keywords
- symbol string
- symbol
- storage means
- temporary storage
- counter
- 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.)
- Expired - Lifetime
Links
- 238000004364 calculation method Methods 0.000 claims description 20
- 238000012546 transfer Methods 0.000 claims description 13
- 238000000034 method Methods 0.000 claims description 12
- 238000012795 verification Methods 0.000 description 26
- 230000015654 memory Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 6
- 239000000284 extract Substances 0.000 description 5
- 238000013519 translation Methods 0.000 description 5
- 230000014616 translation Effects 0.000 description 5
- 230000010365 information processing Effects 0.000 description 3
- 238000003909 pattern recognition Methods 0.000 description 3
- 230000000630 rising effect Effects 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 108010076504 Protein Sorting Signals Proteins 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Landscapes
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は情報処理システムの構成要素に係り、
より具体的には長大な記号列の中から特定の記号
列を抽出する記号列照合装置とその制御方式に関
するものである。[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to components of an information processing system,
More specifically, the present invention relates to a symbol string matching device that extracts a specific symbol string from a long symbol string and a control method thereof.
(従来技術とその問題点)
上記記号照合装置はパタン認識システムでの特
徴系列の抽出、ワープロで作成された文章の原文
フアイルからのキーワードの抽出、言語翻訳の支
援や通信文章の略文の解説、図形、イメージ、テ
キスト等による非構造データベースの構築に利用
され、知能化されるこれらの情報処理システムの
形に欠くことができないものである。(Prior art and its problems) The symbol matching device described above extracts feature sequences in a pattern recognition system, extracts keywords from the original text file of sentences created with a word processor, supports language translation, and explains abbreviations in correspondence. It is used to construct unstructured databases using graphics, images, texts, etc., and is indispensable to the form of intelligent information processing systems.
従来の記号列照合は汎用コンピユータのソフト
ウエアにたよつた逐次処理によるため、膨大な処
理時間を必要とし、小規模なのに限定されてい
た。また、単語毎に区切られて構造化された信号
列に照合対象が制限されていた。一例として、n
子の記号列からなるテキスト中にn子の記号列か
らなるパタンがどこに有るかを調べる場合には、
m(n−m+1)回の照合処理を必要とする。磁
気デイスクや光デイスク等に格納されたm=109
個の文字列のテキストから、n=103個の文字列
の文章を捜すには1012回の照合処理を必要とす
る。従つて、テキスト、イメージ、図形、音声等
の大容量な原情報による検策は非現実的であるた
め、予め原情報にキーワードを付加しての検策や
表形式に構造化されたデータの検策に限定されて
いた。また、記号列の構成要素の変動を許容する
柔軟な記号列照合に対して処理時間の長くなりす
ぎる欠点があつた。 Conventional symbol string matching requires sequential processing using software on a general-purpose computer, which requires an enormous amount of processing time and is limited to small scale operations. In addition, matching targets were limited to structured signal sequences separated by word. As an example, n
To find out where a pattern consisting of n child symbol strings is located in a text consisting of child symbol strings, use
This requires m(n-m+1) matching processes. m = 10 9 stored on a magnetic disk, optical disk, etc.
Searching for sentences with n = 10 3 character strings from text with 3 character strings requires 10 12 matching processes. Therefore, it is impractical to conduct tests using large amounts of original information such as text, images, figures, and sounds, so we recommend adding keywords to the original information in advance or using data structured in a tabular format. It was limited to inspection. Another disadvantage is that the processing time is too long for flexible symbol string matching that allows variations in the constituent elements of symbol strings.
さらに具体的に従来の記号列照合装置とその制
御方式の問題点について説明する。 More specifically, problems with the conventional symbol string matching device and its control system will be explained.
第6図は記号列照合の対象となるテキストを示
している。このテキストは報告書の始めの部分を
一例として示している。このようなテキストはワ
ープロのフアイルメモリに多数個格納される。そ
れ等のテキストの中から、必要なものをさがし出
す時に、要求内容を示す単語によつて直接に検索
できる事が求められる。 FIG. 6 shows the text that is the subject of symbol string matching. This text shows the beginning of the report as an example. A large number of such texts are stored in the file memory of the word processor. When searching for what you need from such text, it is required to be able to search directly using words that indicate the content of your request.
たとえば、第1図のテキストがmemory、
bubble等の記号列を含む論文であるかを知るた
めには、そのテキストの中でmemory、
memoriesやbubble等の記号列に整合する部分が
あるか否かを検索する必要がある。そのような記
号列のテキストとの比較照合は従来のコンピユー
タとソフトウエアで対応させると、非常に長い時
間を要する。 For example, the text in Figure 1 is memory,
In order to know whether a paper contains symbol strings such as bubbles, memory, etc.
It is necessary to search to see if there is a matching part in symbol strings such as memories and bubbles. Comparing such symbol strings with text would take a very long time if conventional computers and software were used.
一般のA4サイズの英文はワード間のスペース
を含めると、約3000文字の長さになる。一方、比
較照合を行なう記号列の長さはmemoryの場合も
deviceの場合も6文字である。6文字と3000文字
の記号列間の照合は一般にその積に等しいオーダ
の回数に及ぶ文字の比較を必要とする。マイクロ
プロセツサでの文字比較時間が1μsecであつたと
しても、各記号列の検策に18msecの時間がかか
る。 A typical A4-sized piece of English text is approximately 3,000 characters long, including spaces between words. On the other hand, the length of the symbol string used for comparison and matching is also
Device also has 6 characters. Matching between 6-character and 3000-character strings generally requires character comparisons a number of times on the order of the product. Even if the character comparison time in the microprocessor is 1 μsec, it takes 18 msec to check each symbol string.
現実に検索の対象となるテキストの文字数は
109個に及び、照合を行なう記号列の文字数も100
を越すこともありうる。照合される記号列の数も
1個だけでなく、数10個に及ぶ。その場合の照合
時間は数100時間に及ぶ。故に、このような照合
は現実的に不可能であり、実際は人手により予め
キーワードを抽出しておき、抽出されたキーワー
ドに対する照合に限定されていた。 The actual number of characters in the text to be searched is
10 9 characters, and the number of characters in the symbol string to be matched is 100.
It is possible to exceed. The number of symbol strings to be matched is not just one, but dozens. In that case, the verification time would be several hundred hours. Therefore, such matching is practically impossible, and in reality, keywords are extracted manually in advance and matching is limited to the extracted keywords.
また、一部の記号に欠けや誤りのある記号列や
余分な記号が付加された記号列の照合が困難であ
る。例えば、文字列“MEMORY”に関し、そ
の中の文字“O”が他の文字“X”に置換つた文
字列“MEMXRY”や、文字“O”が欠けた
“MEMRY”や余分な文字“X”が付加された
“MEMXORY”が入力された場合に、照合文字
列“MEMORY”と類似していることを出力で
きることが記号列照合に望まれる。しかし、従来
の記号列照合装置や制御方式では一部の記号に誤
りに関しては照合記号列と重ね合わせて比較する
ことにより類似性を調べることができるが、一部
の記号の欠けや余分な文字の付加に対しては対処
できなかつた。 Furthermore, it is difficult to match symbol strings in which some symbols are missing or incorrect, or symbol strings to which extra symbols are added. For example, regarding the character string "MEMORY", there may be a character string "MEMXRY" in which the character "O" is replaced with another character "X", "MEMRY" without the character "O", or an extra character "X". It is desirable for symbol string matching to be able to output that it is similar to the matching string "MEMORY" when "MEMXORY" with "MEMXORY" added is input. However, with conventional symbol string matching devices and control methods, if there are errors in some symbols, it is possible to check for similarity by superimposing them on the matching symbol string and comparing them, but if some symbols are missing or extra characters It was not possible to deal with the addition of
(発明の目的)
本発明の目的は上記従来の記号列照合装置やそ
の方式の欠点を容易に解決し、テキスト、イメー
ジ、図形等の非構造の記号列の中から任意の記号
列を短時間にして、柔軟な抽出が可能な記号列照
合装置とその制御方式を提供することにある。(Objective of the Invention) The object of the present invention is to easily solve the drawbacks of the conventional symbol string matching devices and methods described above, and to quickly convert arbitrary symbol strings from unstructured symbol strings such as text, images, figures, etc. The object of the present invention is to provide a symbol string matching device capable of flexible extraction and a control method thereof.
また、一部の記号の欠けや誤り、あるいは余分
な記号が付加された記号列についても照合可能な
低価格な記号列照合装置を提供することにある。 Another object of the present invention is to provide a low-cost symbol string matching device that is capable of matching symbol strings with missing or incorrect symbols, or with extra symbols added.
(発明の構成)
したがつて、本発明によれば以下の記号列照合
装置とその制御方式が得られる。すなわち、記号
コードをアドレス入力とし、照合記号列を記憶す
る記号列記憶手段と、この各出力線につながる第
1の演算手段と、複数の演算手段間を相互に結合
する第1の一時記憶手段と、特定の第1の一時記
憶手段の出力につながる第2の一時記憶手段と、
第2の一時記憶手段につながる第2の演算手段と
を含む記号列照合装置。(Structure of the Invention) Therefore, according to the present invention, the following symbol string matching device and its control method can be obtained. That is, a symbol string storage means that takes a symbol code as an address input and stores a collation symbol string, a first calculation means connected to each of the output lines, and a first temporary storage means that interconnects the plurality of calculation means. and a second temporary storage means connected to the output of the specific first temporary storage means;
a second calculation means connected to a second temporary storage means.
記号コードをアドレス入力とし、照合記号列を
記憶する記号列記憶手段と、この各出力線につな
がる第1の演算手段と、複数の演算手段間を相互
に結合する第1の一時記憶手段と、特定の第1の
一時記憶手段の出力につながる第2の一時記憶手
段と、第2の一時記憶手段につながる第2の演算
手段と、外部から与えられる許容類似度を記憶す
るレジスタと、このレジスタの内容と第2の演算
手段の出力とを比較し、照合結果を出力するコン
パレータとを含む記号列照合装置、とさらに記号
で指定された番地のみ値が異なるように記号列内
の各記号を記号列記憶手段の各列に記憶させ、記
号列の照合時に記号を前記記号列記憶手段のデコ
ーダに入力し、前記記号列記憶手段の入力された
記号で示される番地の複数列の内容を並列に読み
取り、前記号列記憶手段の各列に読み取り情報に
基づき連結された各段のカウンタの内容の増加及
び次段のカウンタへの転送を制御し、最終段のカ
ウンタの互いに1時刻異なる2つ内容とを加算す
ることで前記記号列記憶手段の内容と逐次入力さ
れた記号列の類似度を求めることを特徴とする記
号列照合装置の制御方式である。 a symbol string storage means that takes a symbol code as an address input and stores a collation symbol string; a first calculation means connected to each of the output lines; a first temporary storage means that interconnects the plurality of calculation means; a second temporary storage means connected to the output of a specific first temporary storage means, a second calculation means connected to the second temporary storage means, a register for storing an externally given allowable similarity, and this register. a symbol string matching device that includes a comparator that compares the contents of the symbol with the output of the second calculation means and outputs a matching result; A symbol is stored in each column of the symbol string storage means, and when collating the symbol string, the symbol is input to the decoder of the symbol string storage means, and the contents of multiple columns of the address indicated by the input symbol of the symbol string storage means are parallelized. control the increment of the contents of the counters in each stage connected to each column of the previous symbol string storage means based on the read information and the transfer to the next stage counter, and control the increment of the contents of the counters in each stage connected to each column of the previous symbol string storage means and the transfer to the counters in the next stage, and the two counters in the last stage differ by one time from each other. This is a control method for a symbol string matching device characterized in that the degree of similarity between the contents of the symbol string storage means and the sequentially input symbol strings is determined by adding the contents.
(実施例)
以下図面を用いて本発明の更に詳細な説明を行
なう。(Example) The present invention will be explained in more detail below using the drawings.
第1図は本発明の一実施例の説明図である。こ
の記号列照合装置は第6図に示したような長大な
記号列となるテキストあるいはイメージ、画像、
音声等をコード化し、記号列入力端子111から
逐次入力し、その中に登録済みの照合記号列と類
似する記号列がどこに含まれるかを外部に伝達す
るものであり、記号に関連づけたビツトパタンで
記号列を記憶する記号列記憶手段110、とその
読み取り記号112により内容の変化が制御され
る複数段の複数ビツトのカウンタ120と、最下
段のカウンタ120の出力につながる第2の一時
記憶手段としてのレジスタ130と、最下段のカ
ウンタ120の内容N6とレジスタ130の内容
とを加算する第2の演算手段である加算器140
とから構成される。カウンタ120は論理演算手
段123とそれからの演算結果を記憶する一時記
憶手段124とを含んでいる。ここでは論理演算
手段123と一時記憶手段124とをカウンタ1
20で代表させて説明を行なう。 FIG. 1 is an explanatory diagram of an embodiment of the present invention. This symbol string matching device can process texts, images, images, etc. that become long symbol strings as shown in Figure 6.
It encodes speech, etc., inputs it sequentially from the symbol string input terminal 111, and transmits to the outside where a symbol string similar to a registered verification symbol string is included. A symbol string storage means 110 for storing symbol strings, a multi-stage multi-bit counter 120 whose contents are changed by its reading symbol 112, and a second temporary storage means connected to the output of the counter 120 at the lowest stage. an adder 140 which is a second calculation means that adds the contents N6 of the lowest counter 120 and the contents of the register 130;
It consists of The counter 120 includes a logic operation means 123 and a temporary storage means 124 for storing the result of the operation. Here, the logical operation means 123 and the temporary storage means 124 are used as the counter 1.
The explanation will be given using 20 as a representative.
照合記号列の各記号は記号列記憶手段110の
各ビツトに記号に関連づけたビツトパタンで格納
される。図の例では6ビツトの記号列記憶手段1
10に“MEMORY”の6個の記号からなる照
合記号列を格納している。すなわち、記号列記憶
手段110の第1から第6ビツト目の各々記号
“M”“N”、“E”、“M”、“O”、“R”、“Y
”で指
定されるアドレスにのみ“1”が格納され、他は
“0”が格納される。記号列記憶手段110のア
ドレスは記号の種類に対応し、その第1から第6
ビツト目の読取り信号112は、各々記号“M”、
“E”、“M”“O”、“R”、“Y”が入力されたと
き
のみ“1”となる。 Each symbol of the verification symbol string is stored in each bit of the symbol string storage means 110 in a bit pattern associated with the symbol. In the example shown in the figure, 6-bit symbol string storage means 1
10 stores a collation symbol string consisting of six symbols of "MEMORY". That is, the symbols "M", "N", "E", "M", "O", "R", and "Y" are respectively stored in the first to sixth bits of the symbol string storage means 110.
"1" is stored only in the address specified by ", and "0" is stored in the other addresses. The addresses of the symbol string storage means 110 correspond to the types of symbols, and the first to sixth
The bit-th read signal 112 has symbols “M” and “M”, respectively.
It becomes "1" only when "E", "M", "O", "R", and "Y" are input.
各段のカウンタ120はクロツク信号121に
同期して動作し、その各段の出力は次段のデータ
入力に接続されている。初段のカウンタ120の
データ入力には零が供給され、最終段のカウンタ
120の出力N6はレジスタ130に印加され
る。クロツク信号121の立上り時に転送信号1
22が印加されていると、各段のカウンタ120
の内容は図において上段から下段方向に一段づつ
転送される。また転送信号122が印加されてお
らず、記号列記憶手段110から“1”の読取り
信号112が供給されると、カウンタ120の内
容は1だけ増加(以後、インクリメントと称す)
し、“0”の読取り信号の場合には内容が保たれ
る、このように動作させるカウンタ120とし
て、市販されている集積回路、例えばテキサス・
インストルメント社製のSN74LS161Nを利用で
きる。 The counter 120 in each stage operates in synchronization with the clock signal 121, and the output of each stage is connected to the data input of the next stage. Zero is supplied to the data input of the first stage counter 120, and the output N6 of the last stage counter 120 is applied to the register 130. Transfer signal 1 at the rising edge of clock signal 121
22 is applied, the counter 120 of each stage
The contents of are transferred step by step from the top to the bottom in the figure. Further, when the transfer signal 122 is not applied and a read signal 112 of "1" is supplied from the symbol string storage means 110, the content of the counter 120 increases by 1 (hereinafter referred to as increment).
However, in the case of a read signal of "0", the contents are retained.A counter 120 operating in this manner may be implemented using a commercially available integrated circuit, such as a Texas-based integrated circuit.
SN74LS161N manufactured by Instrument Corporation can be used.
第2図はクロツク信号121と転送信号122
のタイミング図を示す。照合対象となる記号列は
周期T毎に1個の記号が記号列入力端子111か
ら入力され、その間に前後2発のパルス信号がク
ロツク信号121として印加される。転送信号1
22はクロツク信号121の前発のパルス信号の
立上り時の含むパルス信号として印加される。従
つて、1個の記号が入力されるごとに各段のカウ
ンタ120の転送動作とインクリメント(但し、
読取り信号112が“1”の場合)が交互に行な
われる。レジスタ130は転送信号122により
最終段のカウンタ120の内容を取込む。 Figure 2 shows a clock signal 121 and a transfer signal 122.
The timing diagram is shown below. As for the symbol string to be compared, one symbol is input from the symbol string input terminal 111 every cycle T, and two pulse signals, one before and one after, are applied as a clock signal 121 during that period. Transfer signal 1
22 is applied as a pulse signal included at the rising edge of the preceding pulse signal of the clock signal 121. Therefore, each time one symbol is input, the counter 120 of each stage is transferred and incremented (however,
(when the read signal 112 is "1") are performed alternately. The register 130 takes in the contents of the final stage counter 120 in response to the transfer signal 122.
第3図は第1図の記号列照合装置の動作説明図
である。 FIG. 3 is an explanatory diagram of the operation of the symbol string matching device shown in FIG. 1.
第1図に示したように記号列記憶手段110に
“MEMORY”の照合記号列が格納されている状
態で、照合記号列と同じ記号列“MEMORY”
が記号列入力端子111から入力された場合の動
作を同図aで説明する。また照合記号列内の一部
の記号“O”が誤つた場合、欠けた場合及び余分
な記号“X”が付加された場合について、それぞ
れ同図b,c,dを用いて説明する。 As shown in FIG. 1, when the verification symbol string "MEMORY" is stored in the symbol string storage means 110, the symbol string "MEMORY" which is the same as the verification symbol string is
The operation when is input from the symbol string input terminal 111 will be explained with reference to FIG. Further, cases in which some symbols "O" in the collation symbol string are erroneous, missing, and extra symbols "X" are added will be explained using FIGS. b, c, and d, respectively.
図において、第1行は記号列入力端子111か
ら入力された記号列、第2行は記号の入力毎に仮
に定めた時刻T0〜T7を示し、第3行以下はクロ
ツク信号121の後発のパルス信号が印加された
後のカウンタ120の内容を上段よりN1,N
2,N3,N4,N5,N6で代表させ、その値
を示す。最後の行は加算器140の出力Nの値を
示す。 In the figure, the first row shows the symbol string input from the symbol string input terminal 111, the second row shows the times T 0 to T 7 tentatively determined for each symbol input, and the third and subsequent rows show the symbol string input from the symbol string input terminal 111. The contents of the counter 120 after the pulse signal is applied are N1, N from the top.
2, N3, N4, N5, and N6, and their values are shown. The last row shows the value of the output N of adder 140.
まず、照合動作前に各段のカウンタ120の内
容N1からN6を零に設定しておく。これは図示
していないが、カウンタ120のクリア端子にパ
ルス信号を印加することで容易に行なえる。 First, before the verification operation, the contents N1 to N6 of the counters 120 in each stage are set to zero. Although not shown, this can be easily done by applying a pulse signal to the clear terminal of the counter 120.
第3図aを参照して、照合記号列と同じ記号列
“MEMORY”が記号列入力端子111から入力
された場合の動作について説明する。まず、先頭
の記号“M”が入力されたときに、クロツク信号
121の前発のパルス信号の立上り時に転送信号
122が印加されているので、各段のカウンタ1
20の内容は上段から下段方向に一斉に次段に転
送される。この時点での全段のカウンタ120の
内容N1からN6は零になつている。また、記号
列記憶手段110の第1ビツト目と第3ビツト目
の読取り信号112のみ“1”となる。したがつ
て、クロツク信号121の後発のパルス信号が印
加されると、第1段目と第3段目のカウンタ12
0の内容N1とN3のみインクリメントされ0か
ら1となる。 Referring to FIG. 3a, the operation when the same symbol string "MEMORY" as the collation symbol string is input from the symbol string input terminal 111 will be described. First, when the first symbol "M" is input, the transfer signal 122 is applied at the rising edge of the previous pulse signal of the clock signal 121, so the counter 1 of each stage is
The contents of 20 are transferred all at once from the upper stage to the lower stage. At this point, the contents N1 to N6 of the counters 120 in all stages are zero. Further, only the first and third bit read signals 112 of the symbol string storage means 110 become "1". Therefore, when the subsequent pulse signal of the clock signal 121 is applied, the first and third stage counters 12
Only the contents N1 and N3 of 0 are incremented from 0 to 1.
これで照合対象となる記号列の先頭記号“M”
に対する照合処理がなされる。 Now the first symbol “M” of the symbol string to be matched
Verification processing is performed on the
同様にして次の記号“E”が入力されると、第
2段目のカウンタの内容N2のみインクリメント
され、1から2となる。このようにして、全ての
記号列に対する照合処理を行なう。最終段のカウ
ンタ120の各時刻における内容(この列ではN
6)は、その時刻以前に入力された記号列の各記
号とが一致する記号の個数を示すことになる。第
3図aでは時刻T6のN6の値の6は、その時刻
以前すなわちT1〜T6に入力された記号列に一致
していることを示す。 Similarly, when the next symbol "E" is input, only the content N2 of the second stage counter is incremented from 1 to 2. In this way, matching processing is performed for all symbol strings. The contents of the final stage counter 120 at each time (in this column, N
6) indicates the number of symbols that match each symbol in the symbol string input before that time. In FIG. 3a, the value of N6 of 6 at time T 6 indicates that the symbol string is matched with the symbol string input before that time, that is, from T 1 to T 6 .
従つて、照合記号列の記号数をMとすると(図
の例ではM=6)、同一の記号列が入力された場
合にN6の値はMとなり、1個の記号のみが異な
るならばM−1となる。すなわち、最終的段のカ
ウンタ120の内容は入力された記号列と照合記
号列との類似度を示す。加算器120は最終段の
カウンタ120の内容と1時刻前のその内容を記
憶するレジスタ130の内容とを加算し、類似度
出力125として外部に伝達する。 Therefore, if the number of symbols in the verification symbol string is M (in the example shown in the figure, M = 6), the value of N6 will be M if the same symbol string is input, and M if only one symbol differs. -1. That is, the contents of the counter 120 at the final stage indicate the degree of similarity between the input symbol string and the verification symbol string. The adder 120 adds the contents of the final stage counter 120 and the contents of the register 130 that stores the contents one time before, and transmits the result to the outside as a similarity output 125.
第3図bは一部の記号“O”が他の記号“X”
に誤つている記号例が入力された場合の各段のカ
ウンタ120の内容を示す。先頭から3個の記号
“M”、“E”、“M”の入力に対する各段のカウン
タ120は、第3図aと同様に動作する。しか
し、次の4番目の記号“X”が入力されると、第
4段目のカウンタ120の内容N4は、記号列記
憶手段110の第4ビツト目の読取り信号112
が“O”であるためインクリメントされず、同じ
値3を保つ。従つて、6個の記号からなる記号列
“MEMXRY”が入力された後のN6の値は、第
3図aの場合より1だけ小さい5となる。すなわ
ち、照合記号列と1個の記号のみが異なる記号列
が入力されたと認識できる。 In Figure 3b, some symbols “O” are replaced by other symbols “X”.
The contents of the counter 120 in each stage are shown when an incorrect symbol example is input. The counters 120 in each stage for inputting the first three symbols "M", "E", and "M" operate in the same manner as in FIG. 3a. However, when the next fourth symbol "X" is input, the content N4 of the fourth stage counter 120 is changed to the fourth bit read signal 112 of the symbol string storage means 110.
Since is "O", it is not incremented and maintains the same value of 3. Therefore, after the symbol string "MEMXRY" consisting of six symbols is input, the value of N6 is 5, which is smaller by 1 than in the case of FIG. 3a. That is, it can be recognized that a symbol string that differs from the verification symbol string in only one symbol has been input.
第3図cは照合記号列内の一部の記号“O”
が、欠けた記号列“MEMRYX”が入力された
場合の各段のカウンタの内容を示す。先頭から3
個の記号の入力に対しては第3図aと同様な動作
をする。しかし、以後の記号列“RYX”は照合
記号と1記号づれているため、時刻T4,T5,T6
におけるN4,N5,N6の値は変化せず、3を
保つ。また、記号“R”が入力される時刻T4に
N5はインクリメントされ、0から1となる。次
の記号“Y”が入力されたときにN6はインクリ
メントされ、1から2となる。この結果、最終段
のカウンタ120の内容N6の最大値は3とな
り、N6を監視しているだけでは入力された記号
列が照合記号列から1個の記号を抜いた記号列で
あることを認識できない。しかし、加算器140
の出力Nは5となるので時刻T1からT6までに入
力された記号列内に照合記号列と整合する記号が
5個含まれていることを認識できる。従つて、一
部の記号が欠けた記号列についても加算器140
の出力Nを監視することにより、照合が可能とな
る。加算器140の出力Nは類似度出力125と
して外部に伝達される。 Figure 3c shows some symbols “O” in the collation symbol string.
shows the contents of the counters in each stage when the missing symbol string "MEMRYX" is input. 3 from the beginning
The same operation as in FIG. 3a is performed for inputting symbols. However, since the subsequent symbol string “RYX” is one symbol apart from the collation symbol, the times T 4 , T 5 , T 6
The values of N4, N5, and N6 do not change and remain 3. Also, at time T4 when the symbol “R” is input,
N5 is incremented from 0 to 1. When the next symbol "Y" is input, N6 is incremented from 1 to 2. As a result, the maximum value of the content N6 of the final stage counter 120 is 3, and by simply monitoring N6, it is recognized that the input symbol string is a symbol string obtained by subtracting one symbol from the verification symbol string. Can not. However, adder 140
Since the output N is 5, it can be recognized that the symbol string input from time T 1 to T 6 contains five symbols that match the verification symbol string. Therefore, even for a symbol string in which some symbols are missing, the adder 140
Verification is possible by monitoring the output N of . The output N of the adder 140 is transmitted to the outside as a similarity output 125.
第3図dは余分な記号“X”を含む記号列
“MEMXORY”が入力された場合の各段のカウ
ンタ120の内容を示す。先頭から3個までの記
号の入力に対しては第3図aと同様な動作をす
る。しかし、4番目以後の記号列には余分な記号
“X”が含まれているので、照合記号列と1記号
づれている。このため、時刻T4,T5,T6の各々
におけるN4,N5,N6の値はインクリメントされ
ず、3を保つ。しかし、1時刻ずらした時刻T5,
T6,T7の各々におけるN4,N5,N6の値はそれ
ぞインクリメントされ、0から3となる。したが
つて、N6を監視しているだけでは入力された記
号列が照合記号列に1つの余分な記号を付加した
記号列であることを認識できない。しかし、加算
器140の出力Nの値は時刻T7で6となるので
入力された記号列が高い類似性を持つことを認識
できる。 FIG. 3d shows the contents of the counter 120 in each stage when a symbol string "MEMXORY" including an extra symbol "X" is input. The same operation as in FIG. 3a is performed for inputting the first three symbols. However, since the fourth and subsequent symbol strings contain an extra symbol "X", they are offset by one symbol from the collation symbol string. Therefore, the values of N 4 , N 5 , and N 6 at each of times T 4 , T 5 , and T 6 are not incremented and remain at 3. However, the time T 5 shifted by one time,
The values of N 4 , N 5 , and N 6 in each of T 6 and T 7 are incremented from 0 to 3. Therefore, by simply monitoring N6 , it is not possible to recognize that the input symbol string is a symbol string obtained by adding one extra symbol to the verification symbol string. However, since the value of the output N of the adder 140 becomes 6 at time T7 , it can be recognized that the input symbol strings have a high degree of similarity.
一般に照合記号列の記号列長をnとすると、時
刻Tiにおける最終段のカウンタ120の内容Nn
は、時刻Ti−n+1から時刻Tiまでに入力され
た記号列が照合記号列と整合する記号の個数を示
す。Ti時刻における加算器140の出力Nすな
わち類似度出力125は、最終段のカウンタ12
0の時刻Tiとその1時刻前の内容の和を示す。
すなわち、類似度出力125は入力した記号列及
びそれを1記号分ずらした記号列が照合記号列と
整合する記号の個数の和を示す。従つて、一部の
記号が欠けた記号列および余分な記号が付加され
た記号列についても、類似度出力125を監視す
ることで照合できる。 Generally, if the symbol string length of the verification symbol string is n, the content Nn of the last stage counter 120 at time Ti
indicates the number of symbols in which the symbol string input from time Ti-n+1 to time Ti matches the verification symbol string. The output N of the adder 140 at time Ti, that is, the similarity output 125, is the output of the final stage counter 12.
It shows the sum of the contents at time Ti of 0 and one time before.
That is, the similarity output 125 indicates the sum of the number of symbols in which the input symbol string and the symbol string obtained by shifting the input symbol string by one symbol match the matching symbol string. Therefore, symbol strings with some symbols missing and symbol strings with extra symbols added can also be compared by monitoring the similarity output 125.
以上述べたように第1図に示した記号列照合装
置は照合記号列と完全に一致する記号列だけでな
く、その中の任意の個数の記号が誤つている記号
列も抽出でき、柔軟性の高い記号列照合装置とい
える。 As mentioned above, the symbol string matching device shown in Figure 1 can extract not only symbol strings that completely match the verification symbol string, but also symbol strings in which any number of symbols are incorrect, making it flexible. It can be said that it is a high quality symbol string matching device.
一般に記号列の総合に際しては、照合記号列と
一致した記号の個数よりも異なる記号の個数が出
力される方が取扱いやすい。第1図に示したよう
に一致する記号の個数を計数すると、カウンタ1
20は照合記号列の記号数をMとすると0からM
まで計数できるlog2(M+1)のビツト数が必要
となる。しかし、異なる記号の個数を計数するな
らば、許容できる不一致の割合を5%とすると、
カウンタ120はMの5%程度を計数できれば良
いため、そのビツト数を削減できる。 Generally, when integrating symbol strings, it is easier to output the number of symbols that are different from the matching symbol string than the number of symbols that match the matching symbol string. When counting the number of matching symbols as shown in Figure 1, the counter 1
20 is from 0 to M, where M is the number of symbols in the matching symbol string.
The number of bits that can be counted up to log 2 (M+1) is required. However, if we count the number of different symbols, assuming that the allowable discrepancy rate is 5%,
Since the counter 120 only needs to be able to count about 5% of M, the number of bits can be reduced.
これを可能にする記号列照合装置は第1図に示
した記号列照合装置を少し変更することで実現で
きる。 A symbol string matching device that makes this possible can be realized by slightly modifying the symbol string matching device shown in FIG.
例えば、記号列記憶手段110の読取り信号1
12が“O”であるときにカウンタ120をイン
クリメントあるいはデイクリメント(値を1だけ
減少)させる。または、記号列記憶手段110の
内容を反転させ、読取り信号112が“1”であ
るときに、カウンタ120の増減を行なつてもよ
い。この場合、カウンタ120の初期値としてイ
ンクリメントを行なわせる場合には、零、デイク
リメントを行なわせる場合にはその計数可能な最
大値以上のインクリメント動作あるいはデイクリ
メント動作を禁止する必要がある。これは、カウ
ンタ120の全てのビツトを入力とするナンドゲ
ート回路で全ビツトが1、あるいはノアゲート回
路で零を検出し、その検出出力で記号列記憶手段
110の読取り信号212をマスクすることで容
易に実現できる。但し、カウンタ120としてそ
の最大値あるいは最小値を検出する回路を内蔵し
ているカウンタ、を利用する場合には、ナンドゲ
ート回路あるいはノアゲート回路が不要となる。 For example, read signal 1 of symbol string storage means 110
12 is "O", the counter 120 is incremented or decremented (the value is decreased by 1). Alternatively, the contents of the symbol string storage means 110 may be inverted and the counter 120 may be increased or decreased when the read signal 112 is "1". In this case, if the initial value of the counter 120 is to be incremented by zero, if it is to be decremented, it is necessary to prohibit the increment or decrement operation beyond the maximum countable value. This can be easily done by detecting that all bits of the counter 120 are 1 using a NAND gate circuit, or that all bits are 0 using a NOR gate circuit, and masking the read signal 212 of the symbol string storage means 110 with the detected output. realizable. However, if a counter having a built-in circuit for detecting the maximum value or minimum value is used as the counter 120, a NAND gate circuit or a NOR gate circuit is not necessary.
また、カウンタ120を並列入力可能なシフト
レジスタに置換えることも可能である。この場
合、転送信号122で次段のシフトレジスタへの
並列転送が制御され、読取り信号112により内
容の左シフトあるいは右シフトが制御される。初
段のシフトレジスタのデータ入力には最上位ビツ
トあるいは最下位ビツトのみ異なるデータを供給
する。このようなシフトレジスタにはテキサス・
インストルメント社から販売されている74LS299
の集積回路を利用できる。カウンタ120の代り
にシフトレジスタを用いると、照合記号列と異な
る記号数を計数した場合、シフトレジスタのビツ
ト数以上の異なる記号数が入力されると、シフト
レジスタの内容は自動的に零に設定されるので、
制御が容易になる。 Further, it is also possible to replace the counter 120 with a shift register capable of parallel input. In this case, the transfer signal 122 controls the parallel transfer to the next stage shift register, and the read signal 112 controls the left shift or right shift of the contents. Data that differs only in the most significant bit or the least significant bit is supplied to the data input of the first stage shift register. Such a shift register has a Texas
74LS299 sold by Instrument Company
integrated circuits are available. If a shift register is used instead of the counter 120, when the number of symbols different from the collation symbol string is counted, the contents of the shift register will be automatically set to zero if the number of symbols different from the number of bits in the shift register is input. Because it is done,
Easier to control.
さらに、カウンタ120はシフトレジスタだけ
でなく他の論理演算手段に置換えることも容易に
可能である。 Furthermore, the counter 120 can be easily replaced not only with a shift register but also with other logical operation means.
また、以上の説明では1個の記号の欠けや付加
を許容できる記号列照合装置について説明した
が、複数個の記号の欠けや付加を許容できるよう
に拡張できる。これは、レジスタ130として直
列に接続した複数段のレジスタを使用し、加算器
140が各レジスタの内容を加算することで可能
となる。 Further, in the above description, a symbol string matching device that can tolerate the omission or addition of one symbol has been described, but it can be expanded to allow the omission or addition of a plurality of symbols. This is possible by using a plurality of stages of registers connected in series as the register 130, and by having the adder 140 add the contents of each register.
第4図も本発明による実施例の説明図である。
この記号列照合装置は照合対象となる記号列の中
から照合記号列と高り類似度を示す記号列のみ抽
出するものであり、第1図の記号列照合装置40
0にコンパレータ410とレベル設定レジスタ4
20を追加している。 FIG. 4 is also an explanatory diagram of an embodiment according to the present invention.
This symbol string matching device extracts only the symbol strings that have a high degree of similarity to the matching symbol string from among the symbol strings to be matched, and is similar to the symbol string matching device 40 in FIG.
0 to comparator 410 and level setting register 4
20 have been added.
照合動作開始前にレベル設定レジスタ420に
は抽出しようとする記号列の許容類似度が設定さ
れる。これは、許容類似度を示すレベル信号42
1とレジスタセツト信号422をレベル設定レジ
スタ420に供給することにより行なわれる。 Before starting the matching operation, the allowable similarity of the symbol string to be extracted is set in the level setting register 420. This is a level signal 42 indicating the allowed similarity.
1 and a register set signal 422 to the level setting register 420.
コンパレータ410は類似度出力125とレベ
ル設定レジスタ420の内容とを各々入力A、B
に入力し、両者を比較する。そして前者が大きい
か等しいかを示すAZB出力を照合出力信号41
1として外部に伝達する。記号列記号記憶手段1
10に格納されている照合記号列の記号数Mに対
し、レベル設定レジスタ420に(M−1)を設
定すると、記号列入力端子111から入力された
記号列と照合記号列とが(M−1)個以上の記号
が整合している場合に、コンパレータ410は照
合出力411を発生する。従つて、照合出力41
1を監視することで照合記号列と高り類似度を示
す記号列のみ抽出できる。 The comparator 410 receives the similarity output 125 and the contents of the level setting register 420 as inputs A and B, respectively.
and compare the two. Then, the AZB output indicating whether the former is greater or equal is compared with the output signal 41
It is transmitted to the outside as 1. Symbol string symbol storage means 1
If (M-1) is set in the level setting register 420 for the number M of symbols in the verification symbol string stored in 10, the symbol string input from the symbol string input terminal 111 and the verification symbol string become (M-1). 1) Comparator 410 produces a match output 411 if more than one symbol matches. Therefore, the verification output 41
By monitoring 1, only symbol strings showing high similarity to the matching symbol string can be extracted.
第5図も本発明による実施例の説明図である。 FIG. 5 is also an explanatory diagram of an embodiment according to the present invention.
この記号列照合装置は複数の照合記号列を並列
に照合し、整合しれ照合記号列を示す整合コード
を出力するものであり、第4図に示した記号列照
合装置に対応する記号列照合ユニツト500を複
数個含む記号列照合部510と、各記号列照合ユ
ニツト500から出力される各照合出力411を
入力するエンコーダ520と、各記号列照合ユニ
ツト500にレジスタセツト信号422を供給す
るデコーダ530とから構成される。 This symbol string matching device collates multiple matching symbol strings in parallel and outputs matching codes indicating matching matching symbol strings.The symbol string matching unit corresponding to the symbol string matching device shown in Fig. 4 500, an encoder 520 that inputs each verification output 411 output from each symbol string verification unit 500, and a decoder 530 that supplies a register set signal 422 to each symbol string verification unit 500. It consists of
記号列入力端子111から入力される記号コー
ド、クロツク信号121、転送信号122、許容
類似度を示すレベル信号421は各記号列照合ユ
ニツト500に共通に供給される。 The symbol code input from the symbol string input terminal 111, the clock signal 121, the transfer signal 122, and the level signal 421 indicating the allowable similarity are commonly supplied to each symbol string matching unit 500.
記号列照合ユニツト500への許容類似度の設
定は、ユニツト選択信号531と共に基本レジス
タセツト信号532をデコーダ530に供給し、
レベル信号421を記号列照合部510に供給す
ることにより行なわれる。このとき、デコーダ5
30は許容類似度を設定しようとする記号列照合
ユニツト500にのみレジスタセツト信号422
を印加する。 To set the allowable similarity to the symbol string matching unit 500, supply the basic register set signal 532 together with the unit selection signal 531 to the decoder 530,
This is done by supplying the level signal 421 to the symbol string matching section 510. At this time, decoder 5
30 is a register set signal 422 that is sent only to the symbol string matching unit 500 for which the allowable similarity is to be set.
Apply.
記号列入力端子111から照合対称となる記号
列を構成する記号コードを逐次入力すると、各記
号列照合ユニツト500内に登録されている各照
合記号列と並列に照合し、許容類似度以上の高い
類似度を示す照合記号列を記憶している照合列照
合ユニツト500から照合出力411が発生す
る。エンコーダ520はこの照合出力411を受
けてそれをコード化し、入力された記号列の分類
コード521と整合したことを示す“0”の有効
信号522を発生する。いずれの照合出力411
も不整合を示している場合には、エンコーダは不
整合を示す“1”の有効信号522を発生する。 When the symbol codes constituting the symbol string to be matched are inputted sequentially from the symbol string input terminal 111, they are compared in parallel with each symbol string to be verified registered in each symbol string matching unit 500, and the code is compared in parallel with each symbol string to be matched registered in each symbol string matching unit 500. A matching output 411 is generated from a matching string matching unit 500 that stores matching symbol strings indicating similarity. The encoder 520 receives and encodes the verification output 411, and generates a valid signal 522 of "0" indicating that it matches the classification code 521 of the input symbol string. Which verification output 411
If both indicate a mismatch, the encoder generates a valid signal 522 of "1" indicating a mismatch.
従つて、有効信号522と分類コード521を
監視することにより、入力された記号列の分類が
可能となる。また、エンコーダ520とデコーダ
530とにより、入出力端子数を削減し、本記号
列照合装置のLSI化を容易にする。 Therefore, by monitoring the valid signal 522 and the classification code 521, the input symbol string can be classified. Furthermore, the encoder 520 and decoder 530 reduce the number of input/output terminals, making it easy to implement the symbol string matching device into an LSI.
(発明の効果)
以上述べたように、本発明の記号列照合装置は
類似度による照合を可能とするので、一部の記号
が誤つた記号列の照合も可能にする。英単語、特
に名詞は単数形、複数形により最終文字が異なる
場合が多い。例えば、“memory”は複数形にな
ると“memories”になる。この場合、基本の
“memory”を照合記号列とし、一文字の誤りを
許すように許容類似度を設定すれば、
“memories”も抽出できる。また、一部の記号
が欠けた記号列あるいは余分な記号が付加された
記号列の照合も可能にする。このような一部の記
号の欠けや余分な記号の付加は一般に記号列内の
どこに生ずるかまたはどのように記号が欠ける
か、付加されるか予め判断できない。したがつ
て、起りうるすべての記号列の変化に対し、従来
の記号列照合ではそれらの許容するようにプログ
ラミングしておかなければならない。しかし、本
発明の記号列照合方式及び記号列照合装置では許
容類似度を設定しておくことで容易に対処でき
る。すなわち、本発明の記号列照合装置とその方
式は柔軟な記号列照合を可能にする。(Effects of the Invention) As described above, since the symbol string matching device of the present invention enables matching based on similarity, it also makes it possible to match symbol strings in which some symbols are incorrect. English words, especially nouns, often have different final letters depending on whether they are singular or plural. For example, “memory” becomes “memories” in plural. In this case, if you use the basic “memory” as a collation symbol string and set the allowable similarity to allow a single character error,
“Memories” can also be extracted. It also enables matching of symbol strings with some symbols missing or symbol strings with extra symbols added. In general, it is not possible to determine in advance where in the symbol string the missing part of a symbol or the addition of an extra symbol will occur or how the symbol will be missing or added. Therefore, conventional symbol string matching must be programmed to accommodate all possible symbol string changes. However, in the symbol string matching method and symbol string matching device of the present invention, this problem can be easily dealt with by setting an allowable degree of similarity. That is, the symbol string matching device and its method of the present invention enable flexible symbol string matching.
また、入出力端子数を削減し、LSI化を容易に
可能にし、価格低下をもたらす。 It also reduces the number of input/output terminals, making it easier to integrate into LSI, leading to lower prices.
なお、現状の256キロビツトRAMの半導体技
術を用いれば、8ビツトコードの記号8個からな
る照合記号列を128個を1チツプに格納でき、そ
れらを並列に照合できる。 Furthermore, if current semiconductor technology of 256 kilobit RAM is used, 128 verification symbol strings consisting of 8 symbols of 8-bit code can be stored on one chip, and they can be verified in parallel.
1テツプで256種の記号から成る記号列を128ク
ラスに分類することができる事はワープロで作成
した文章の原文フアイルからシーケンシヤルに読
出される記号列文章の中から128個までのキーワ
ード(記号列)の抽出を一挙にやりとげれる事を
意味する。従来は多数のキーワードの同時検策が
困難であつたから、上記チツプのインパクトは大
きい。 The ability to classify a symbol string consisting of 256 kinds of symbols into 128 classes in one step means that up to 128 keywords (symbol string ) can be extracted all at once. In the past, it was difficult to test multiple keywords at the same time, so the above chip has a great impact.
この記号列識別装置はOCR装置や音声認識装
置などパタン認識を行なうシステムにおける特徴
系列の分類においても役立つ。この記号列識別装
置の1チツプLSI化は言語翻訳に必要な辞言とし
ても役立つ。このチツプに通常RAMを接続し、
各記号列の分類コードに対応ずけて、単語の訳語
を格納すると、1チツプにつき128単語までの翻
訳が記号列の入力の完了時に直ちに求まる。記号
列識別チツプに接続される通常RAMには記号別
の分類コードに対応ずけて、各種の情報を格納す
ることが可能であつて、それによつて、種々の記
号列情報処理機能が達成される。たとえば、記号
列の分類コードに対応ずけ、単語の品詞コードや
記号列の出現回数や記号列文章に対する処理命令
を格納すると、知識情報の収集や整理が行ないや
すくなる。 This symbol string identification device is also useful for classifying feature sequences in systems that perform pattern recognition, such as OCR devices and speech recognition devices. Converting this symbol string identification device into a single-chip LSI will also be useful as a dictionary necessary for language translation. Normally, RAM is connected to this chip,
By storing word translations corresponding to the classification codes of each symbol string, translations of up to 128 words per chip can be immediately obtained upon completion of symbol string input. A normal RAM connected to a symbol string identification chip can store various types of information in accordance with the classification code of each symbol, and thereby various symbol string information processing functions can be achieved. Ru. For example, if the part-of-speech code of a word, the number of occurrences of a symbol string, and processing instructions for a symbol string sentence are stored in correspondence with the classification code of the symbol string, it becomes easier to collect and organize knowledge information.
この記号列抽出装置の処理速度は、記号記憶手
段210,410に使われる半導体RAMのサイ
クルタイムTcが1つの記号の処理時間にほぼ対
応する。Tcを100msとすると、109個の記号列
のテキストに対する103個の記号列による照合を
10秒で行なえる。現状のソフトウエアによる照合
では10時間程度を必要とするので、本発明の記号
列照合装置は著しく照合時間を短縮する。 The processing speed of this symbol string extraction device is such that the cycle time Tc of the semiconductor RAM used in the symbol storage means 210, 410 approximately corresponds to the processing time of one symbol. If Tc is 100ms, the text of 10 9 symbol strings can be matched with 10 3 symbol strings.
It can be done in 10 seconds. Since matching using current software requires about 10 hours, the symbol string matching device of the present invention significantly shortens the matching time.
以上まとめると、本発明によれば、従来のマイ
コンとソフトウエアの組合せによる記号列の分類
による処理時間の大きい事と柔軟性に欠ける事の
欠陥が容易に解決する。また、本発明の記号列識
別装置が1チツプのLSIにまとまり易い事を考え
ると、このようなLSIは文章の原文フアイルから
キーワードの抽出や言語翻訳用ので電子言やパタ
ン認識システムの特徴系列の分類において欠かす
ことのできない機能素子になる。 In summary, according to the present invention, the drawbacks of long processing time and lack of flexibility due to conventional symbol string classification using a combination of a microcomputer and software can be easily solved. Furthermore, considering that the symbol string identification device of the present invention can be easily integrated into a single LSI chip, such an LSI can be used for extracting keywords from original text files and for language translation, so it can be used to extract feature sequences for electronic words and pattern recognition systems. It becomes an indispensable functional element in classification.
第1図は本発明による記号列照合装置の一実施
例の説明図、第2図はクロツク信号と転送信号の
タイミング図、第3図は記号列照合装置の動作説
明図、第4図、第5図は本発明の他の実施例の説
明図、第6図は記号列照合の説明図である。
110……記号列記憶手段、120……カウン
タ、123……第1の演算手段、124……一時
記憶手段、130……レジスタ、140……加算
器、410……コンパレータ、420……レベル
設定レジスタ、500……記号列照合ユニツト、
510……記号列照合部、520……エンコー
ダ、530……デコーダ。
FIG. 1 is an explanatory diagram of an embodiment of the symbol string matching device according to the present invention, FIG. 2 is a timing diagram of clock signals and transfer signals, FIG. 3 is an explanatory diagram of the operation of the symbol string matching device, FIGS. FIG. 5 is an explanatory diagram of another embodiment of the present invention, and FIG. 6 is an explanatory diagram of symbol string matching. 110... Symbol string storage means, 120... Counter, 123... First calculation means, 124... Temporary storage means, 130... Register, 140... Adder, 410... Comparator, 420... Level setting Register, 500...Symbol string matching unit,
510...Symbol string matching unit, 520...Encoder, 530...Decoder.
Claims (1)
を記憶する記号列記憶手段と、この各出力線につ
ながる第1の演算手段と、複数の演算手段間を相
互に結合する第1の一時記憶手段と、特定の第1
の一時記憶手段の出力につながる第2の一時記憶
手段と、第2の一時記憶手段につながる第2の演
算手段とを備えたことを特徴とする記号列照合装
置。 2 第1の演算手段と第1の一時記憶手段とがそ
れぞれカウンタあるいはシフトレジスタであるこ
とを特徴とする特許請求の範囲第1項記載の記号
列照合装置。 3 記号コードをアドレス入力とし、照合記号列
を記憶する記号列記憶手段と、この各出力線につ
ながる第1の演算手段と、複数の演算手段間を相
互に結合する第1の一時記憶手段と、特定の第1
の一時記憶手段の出力につながる第2の一時記憶
手段と、第2の一時記憶手段につながる第2の演
算手段と、外部から与えられる許容類似度を記憶
するレジスタと、このレジスタの内容と第2の演
算手段の出力とを比較し、照合結果を出力するコ
ンパレータとを含むことを特徴とする信号列照合
装置。 4 第1の演算手段と第1の一時記憶手段とがそ
れぞれカウンタあるいはシフトレジスタであるこ
とを特徴とする特許請求の範囲第3項記載の記号
列照合装置。 5 記号コードをアドレス入力とし、照合記号列
を記憶する記号列記憶手段と、この各出力線につ
ながる第1の演算手段と、複数の演算手段間を相
互に結合する第1の一時記憶手段と、特定の第1
の一時記憶手段の出力につながる第2の一時記憶
手段と、第2の一時記憶手段につながる第2の演
算手段と、外部から与えられる許容類似度を記憶
するレジスタと、このレジスタの内容と第2の演
算手段の出力とを比較し、照合結果を出力するコ
ンパレータと該コンパレータに接続するエンコー
ダと、該レジスタに接続するデコーダとを備える
ことを特徴とする記号列照合装置。 6 第1の演算手段と第1の一時記憶手段とがそ
れぞれカウンタあるいはシフトレジスタであるこ
とを特徴とする特許請求の範囲第5項記載の記号
列照合装置。 7 記号で指定された番地のみ値が異なるように
記号列内の各記号を記号列記憶手段の各列に記憶
させ、記号列の照合時に記号を前記記号列記憶手
段のデコーダに入力し、前記記号列記憶手段の入
力された記号で示される番地の複数列の内容を並
列に読み取り、前記号列記憶手段の各列の読み取
り情報に基づき連結された各段のカウンタの内容
の増加及び次段のカウンタへの転送を制御し、最
終段のカウンタの互いに1時刻異なる2つ内容と
を加算することで前記記号列記憶手段の内容と逐
次入力された記号列の類似度を求めることを特徴
とする記号列照合装置の制御方式。[Scope of Claims] 1. Symbol string storage means that takes a symbol code as an address input and stores a collation symbol string, a first arithmetic means connected to each of the output lines, and a first arithmetic means that interconnects the plurality of arithmetic means. 1 temporary storage means and a specific 1st temporary storage means;
A symbol string collation device comprising: second temporary storage means connected to the output of the temporary storage means; and second calculation means connected to the second temporary storage means. 2. The symbol string matching device according to claim 1, wherein the first calculation means and the first temporary storage means are each a counter or a shift register. 3. Symbol string storage means that uses symbol codes as address inputs and stores collation symbol strings, first calculation means connected to each of the output lines, and first temporary storage means that interconnects the plurality of calculation means. , specific first
a second temporary storage means connected to the output of the temporary storage means; a second calculation means connected to the second temporary storage means; a register for storing an externally given allowable similarity; 1. A signal string matching device comprising: a comparator that compares the output of the second calculation means and outputs a matching result. 4. The symbol string matching device according to claim 3, wherein the first calculation means and the first temporary storage means are each a counter or a shift register. 5. Symbol string storage means that uses symbol codes as address inputs and stores collation symbol strings, first calculation means connected to each of the output lines, and first temporary storage means that interconnects the plurality of calculation means. , specific first
a second temporary storage means connected to the output of the temporary storage means; a second calculation means connected to the second temporary storage means; a register for storing an externally given allowable similarity; 1. A symbol string matching device comprising: a comparator that compares the outputs of the two arithmetic means and outputs a matching result; an encoder connected to the comparator; and a decoder connected to the register. 6. The symbol string matching device according to claim 5, wherein the first calculation means and the first temporary storage means are each a counter or a shift register. 7. Store each symbol in the symbol string in each column of the symbol string storage means so that only the address designated by the symbol has a different value, input the symbol to the decoder of the symbol string storage means when collating the symbol string, and The contents of multiple columns of the address indicated by the input symbol of the symbol string storage means are read in parallel, and the contents of the counters of each connected stage are increased and the contents of the next stage are increased based on the read information of each column of the previous symbol string storage means. The similarity between the contents of the symbol string storage means and the sequentially input symbol string is determined by controlling the transfer to the counter of the symbol string and adding the two contents of the final stage counter that are different by one time. A control method for a symbol string matching device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14892684A JPS6128134A (en) | 1984-07-18 | 1984-07-18 | Symbol string collecting device and its control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14892684A JPS6128134A (en) | 1984-07-18 | 1984-07-18 | Symbol string collecting device and its control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6128134A JPS6128134A (en) | 1986-02-07 |
| JPH0554148B2 true JPH0554148B2 (en) | 1993-08-11 |
Family
ID=15463749
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14892684A Granted JPS6128134A (en) | 1984-07-18 | 1984-07-18 | Symbol string collecting device and its control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6128134A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5051947A (en) * | 1985-12-10 | 1991-09-24 | Trw Inc. | High-speed single-pass textual search processor for locating exact and inexact matches of a search pattern in a textual stream |
| JPH0799521B2 (en) * | 1987-03-14 | 1995-10-25 | 富士通株式会社 | Similar character string search device |
-
1984
- 1984-07-18 JP JP14892684A patent/JPS6128134A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6128134A (en) | 1986-02-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2726568B2 (en) | Character recognition method and device | |
| JPH02299068A (en) | Word separation method and apparatus | |
| JPH0533422B2 (en) | ||
| JP2609196B2 (en) | Similarity calculator | |
| JPS6128134A (en) | Symbol string collecting device and its control system | |
| JPH0529950B2 (en) | ||
| JP2655087B2 (en) | Character recognition post-processing method | |
| JPS6128131A (en) | Symbol string collating device and its collating system | |
| JPS63103393A (en) | Word recognizing device | |
| JPH0554147B2 (en) | ||
| JP2008059389A (en) | Vocabulary candidate output system, vocabulary candidate output method, and vocabulary candidate output program | |
| JPS62285189A (en) | Character recognition post processing system | |
| JPH0527150B2 (en) | ||
| JP3021224B2 (en) | Dictionary search device | |
| JPS60225273A (en) | Word retrieving system | |
| JPS6195443A (en) | Matching device of code string | |
| JPH04153880A (en) | String substring extraction processing method | |
| Marukawa et al. | A post-processing method for handwritten Kanji name recognition using Furigana information | |
| JP3725206B2 (en) | Character recognition device | |
| AU612263B2 (en) | Method of data retrieval from a data base and a system therefor | |
| JPS6029823A (en) | Adaptive symbol string conversion method | |
| JPS60211539A (en) | Symbol string identification device and its control system | |
| JPH0863487A (en) | Document search method and document search device | |
| JPH04340166A (en) | Retrieval device for word dictionary | |
| JPH0583957B2 (en) |