JPH0268663A - string search device - Google Patents

string search device

Info

Publication number
JPH0268663A
JPH0268663A JP63220323A JP22032388A JPH0268663A JP H0268663 A JPH0268663 A JP H0268663A JP 63220323 A JP63220323 A JP 63220323A JP 22032388 A JP22032388 A JP 22032388A JP H0268663 A JPH0268663 A JP H0268663A
Authority
JP
Japan
Prior art keywords
character
registration
character string
registered
string
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
Application number
JP63220323A
Other languages
Japanese (ja)
Inventor
Tetsuya Morita
哲也 森田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP63220323A priority Critical patent/JPH0268663A/en
Publication of JPH0268663A publication Critical patent/JPH0268663A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To efficiently use a register memory by inputting plural character strings to be retrieved and inserting a delimiter character between character strings and eliminating duplicate characters and registering them as a register character string. CONSTITUTION:When input character strings 1 to be detected are inputted in the register mode, a character collating part 10 outputs a character collation signal 2 at each time of registering one character, and the delimiter character is inserted among plural register character strings, and duplicate characters are not registered. When the input character string 1 of a document character string is inputted in the retrieval mode, it is collated with register character strings to output character collation signal 2 indicating coincidence or discord of each character. This signal 2 is inputted to a sequential encoding part 20, and this part 20 outputs a complete coincidence signal 3 when a register character string is detected in the document character strings, and the part 20 outputs a single character error detection signal 4 when a character string different from a register character string by one character is detected. Consequently, the delimiter character is used, and duplicate characters are not registered. Thus, the register memory is efficiently used.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は文字列照合方式、とくに、磁気ディスクや光デ
ィスク等の2次記憶に保存さnている文書ファイルを入
力し、あらかじめ登録されているキーワードと照合を行
なうことにより、文字情報(テキスト)中から文字列を
検索する装置に関する。
[Detailed Description of the Invention] (Field of Industrial Application) The present invention is a character string matching method, in particular, inputs a document file stored in secondary storage such as a magnetic disk or optical disk, and The present invention relates to a device that searches for a character string from character information (text) by comparing it with a keyword.

(従来の技術) 従来の文字列照合方法としては、(1)ソートサーチ法
、(2)連想メモリ法、(3)セルラアレイ法、(4)
有限状態オートマトン法、(5)DP法等が上げらnる
が、こnらの方法には以下のような問題点があった。す
なわち、(21、(3)は長い文字列が扱えない。(1
) 、 (31、(4) 、 (5)は可変長文字列の
ノンアンカマツチが扱えない。(5)は処理速度が遅い
。(3) 、 (4) 、 (5)はハードウェアサイ
ズが小さくならない。
(Prior art) Conventional string matching methods include (1) sort search method, (2) associative memory method, (3) cellular array method, and (4)
Examples include the finite state automaton method and (5) DP method, but these methods have the following problems. In other words, (21, (3) cannot handle long character strings. (1
), (31, (4), and (5) cannot handle non-anchor matching of variable-length character strings. (5) has slow processing speed. (3), (4), and (5) have limited hardware size. It doesn't get smaller.

こnらの問題点の一部を解決するために、(2)と(4
)を組み合わせた文字列検索LSI (日本電気−l5
SP )が開発さn、高橋、他「ストリング・マツチン
グ・ハードウェアのアーキテクチャ」電子通信学会研究
報告(コンピュータシステム)、CPSY 86−57
1986.7に発表さnている。
In order to solve some of these problems, (2) and (4)
) String search LSI (NEC-15
Developed by SP), T. Takahashi, et al., “String Matching Hardware Architecture,” Institute of Electronics and Communication Engineers Research Report (Computer Systems), CPSY 86-57.
It was announced in July 1986.

(発明が解決しようとする課題) このような(2)と(4)ヲ組み合わせた文字列検索L
SIでも、連想メモリ中に同一文字や良く似た文字列が
複数登録さnているとメモリ全問が効率良く使用できな
い、連想メモリ空間において文字列の登録に固定長ブロ
ックを使用するため、短い文字列が多いと登録メモリ空
間に無駄が多くなるなどの欠点がある。本発明はこの欠
点を解決する文字列検索装置を提供することを目的とす
る。
(Problem to be solved by the invention) String search L that combines (2) and (4) like this
Even with SI, if multiple identical characters or very similar character strings are registered in the associative memory, the entire memory cannot be used efficiently.Since fixed-length blocks are used to register character strings in the associative memory space, short If there are many character strings, there are disadvantages such as a lot of wasted registration memory space. It is an object of the present invention to provide a character string search device that solves this drawback.

(課題を解決するための手段) 本発明による文字列検索装置は、上記目的を達成するた
めに、登録時、入力される複数の文字列を文字列の間に
区切り文字を挿入して登録文字列として登録し、検索時
、人力される文字列の各文字を登録文字列と照合し、登
録時に各文字の登録を示し、検索時に照合一致の有無を
示す登録/照合信号を出力する登録/照合制御部と、登
録/照合信号を受け、登録時に登録文字列の文字構成を
記憶し、検索時に入力文字列と比較し、各文字ごとに一
致の有無および区切シ文字を示す文字照合信号を出力す
る文字照合部と、文字照合信号に論理演算処理を施し、
その結果より検索時、入力文字列における登録文字列の
有無を区切り文字のごとに判定する文字列検出手段とを
有する。
(Means for Solving the Problems) In order to achieve the above object, a character string search device according to the present invention inserts a delimiter character between a plurality of input character strings at the time of registration, and searches for registered characters. Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/Registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/registration/ that outputs a verification signal that registers each character as a string, and at the time of search, compares each character of the manually entered character string with the registered character string, indicates the registration of each character at the time of registration, and indicates whether or not there is a match at the time of search. It receives the registration/verification signal from the verification control unit, stores the character structure of the registered character string at the time of registration, compares it with the input character string at the time of search, and sends a character verification signal indicating the presence or absence of a match and the delimiter character for each character. Performs logical operation processing on the output character matching section and the character matching signal,
The apparatus includes a character string detection means that determines the presence or absence of a registered character string in the input character string for each delimiter at the time of searching based on the result.

(作用) 登録/照合制御部は、検索する複数の文字列をへカレ、
文字列間に区切り文字を入n1かつ重複する文字を除き
、登録文字列として登録する。検索時に入力される文字
列の各文字を登録文字列と照合する。登録/検索時には
、登録を示し照合の一致の有無を示す登録/照合信号を
出力する。
(Function) The registration/verification control unit converts multiple character strings to be searched.
Insert a delimiter character between character strings, remove n1 and duplicate characters, and register as a registered character string. Match each character of the string entered during search with the registered string. At the time of registration/search, a registration/verification signal is output that indicates registration and indicates whether or not there is a match.

文字照合部は、登録/照合信号から登録時に登録文字列
の文字構成を記憶し、検索時に入力文字列と比較し、各
文字ごとに一致の有無および区切り文字を示す文字照合
信号を出力する。
The character matching section stores the character structure of the registered character string at the time of registration from the registration/matching signal, compares it with the input string at the time of search, and outputs a character matching signal indicating whether or not there is a match and a delimiter for each character.

文字列検出手段は、文字照合信号を入力し、検索時に入
力される文字列における登録文字列の有無および一文字
誤りのある文字列を検出する。このように、区切り文字
を用い、かつ重複する文字登録を行わないことにより、
登録メモリを効率的に使用することができる。また、文
字検出手段により登録文字列およびその一文字誤りを検
出する。
The character string detection means inputs a character matching signal and detects the presence or absence of a registered character string in the character string input at the time of search and a character string with a single character error. In this way, by using delimiters and not registering duplicate characters,
Registration memory can be used efficiently. Further, the registered character string and a single character error thereof are detected by the character detection means.

(実施例) 次に、本発明の実施例を図面を参照して説明する。(Example) Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の文字列検索装置の実施例を示すブロッ
ク図である。本装置は登録モードで、検索する文字列を
登録文字列として登録し、検索モードで、文書ファイル
等の文書文字列の中から登録文字列およびその一文字誤
りを検出する。
FIG. 1 is a block diagram showing an embodiment of a character string search device of the present invention. In the registration mode, this device registers a character string to be searched as a registered character string, and in the search mode, detects the registered character string and a single character error therein from document character strings such as document files.

クロック生成部30はクロック信号5f、文字照合部1
0およびシーケンシャル・エンコード部20に供給する
。各部の入出力動作はこのクロック信号5に同期して行
わnる。文字照合部lOは、登録モードで、検出するキ
ーワード、熟語、短文等の登録文字列の入力文字列lが
入力されると、−文字登録ごとに文字照合信号2を出力
し、複数の登録文字列の間に区切り文字EO8(End
 of String )を挿入する。
The clock generation unit 30 generates a clock signal 5f and a character matching unit 1.
0 and the sequential encoder 20. Input/output operations of each part are performed in synchronization with this clock signal 5. When the input character string l of a registered character string such as a keyword, an idiom, a short sentence, etc. to be detected is input in registration mode, the character matching unit IO outputs a character matching signal 2 for each character registration, and checks a plurality of registered characters. Separator EO8 (End) between columns
of String).

検索モードで文書文字列の入力文字列lが人力さむると
、登録文字列と照合し、−文字ごとに一致の有無を示す
文字照合信号2を出力する。
When the input character string l of the document character string is manually stored in the search mode, it is compared with the registered character string, and a character matching signal 2 indicating whether there is a match for each - character is output.

シーケンシャルエンコード部20は、この信号2を入力
し、文書文字列の中に登録文字列を検出すると完全一致
信号3を出力し、登録文字列と一文字異なる文字列を検
出すると一文字誤シ検出信号4を出力する。
The sequential encoding unit 20 inputs this signal 2, and when it detects a registered character string in the document character string, it outputs a complete match signal 3, and when it detects a character string that differs by one character from the registered character string, it outputs a one-character error detection signal 4. Output.

文字照合部2の構成を第2図に示す。登録/照合制御部
l・2は、登録および検索モードで入力文字列1を文字
コード3に変換して出力する。
The configuration of the character matching section 2 is shown in FIG. The registration/verification control unit 1.2 converts the input character string 1 into a character code 3 in the registration and search mode and outputs the character code 3.

文字登録/照合部14は、登録モードにおいて、文字コ
ード3を入力し、例えば、登録文字列が「あいまい検索
情報F:OS情報検索EO8Jとすると、その中から重
複文字を除いて[あいま検索情報EO8Jのように、メ
モリ空間を節約した登録を行ない、かつ各文字の登録/
照合信号7をアクティブにする。文字列変換テーブル1
6は、この信号7をクロック信号5により、元の登録文
字列の文字構成に展開して記憶素子に記憶する。検索モ
ードにおいて、文字コード3で入力される文書文字列の
各文字を記憶内容と照合し、一致があわば、登録/照合
信号7′!i−アクティブに出力する。文字列変換テー
ブル16はこの信号7と記憶素子の内容が一致すると、
この例では「あいまい検索EO8情報検索EO8Jの各
文字ごとの文字照合信号2をアクティブにする。
The character registration/verification unit 14 inputs the character code 3 in the registration mode, and, for example, if the registered character string is "Fuzzy search information F:OS information search EO8J," the character registration/verification unit 14 removes duplicate characters from it and enters [Vague search information Like EO8J, it performs registration that saves memory space and registers/registers each character.
Activate verification signal 7. String conversion table 1
6 expands this signal 7 into the character structure of the original registered character string using the clock signal 5 and stores it in the storage element. In the search mode, each character of the document character string input with character code 3 is compared with the stored contents, and if there is a match, the registration/verification signal 7'! i-Output to active. When the character string conversion table 16 matches this signal 7 and the contents of the storage element,
In this example, "Character matching signal 2 for each character of fuzzy search EO8 information search EO8J is activated."

文字変換テーブル16を第3図(、)、記憶素子を同図
(b)に示す。テーブル16を示す格子のドツトはメモ
リ素子が一文字を記憶した状態を示す。各記憶素子は1
ビツトのラッチi 6 i1アンドr〜ト162、オア
ダート163で構成さnている。各列には列の左よりク
ロック信号5に同期する登録/照合信号7が印加さ粗、
各行には上から下にクロック信号5が印加される。
The character conversion table 16 is shown in FIG. 3(,), and the memory element is shown in FIG. 3(b). The dots in the grid representing the table 16 indicate the state in which the memory element has stored one character. Each storage element is 1
It consists of bit latches i6i1andr162 and ordart163. A registration/verification signal 7 synchronized with the clock signal 5 is applied to each column from the left of the column.
A clock signal 5 is applied to each row from top to bottom.

登録モードで、ラッチ161は、端子CおよびDにクロ
ック信号5および登録/照合信号7を同時に入力すると
、1文字を記憶し、その出力をハイレベル″H″′にす
る。こnによって文字変換テーブル16の格子点が図示
したドツトの記憶状態になる。検索モードで、行および
列にそnぞnクロック信号5および登録/照合信号7が
印加さnlその格子点のラッチ161が登録状態であn
ば、アンドゲート162はHnをオアダート163に出
力し、オアゲート163は文字照合信号2をH”にする
In the registration mode, when the clock signal 5 and the registration/verification signal 7 are simultaneously input to terminals C and D, the latch 161 stores one character and sets its output to a high level "H"'. As a result, the lattice points of the character conversion table 16 become stored in the dot state shown in the figure. In the search mode, the clock signal 5 and registration/verification signal 7 are applied to each row and column, and the latch 161 at that grid point is in the registration state.
For example, the AND gate 162 outputs Hn to the OR gate 163, and the OR gate 163 changes the character matching signal 2 to H''.

第4図に文字列変換テーブル16のEOSラッチ部分の
構成例を示す。登録/照合制御部12から文字EO8を
示す登録/照合信号7が印加される列の各格子点に他の
列と同様にランチ161が接続さnている。ラッチ16
1はクロック信号5とEO8の信号7の印加により文字
EO8を記憶し、かつEOSラッチ出力8をH′にする
FIG. 4 shows a configuration example of the EOS latch portion of the character string conversion table 16. A launch 161 is connected to each grid point of the column to which the registration/verification signal 7 representing the character EO8 is applied from the registration/verification control unit 12, as in the other columns. latch 16
1 stores the character EO8 by applying the clock signal 5 and the signal 7 of EO8, and sets the EOS latch output 8 to H'.

第5図に文字列検出手段であるシーケンシャルエンコー
ド部20の構成を示す。登録文字列の各文字例えば、「
あいまい」に対応する検出を行なう回路よりなり、この
回路はアンドゲートa、b、c、オアゲートd11ビッ
トラッチe、fで構成さnている。各回路の入出力は互
に縦続に接続され、検出する文字列と登録文字列が一致
すると、終端「い」の回路より完全−致信号3を出力し
、−文字の誤りがあると、その文字の回路から一文字誤
り信号4を出力する。
FIG. 5 shows the configuration of the sequential encoder 20, which is a character string detection means. Each character of the registered string, for example, "
This circuit consists of AND gates a, b, c, or gates, d1, bit latches e, f. The input and output of each circuit are connected to each other in cascade, and when the detected character string and the registered character string match, the terminal "i" circuit outputs a perfect match signal 3, and if there is an error in the - character, the A single character error signal 4 is output from the character circuit.

図示の回路において、文字列に「あいまい・・・」の前
位の入力文字列が終了するとその区切り文字のEOSラ
ッチ出力8が各ラッチe、fのノリセット端子SETに
出力さn1各ラツチを記憶可能の状態にセントする。「
あ」の回路において、オアケ゛−トaに入力する文字照
合信号2が「ア」の一致を示す”H”であわば、ゲート
aはラッチeに”H″を出力し、ラッチeはこnを記憶
して「い」の回路への出力を”H”にする。一方、アン
ドy −トbおよびCはそnぞfi”l、”および”H
′を出力するので、オアゲートdは”L”を出力し、ラ
ッチfはこnを記憶して「い」の回路へL#を出力する
In the circuit shown in the figure, when the input character string before "ambiguous..." ends, the EOS latch output 8 of that delimiter is output to the reset terminal SET of each latch e and f. Cent to memorizable state. "
In the circuit of ``A'', when the character matching signal 2 input to the gate a is ``H'' indicating a match of ``A'', the gate a outputs ``H'' to the latch e, and the latch e outputs ``H'' to the latch e. is memorized and the output to the circuit "I" is set to "H". On the other hand, andy-tb and C are respectively fi"l," and "H"
', the OR gate d outputs "L", and the latch f stores this n and outputs L# to the "i" circuit.

「い」の回路において、文字照合信号2が不一致を示す
L”であわば、オアヶt  )aの出力は”L″となり
、ラッチeはL″を出力する。アンドゲートbはHnを
出力し、アンド’y” −) cはL′を出力し、その
結果オアゲートdはH”を出力し、ラッチfは誤りを記
憶し一文字誤シ検出信号9&−文字誤りを示すH′とす
る。
In the circuit "i", if the character matching signal 2 is "L" indicating a mismatch, the output of the OR gate (t)a becomes "L" and the latch e outputs "L". AND gate b outputs Hn, AND'y" -) c outputs L', and as a result, OR gate d outputs H", latch f stores the error, and one character error detection signal 9 & - character error Let it be H' indicating.

さて、文字「あいまい」の各文字照合信号2が一致を示
しだときは、最終文字「い」の回路が、各回路の文字照
合信号2の論理積である完全一致信号3を”H”にして
出力し、−文字の誤りがあるとこの信号3を”L”にす
る。
Now, when each character matching signal 2 of the character "ambiguous" indicates a match, the circuit for the final character "i" sets the exact match signal 3, which is the AND of the character matching signals 2 of each circuit, to "H". If there is an error in the - character, this signal 3 is set to "L".

登録モードの動作例として、登録文字列が、「あいまい
検索」 「情報検索」 「・ ・」である場合を$6図
〜第8図に示す。入力文字列lとしては、登録文字列の
終わりを示す区切り制御文字EO8が挿入された「あい
まい検索EO8情報検索EO8・・・」が入力される。
As an example of operation in the registration mode, the case where the registered character string is "vague search", "information search", "..." is shown in Figures 6 to 8. As the input character string l, "vague search EO8 information search EO8..." in which the delimiter control character EO8 indicating the end of the registered character string is inserted is input.

第1図において登録モードの状態で入力文字列lが入力
されると、文字照合部10では第2図の登録/照合制御
部12に1文字ずつ登録文、字列の登録を行なう。その
際、最初の登録文字列の先頭文字「あ」は登録/照合制
御部12の第1列に登録さn、こnと同時に文字列変換
テーブル16の(1,1)の格子点の位置にドツトが付
加される。
When an input character string 1 is inputted in the registration mode in FIG. 1, the character collation section 10 registers the registered characters and character strings one by one in the registration/verification control section 12 of FIG. 2. At this time, the first character "A" of the first registered character string is registered in the first column of the registration/verification control unit 12, and at the same time, the position of the lattice point (1, 1) of the character string conversion table 16 is n. A dot is added to .

文字列変換テーブル16の格子点は、例えば前述のよう
に第3図のような回路で構成されている。縦線は第2図
の登録/照合信号7に相当し、横線は同図の文字照合信
号2に相当している。ここで先のドツトはラッチ161
がセント(出力が“H”)状態にあることを意味する。
The grid points of the character string conversion table 16 are configured, for example, by a circuit as shown in FIG. 3, as described above. The vertical line corresponds to the registration/verification signal 7 in FIG. 2, and the horizontal line corresponds to the character verification signal 2 in the same figure. Here the first dot is latch 161
This means that the output is in the cent state (output is "H").

とnはドツトを付加したい格子点の列の線(縦線)をア
クティブに保ちながら同格子点の行の登録クロック信号
を立ち上げることによってセントされる。以降、検索モ
ード時に登録文字がヒントし登録/照合信号7がアクテ
ィブになると、その登録/照合信号7上でドツトが付加
さゎた行の文字照合信号2がすべてアクティブになる。
and n are sent by raising the registration clock signal of the row of the grid point while keeping active the line (vertical line) of the column of the grid point to which dots are to be added. Thereafter, when a registered character becomes a hint in the search mode and the registration/verification signal 7 becomes active, all the character verification signals 2 in the lines to which dots are added on the registration/verification signal 7 become active.

第7図で、続いて2文字目「い」は登録/照合側H!t
stzの第2列に登録さn1同時に文字列変換テーブル
16の(2,2)の格子点にドツトが付加される。3文
字目「ま」も同様にして(3,3)にドツトが付加され
るが、4文字目「い」は既に第2列に登録さnているた
め、登録/照合制御部12には登録さjず、文字列変換
テーブル16の(2,4)の格子点にドツトのみが付加
さむる。第8図で同様にしてi釦「索」も重複して出現
するので2度目以降は登録/照合制御部12に登録さn
ず、文字列変換テーブル16の所定の位置にドツトのみ
が付加される。つまり、文字照合部lOは登録文字列を
登録する際、同一文字が登録されているかどうかをチエ
ツクし、既に登録さnている場合には重複登録を行なわ
ず文字列変換テーブル16の所定の位置に処理を加える
In Figure 7, the second character “i” is H on the registration/verification side! t
At the same time as n1 is registered in the second column of stz, a dot is added to the grid point (2, 2) of the character string conversion table 16. A dot is added to (3,3) for the third character "ma" in the same way, but since the fourth character "i" has already been registered in the second column, the registration/verification control unit 12 does not Only a dot is added to the grid point (2, 4) of the character string conversion table 16 without registration. Similarly in FIG. 8, the i button "Search" appears twice, so it is not registered in the registration/verification control unit 12 from the second time onwards.
First, only a dot is added to a predetermined position in the character string conversion table 16. In other words, when registering a registered character string, the character matching unit 1O checks whether the same character has been registered, and if it has already been registered, it does not register the same character twice and moves it to a predetermined position in the character string conversion table 16. Add processing to.

以上と同様にして登録文字列のN文字目(EO8も1文
字と数える)の情報がN行目のドツトとして登録される
。区切り制御文字EO8がN文字目として登録/照合制
御部12に入力されるとEO8の列がアクティブになる
。文字列変換テーブル16のEOSラッチ部分では、第
4図に示すように、その状態でN行目の登録クロックを
立ち上げるとN行目のEOSラッチ161がセットされ
る。ラッテ161の出力は第5図のシーケンシャル・エ
ンコード部20の2つのランチa、fの非同期グリセッ
ト端子SETに入力されるため、こnらのラッチは”H
”を出力し続ける。
In the same way as above, information on the Nth character (EO8 is also counted as one character) of the registered character string is registered as a dot on the Nth line. When the delimiter control character EO8 is input to the registration/verification control unit 12 as the Nth character, the column of EO8 becomes active. In the EOS latch portion of the character string conversion table 16, as shown in FIG. 4, when the registration clock on the Nth line is raised in this state, the EOS latch 161 on the Nth line is set. Since the output of the latch 161 is input to the asynchronous reset terminal SET of the two latches a and f of the sequential encoder 20 in FIG.
” continues to be output.

検索モードの動作例として、文書文字列が「近年、情報
検索分野においてあいまい検索の研究が盛んである・ 
・」であるときを示す。
As an example of operation in search mode, if a document string is
・” indicates when.

入力文字列lは登録モード時と同様に文字照合部10に
同期的に入力される。文書文字列が入力さnたときの文
字照合部10の動作を第9図から第14図に示す。登録
/照合制御部12では、1文字人力されるごとに登録さ
nている全文字と比較し、合致する文字の登録/照合信
号7をアクティブにする。第9図で「近年、」まで入力
されたときは、まだ合致する文字が存在していないので
登録/照合信号7はどnもアクティブにならない。第1
0図で、続いて「情」が入力されると、登録/照合制御
部12の第6列の登録/照合信号7がアクティブになり
、(6゜8)のドツトによって第8行の文字照合信号2
もアクティブになる。なお、この図で破縁部分はアクテ
ィブな信号線を表している。さらに「報」 「検」 「
索」と入力されると、アクティブな信号線は第11図〜
第13図のように変化する。またさらに進んで、「あい
まい検索」の「索」が入力さnた時点を示したのが第1
4図である。ここで第10図〜第14図中において丸で
囲1れた文字はシーケンシャル・エンコード部20にお
けるその文字の完全一致信号が”H”状態にあることを
意味する。
The input character string l is synchronously input to the character matching unit 10 as in the registration mode. The operation of the character matching unit 10 when a document character string is input is shown in FIGS. 9 to 14. The registration/verification control unit 12 compares each input character with all registered characters, and activates the registration/verification signal 7 of the matching character. In FIG. 9, when "recently," is input, no matching character exists yet, so none of the registration/verification signals 7 becomes active. 1st
In Figure 0, when "information" is input next, the registration/verification signal 7 in the 6th column of the registration/verification control unit 12 becomes active, and the character matching in the 8th row is activated by the dot at (6°8). signal 2
also becomes active. Note that in this figure, the broken edge portion represents an active signal line. In addition, ``report'', ``inspection'', ``
11~
It changes as shown in Fig. 13. Going further, the first one shows the point in time when "search" for "fuzzy search" was entered.
This is Figure 4. In FIGS. 10 to 14, a character surrounded by a circle 1 means that the complete match signal for that character in the sequential encoder 20 is in the "H" state.

文字列変換テーブル16の出力(行方向の信号線)であ
る文字照合信号2は、このようにして1文字ずつ照合さ
nた結果として、シーケンシャル・エンコード部2oに
実時間で転送される。シーケンシャル・エンコ−1’W
zo(第5図)は、前述のように、登録/照合部14と
同期して動作する複数の1ビツトランチとAND 。
The character collation signal 2, which is the output (signal line in the row direction) of the character string conversion table 16, is transferred in real time to the sequential encoder 2o as a result of character-by-character collation in this manner. Sequential encoder 1'W
zo (FIG. 5) is an AND circuit with a plurality of 1-bit branches that operate in synchronization with the registration/verification section 14, as described above.

OR論理回路からなジ、実時間で入力さ君る文字照合の
結果を逐次登録文字列と照合する。その際、各登録文字
列についてそnぞn完全一致信号3と1文字誤ジ検出信
号4の2つの信号を出力する。各登録文字列の最後の文
字に対する完全一致信号3は文書文字列の中にその登録
文字列が存在したことを示し、同文字に対する1文字誤
り検出信号4はその登録文字列と1文字だけ異なる文字
列が存在したことを示す。
The result of character matching input in real time from the OR logic circuit is sequentially compared with the registered character string. At this time, two signals, a complete match signal 3 and a single character error detection signal 4, are output for each registered character string. The exact match signal 3 for the last character of each registered character string indicates that the registered character string exists in the document character string, and the one-character error detection signal 4 for the same character differs from the registered character string by only one character. Indicates that the string exists.

また、同一文字を含む登録文字列の同一文字に対する文
字照合信号2は常に同時にアクティア’になるが、シー
ケンシャル・エンコード部20では完全一致信号3と1
文字誤、り検出信号4を逐次伝搬・合成していくので、
該当しない登録文字列の完全一致信号3と1文字誤り検
出信号4は最終的にはアクティブにならない。例えば、
第13図において「あいまい検索」の「索」と「情報検
索」の「索」の2本の文字照合信号2がアクティブにな
っているが、前者の「索」には丸が付いていない。こn
は前者の「索」の完全一致信号3が”L”になっている
ことを意味している。即ち、「索」の前の文字「検」の
完全一致信号3が”L”であるためである。(例第13
図、第14図) 1文字誤り検出信号4は「情報検索」という登録文字列
について、以下のよう1文書文字列に対してもアクティ
ブになる。
Furthermore, the character matching signal 2 for the same character in a registered character string containing the same character always becomes actia' at the same time, but the sequential encoder 20 uses the exact match signal 3 and 1.
Since the character error and error detection signals 4 are successively propagated and synthesized,
The exact match signal 3 and single character error detection signal 4 of the registered character string that is not applicable do not become active in the end. for example,
In FIG. 13, two character matching signals 2, "search" for "vague search" and "search" for "information search", are active, but the former "search" is not circled. This
means that the perfect match signal 3 of the former "search" is "L". That is, this is because the exact match signal 3 of the character "search" before "search" is "L". (Example 13
(FIG. 14) The single character error detection signal 4 becomes active for the registered character string "Information Search" as well for one document character string as shown below.

「*報検索」 「情*検索」 「情報*索」 「情報検
水」(*は任意の1文字) 以上のようにして、文書文字列を入力し、あらかじめ登
録さnているキーワードと照合を行なうことにより、必
要な文字列を検索でき、また1文字だけ異なる文字列も
検出できる文字列検索装置が構成できる。
"*Information Search""Information*Search""Information*Search""InformationCheck" (* is any single character) Input the document string as above and match it with the pre-registered keywords. By doing this, it is possible to construct a character string search device that can search for a necessary character string and can also detect character strings that differ by only one character.

(発明の効果) 以上説明したように本発明は次の効果を有する。(Effect of the invention) As explained above, the present invention has the following effects.

(1)複数の登録文字列の中に同一文字が含まnでいて
も、そnらの文字が重複して登録さnない、また登録文
字列が固定長ブロックで分割さnないため、文字列登録
空間が効率的に使用できる。
(1) Even if the same character is included in multiple registered character strings, those characters will not be registered twice, and the registered character string will not be divided into fixed-length blocks. Column registration space can be used efficiently.

(2)1文字誤りを含む文字列を検出できる。(2) Character strings containing a single character error can be detected.

(3)装置構成が同一構造の繰り返し構造であるため設
計が容易で実装効率が高く、VLS 1回きである。
(3) Since the device configuration is a repeating structure of the same structure, design is easy and implementation efficiency is high, and VLS can be performed only once.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の文字列検索装置の実施例を示すブロッ
ク図、 第2図は同実施例の文字照合部の構成例を示すブロック
図、 第3図(、)は同実施例における文字列変換テーブルの
概念的構成例を示す説明図、同図(b)はその内部構成
の例全示す回路図、 第4図は同実施例の文字列変換テーブルのEOSランチ
部分の内部構成例を示す説明図、第5図は同実施例のシ
ーケンシャル・エンコード部の構成例を示す回路図、 第6図ないし第8図は同実施例における登録モード時の
動作の例を時系列的に示す説明図、第9図ないし第14
図は同実施例における検索モード時の動作の例を時系列
的に示す説明図である。 10・・・文字照合部 12・・・登録/照合制御部 l4・・・文字登録/照合部 16・・・文字列変換テーブル 20・・・シーケンシャル・エンコード部30・・・ク
ロック生成部 161、e、f・・・1ビツトラツチ 162、a〜C・・・アンピケ9−ト 163、d・・・オアケ9−ト
FIG. 1 is a block diagram showing an embodiment of the character string search device of the present invention, FIG. 2 is a block diagram showing an example of the configuration of the character matching section of the same embodiment, and FIG. An explanatory diagram showing an example of a conceptual configuration of a string conversion table, FIG. 4(b) is a circuit diagram showing an example of its internal configuration, and FIG. FIG. 5 is a circuit diagram showing an example of the configuration of the sequential encoding section of the same embodiment, and FIGS. 6 to 8 are explanations showing examples of operations in registration mode in the same embodiment in chronological order. Figures 9 to 14
The figure is an explanatory diagram chronologically showing an example of the operation in the search mode in the same embodiment. 10...Character matching section 12...Registration/verification control section l4...Character registration/verification section 16...Character string conversion table 20...Sequential encoding section 30...Clock generation section 161, e, f...1 bit latch 162, a to C... amplifier 9-toe 163, d... orake 9-toe

Claims (1)

【特許請求の範囲】 1、登録時、入力される複数の文字列を該文字列の間に
区切り文字を挿入して登録文字列として登録し、検索時
、入力される文字列の各文字を前記登録文字列と照合し
、登録時に各文字の登録を示し、検索時に照合一致の有
無を示す登録/照合信号を出力する登録/照合制御部と
、該登録/照合信号を受け、登録時に登録文字列の文字
構成を記憶し、検索時に入力文字列と比較し、各文字ご
とに一致の有無および前記区切り文字を示す文字照合信
号を出力する文字照合部と、 前記文字照合信号に論理演算処理を施し、その結果より
検索時、入力文字列における前記登録文字列の有無を前
記区切り文字ごとに判定する文字列検出手段とを有する
ことを特徴とする文字列検索装置。 2、請求項1に記載の装置において、前記登録/照合制
御部は、登録文字列に同一文字があるときは重複する登
録を行わず、検索時に前記文字照合部の前記文字構成か
ら前記登録文字列を識別することを特徴とする文字列検
索装置。 3、請求項1に記載の装置において、前記文字列検出手
段は、文書文字列中に登録文字列が含まれているときに
は完全一致信号を出力し、登録文字列と1文字だけ異な
る文字列が検出されたときには1文字誤り検出信号を出
力することを特徴とする文字列検索装置。
[Claims] 1. At the time of registration, a plurality of input character strings are registered as a registered character string by inserting delimiters between the character strings, and at the time of search, each character of the input character string is a registration/verification control unit that outputs a registration/verification signal that compares the registered character string, indicates the registration of each character at the time of registration, and indicates the presence or absence of a verification match at the time of search; and a registration/verification control unit that receives the registration/verification signal and registers the character at the time of registration. a character matching unit that stores the character structure of a character string, compares it with an input string during a search, and outputs a character matching signal indicating the presence or absence of a match for each character and the delimiter; and a logical operation process on the character matching signal. and character string detection means for determining the presence or absence of the registered character string in an input character string for each delimiter character at the time of searching based on the result. 2. In the apparatus according to claim 1, the registration/verification control unit does not perform duplicate registration when the same character exists in the registered character string, and selects the registered character from the character configuration of the character verification unit during a search. A character string search device characterized by identifying columns. 3. In the apparatus according to claim 1, the character string detection means outputs a complete match signal when the registered character string is included in the document character string, and detects a character string that differs by only one character from the registered character string. A character string search device characterized by outputting a single character error detection signal when a character string error is detected.
JP63220323A 1988-09-05 1988-09-05 string search device Pending JPH0268663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63220323A JPH0268663A (en) 1988-09-05 1988-09-05 string search device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63220323A JPH0268663A (en) 1988-09-05 1988-09-05 string search device

Publications (1)

Publication Number Publication Date
JPH0268663A true JPH0268663A (en) 1990-03-08

Family

ID=16749343

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63220323A Pending JPH0268663A (en) 1988-09-05 1988-09-05 string search device

Country Status (1)

Country Link
JP (1) JPH0268663A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110550533A (en) * 2019-07-30 2019-12-10 康达电梯有限公司 Counterweight device of elevator

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57147773A (en) * 1981-03-06 1982-09-11 Matsushita Electric Ind Co Ltd Dictionary memory
JPS5858682A (en) * 1981-10-02 1983-04-07 Canon Inc Electronics
JPS6027938A (en) * 1983-07-26 1985-02-13 Fujitsu Ltd Character string comparing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57147773A (en) * 1981-03-06 1982-09-11 Matsushita Electric Ind Co Ltd Dictionary memory
JPS5858682A (en) * 1981-10-02 1983-04-07 Canon Inc Electronics
JPS6027938A (en) * 1983-07-26 1985-02-13 Fujitsu Ltd Character string comparing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110550533A (en) * 2019-07-30 2019-12-10 康达电梯有限公司 Counterweight device of elevator

Similar Documents

Publication Publication Date Title
JP3143079B2 (en) Dictionary index creation device and document search device
JP2737173B2 (en) Symbol string collating device and its control method
JP2693914B2 (en) Search system
Burkowski A hardware hashing scheme in the design of a multiterm string comparator
US4979101A (en) Apparatus for retrieving character strings
JPH0268663A (en) string search device
JP2880199B2 (en) Symbol string search method and search device
JP2729491B2 (en) Variable length character string detector
Takahashi et al. Intelligent string search processor to accelerate text information retrieval
JPH0380366A (en) Method and device for string search
EP0178651B1 (en) Data retrieving apparatus
KR100284777B1 (en) Tri-Dictionaries for Map Terminology and How to Register and Search
JPH01205267A (en) Word dictionary retrieving device
JP2773657B2 (en) String search device
JPS62180462A (en) Voice input kana-kanji conversion device
JPH01205226A (en) Word dictionary retrieving device
JPS63153632A (en) Character string retrieval system
JP2692345B2 (en) Symbol string matching device
Skillicorn A generalisation of indexing for parallel document search
JPH0231274A (en) Word dictionary retrieving device
JP2839515B2 (en) Character reading system
JPH01205266A (en) Word dictionary retrieving device
JPH0231273A (en) Word dictionary retrieving device
JPH04114278A (en) Character string comparing system
JPS6039228A (en) Kana-kanji (japanese syllabary-chinese character) conversion processing device