Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2718062B2 - Learning type character string search device and control method of the device - Google Patents
[go: Go Back, main page]

JP2718062B2 - Learning type character string search device and control method of the device - Google Patents

Learning type character string search device and control method of the device

Info

Publication number
JP2718062B2
JP2718062B2 JP63128849A JP12884988A JP2718062B2 JP 2718062 B2 JP2718062 B2 JP 2718062B2 JP 63128849 A JP63128849 A JP 63128849A JP 12884988 A JP12884988 A JP 12884988A JP 2718062 B2 JP2718062 B2 JP 2718062B2
Authority
JP
Japan
Prior art keywords
search
character string
string
text
matching
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
Application number
JP63128849A
Other languages
Japanese (ja)
Other versions
JPH01297724A (en
Inventor
恒介 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP63128849A priority Critical patent/JP2718062B2/en
Publication of JPH01297724A publication Critical patent/JPH01297724A/en
Application granted granted Critical
Publication of JP2718062B2 publication Critical patent/JP2718062B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は特許や学術文献などのテキスト情報の内容検
索を能率よく高速に処理する事ができる文字列検索装置
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial application field) The present invention relates to a character string search device capable of efficiently and quickly processing the contents of text information such as patents and academic documents.

(従来の技術) 特許や学術文献などのテキスト情報はOA(オフィス・
オートメーション)機器の技術の進歩に合わせて増加の
一途にある。それらは再利用されるために次々と大容量
化するファイルメモリに貯えられて行く。しかし、それ
らの内容を高速に検索して、必要な情報をとり出せるよ
うにするファイル情報のデータベース化は余り進まな
い。すなわち、ファイル情報の各レコードにその内容に
マッチしたキーワードを付加し、且つ、キーワード検索
を高速化できるようなキーワードの並べ替えをする作業
が人手に頼っていて、容易に達成されないからである。
また、内容がマッチしていても、検索の時に使うキーワ
ードがレコードに付加するキーワードと一致しない用語
のばらつきの問題もあるからである。
(Prior art) Text information such as patents and academic literature is
(Automation) equipment is increasing steadily as technology advances. They are stored in the file memory, which increases in size one after another to be reused. However, there is not much progress in creating a database of file information that can retrieve those contents at high speed and extract necessary information. That is, the operation of adding a keyword matching the content to each record of the file information and rearranging the keywords so that the keyword search can be performed at a high speed depends on humans and is not easily achieved.
In addition, even if the contents match, there is a problem of variation in terms in which the keyword used in the search does not match the keyword added to the record.

したがって、キーワードを付加したり、並べ替えたり
の作業なしで、ファイルメモリの中のテキスト情報を高
速に検索できないかと、リアルタイムな文字列検索の色
々な技法が研究されていた。
Therefore, various techniques of real-time character string search have been studied to search for text information in a file memory at high speed without adding or rearranging keywords.

一般に、文字列検索装置はキーワードとして与えられ
る検索文字列がテキスト情報のどこに含まれるかを探り
出す機能を持ったものである。この機能を実現するため
には、テキスト情報の中の各文字列を複数個の検索文字
列と一斉に比較照合する文字列照合手段が必須となる。
In general, a character string search device has a function of searching for where a search character string given as a keyword is included in text information. In order to realize this function, a character string collating means for comparing and collating each character string in the text information with a plurality of search character strings simultaneously is essential.

そこで、本願の発明者等は任意長さの文字列を複数個
記憶する連想メモリ部と入力文字列の各文字に対する連
想メモリ部の文字比較結果を並列に受付けて、入力文字
列と記憶文字列間の文字の並び(順序)の比較を行なう
順序ロジック部とで文字列照合を可能とする構成記号列
識別装置の発明について特許出願を行った。名称が異な
るが、以上の装置が文字列検索装置の基本要素となる。
(特開昭60−211539号(特願昭59−068495号)、特開昭
61−253536号(特願昭60−96213号)など) このような文字列検索装置は検索したいキーワード
(検索文字列)の登録した後、被検索テキスト文字列を
入力すると、テキスト文字列が検索文字列のいずれかに
一致した時にマッチ信号を発生し、テキスト文字列のど
の部分がどの検索文字列にマッチしたかを出力する。し
たがって、キーワードのついていないテキスト文字列情
報の全文検索(フルテキストサーチ)が可能である。
Therefore, the inventors of the present application have received in parallel an associative memory unit that stores a plurality of character strings of an arbitrary length and a character comparison result of the associative memory unit for each character of the input character string, and received the input character string and the stored character string. A patent application has been filed for an invention of a constituent symbol string identification device that enables character string collation with a sequence logic unit that compares the character arrangement (order) between characters. Although the names are different, the above devices are the basic elements of the character string search device.
(Japanese Patent Application Laid-Open No. Sho 60-211539 (Japanese Patent Application No. 59-068495),
No. 61-253536 (Japanese Patent Application No. 60-96213) Such a character string search device registers a keyword (search character string) to be searched, and then inputs a search target text character string. Generates a match signal when any one of the strings matches, and outputs which part of the text string matched which search string. Therefore, full-text search (full-text search) of text character string information without a keyword is possible.

すなわち、ファイル記憶されるテキスト文字列情報に
キーワードを付加するなどの煩雑な作業を伴わないで、
ファイル情報をデータベース化できる。
In other words, without complicated work such as adding a keyword to text string information stored in a file,
A database of file information can be created.

しかしながら、全文検索方式による情報検索はキーワ
ードを付加したテキスト文字列情報のキーワード部分の
みの検索で検索条件にマッチしたテキスト文字列情報の
ファイル格納位置をみつけ出すインデスク検索方式に比
べてはるかに長い検索時間を必要とする。というのは、
文字列照合速度がたとえ毎秒1000万字に及んでも、テキ
スト文字列情報の長さが一例として、10億字(1ギガバ
イト)になると、検索時間は全文をサーチするかぎり、
100秒に及んでしまう。1組のキーワード(検索文字
列)での検索だけでも、検索の都度100秒もかかると、
多くの検索要求を次々と受けることができなくなる。
However, the information search by the full-text search method is much longer than the in-desk search method in which only the keyword portion of the text string information to which a keyword is added is used to find the file storage position of the text string information that matches the search condition. Requires search time. I mean,
Even if the string matching speed reaches 10 million characters per second, if the length of the text string information becomes 1 billion characters (1 gigabyte) as an example, the search time will be as long as the entire text is searched.
It takes up to 100 seconds. If it takes only 100 seconds for each search with just one set of keywords (search string),
Many search requests cannot be received one after another.

(発明が解決しようとする課題) 従来の文字列検索装置の検索条件に含まれるキーワー
ド(検索文字列)を文字列照合手段に登録し、そこにテ
キスト情報を入力し、テキスト情報のどの部分(レコー
ド)がどのキーワードを含んでいたかを見つけ、その
後、検索条件式に合ったレコードを決定する。検索条件
式に合っているか否かはソフトウェア(プログラム)に
よって決められる。このために、大量のテキスト情報の
サーチは全文検索方式に従って行うと、検索時間が長す
ぎて、実用にならなかった。
(Problem to be Solved by the Invention) A keyword (search character string) included in the search condition of the conventional character string search device is registered in the character string collation means, and text information is input thereto, and which part of the text information ( Record) and find which keyword it contains, and then determine the record that matches the search criteria. Whether or not the search condition is satisfied is determined by software (program). For this reason, when searching for a large amount of text information in accordance with the full-text search method, the search time is too long to be practical.

この検索時間が長すぎるために、一度のテキスト情報
のサーチに際して、多数の検索要求に含まれるキーワー
ドを文字列照合手段に登録ておく事も考えられたが、テ
キスト情報のどのレコードがどのキーワードを含んだと
いう照合結果情報を複数の検索条件式に照らし合わせる
作業が並列に進まないと、検索終了までのレスポンス時
間が更に長くなるだけであった。すなわち、相異なる検
索条件の検索要求が到着する時に、ソフトウェアの力を
借りないと、そらを順次に高速に処理し、マッチしたレ
コードアドレスを短時間に出力できないという問題があ
った。
Because this search time is too long, it was conceivable to register keywords included in a large number of search requests in the character string matching means in a single search of text information. If the operation of comparing the collation result information including the search result with a plurality of search condition expressions does not proceed in parallel, the response time until the end of the search only further increases. That is, when search requests with different search conditions arrive, without using the power of software, there is a problem that they can be sequentially processed at high speed and a matched record address cannot be output in a short time.

本発明の目的は全文検索方式での上記問題を解決する
文字列検索技術を提供することにある。もう少し具体的
には、検索条件に含まれるキーワードの中で、過去の検
索に使われた事のあるものがあればそれらが新しい検索
条件式を満足するかをソフトウェアの助けを借りずに直
ちに判定し、検索条件に合ったレコードアドレスを出力
し、使われた事のないキーワードが与えられた時にの
み、テキスト情報全文をサーチするようにして平均の検
索時間を短縮できるようにする学習型文字列検索技術を
提供する事にある。
An object of the present invention is to provide a character string search technique that solves the above-described problem in a full-text search method. More specifically, if any of the keywords included in the search conditions have been used in the past search, immediately determine whether they satisfy the new search condition expression without the help of software. A learning type string that outputs a record address that matches the search conditions and searches the entire text information only when a keyword that has never been used is given, so that the average search time can be reduced. To provide search technology.

(課題を解決するための手段) したがって、本発明は、複数検索文字列を記憶し、入
力文字列が複数検索文字列のいずれに一致するかを判別
する文字列照合手段と、どのテキストレコードがどの検
索文字列を含むかを記憶し、前記文字列照合手段の判別
する文字列のクラスコードによってアクセス番地の決ま
る第1記憶手段と、入力文字列間の検索条件論理に従っ
て第1記憶手段の出力の論理処理を行う検索条件照合手
段と、これにつながるエンコード手段と、照合のあった
文字列を含むテキストレコードの格納番地を記憶し、エ
ンコード手段の出力によってアクセス番地の決まる第2
記憶手段と、検索文字列照合手段の入力文字列として検
索文字列がテキスト文字列を選択するスイッチ手段とを
備える事を特徴とする学習型文字列検索装置と、 複数検索文字列を記憶し、入力文字列が複数検索文字
列のいずれに一致するかを判別する文字列照合手段と、
どのテキストレコードがどの検索文字列を含むかを記憶
し、前記文字列照合手段の判別する文字列のクラスコー
ドによってアクセス番地の決まる第1記憶手段と、入力
文字列間の検索条件論理に従って第1記憶手段の出力の
論理処理を行う検索条件照合手段と、これにつながり、
検索条件を満足するテキストレコードを指定するエンコ
ード手段と、前記テキストレコードの実際の格納番地を
記憶し、前記エンコード手段の出力によってアクセス番
地の決まる第2記憶手段と、前記文字列照合手段の入力
文字列として検索文字列かテキスト文字列を選択するス
イッチ手段とを備えた学習型文字列検索装置の制御方式
であって、前記文字列照合手段と第1及び第2記憶手段
にそれぞれ過去の検索文字列、文字列照合結果とテキス
トコレコードの格納番地を初期設定するイニシャライズ
モード、新検索文字列の中に検索文字列に一致しない検
索文字列のあった時に、その検索文字列を文字列照合手
段に追加登録する検索文字列登録モードと、文字列照合
手段にテキスト文字列を入力し、検索文字列を含んだテ
キストレコードをマークして第1記憶手段及び第2記憶
手段に書き込むテキスト文字列検索モードと、検索条件
論理と検索文字列を検索条件照合手段と文字列照合手段
に入力し、前記文字列照合手段の出力によってアクセス
番地の決まる記憶手段の出力を検索条件照合手段で処理
する検索条件照合モードと、その結果を用いて第2記憶
手段から検索条件にマッチしたテキストレコードの格納
番地を出力する検索結果出力モードとを備え、検索文字
列照合モードで全新検索文字列と過去の検索文字列との
マッチがあった時は、検索条件照合モードと検索結果出
力モードに移って、マッチしたテキストレコード格納番
地を出力するように制御し、検索文字列照合モードでマ
ッチのない時は、追加登録モードに移ってミスマッチ文
字列を文字列照合手段に登録し、その後、テキスト文字
列検索モードに移って検索結果を第1記憶手段と第2記
憶手段に書き込み、その後、検索条件照合モードを経
て、検索結果出力モードでマッチしたテキストレコード
の格納番地を出力するように制御する事を特徴とする学
習型文字列検索装置の制御方式である。
(Means for Solving the Problems) Accordingly, the present invention provides a character string collating means for storing a plurality of search character strings and determining which of the plurality of search character strings the input character string matches, A first storage unit for storing which search character string is included and an access address determined by a class code of the character string determined by the character string matching unit; and an output of the first storage unit according to a search condition logic between the input character strings. Search condition collating means for performing the logical processing of the above, encoding means connected thereto, and the storage address of a text record containing the collated character string are stored, and the access address is determined by the output of the encoding means.
A learning type character string search device, characterized by comprising a storage means, and a switch means for selecting a text character string as a search character string as an input character string of the search character string matching means; and storing a plurality of search character strings, String matching means for determining which of the plurality of search strings the input string matches;
A first storage means for storing which text record contains which search character string, an access address determined by a class code of the character string determined by the character string collating means, and a first storage means in accordance with a search condition logic between input character strings. Search condition matching means for performing logical processing of the output of the storage means, and
Encoding means for specifying a text record that satisfies a search condition; second storage means for storing an actual storage address of the text record; an access address determined by an output of the encoding means; and input characters for the character string matching means A control method for a learning-type character string search device, comprising: a switch means for selecting a search character string or a text character string as a string, wherein the character string collation means and first and second storage means respectively store past search characters. Initialize mode for initial setting of the column, string collation result and the storage address of text co-record. When there is a search string that does not match the search string in the new search string, the search string is matched with the string collation means. Enter a text string in the search string registration mode to add and register the text string, and enter a text record that contains the search string A text string search mode for writing to the first storage means and the second storage means, and inputting a search condition logic and a search character string to the search condition matching means and the character string matching means; A search condition matching mode in which the output of the storage means whose access address is determined by the search condition matching means is processed by the search condition matching means, and a search result output mode in which the storage address of the text record matching the search condition is output from the second storage means using the result. When there is a match between all new search strings and past search strings in the search string matching mode, the mode is switched to the search condition matching mode and the search result output mode, and the matched text record storage address is output. If there is no match in the search character string matching mode, the mode shifts to the additional registration mode, where the mismatched character string is registered in the character string matching means. Thereafter, the mode is shifted to the text character string search mode, the search result is written in the first storage means and the second storage means, and then the storage address of the text record matched in the search result output mode is output through the search condition matching mode. This is a control method of a learning-type character string search device characterized in that it is controlled in the following manner.

(作用) 本発明によると、検索文字列を、検索の都度、登録し
直すのでなく、追加登録し、テキスト情報全文のサーチ
によって得た検索結果を検索文字列毎に記憶する学習型
文字列検索装置で、検索条件式の違いによる検索のやり
直しをなくせるので検索時間が短縮でき、その結果とし
毎分当たりの検索サービス要求(トランザクション)の
受付回数が増えるという効果が期待される。
(Operation) According to the present invention, a search-type character string search is performed, in which a search character string is additionally registered instead of being re-registered each time a search is performed, and a search result obtained by searching the entire text information is stored for each search character string. Since the apparatus does not need to redo the search due to the difference in the search condition formula, the search time can be reduced, and as a result, the effect of increasing the number of receptions of search service requests (transactions) per minute is expected.

検索の都度検索条件を設定し直す従来方式では、たと
えば、テキスト情報全文のサーチ時間が1分に及ぶと、
毎分1回の検索要求しか受付けれない。本発明の学習型
文字列検索方式では、過去の検索要求に対する全文サー
チの結果を貯えているために、ほとんどの場合、テキス
ト情報全文のサーチをしないで新しい検索要求に対する
検索結果を直ちに出力できるようになる。ほとんどの場
合に検索時間が1msec以下に減る。検索結果を直ちに出
力できない検索要求の来た時にのみ、検索文字列を追加
登録してテキスト情報全文サーチを行い、その結果を記
憶された検索結果データに加えるので、その時だけは検
索時間が長いが、長期には、次第に、新検索要求に対す
る全文サーチの必要回数が減少する。1/10以下に減れ
ば、その分だけ、毎分の検索要求受付け回数が10倍以上
に増える事になる。
In the conventional method in which the search conditions are reset every time a search is performed, for example, if the search time for the entire text information is one minute,
Only one search request is accepted per minute. In the learning-type character string search method of the present invention, since the results of full-text searches for past search requests are stored, in most cases, the search results for new search requests can be output immediately without searching the full text information. become. In most cases, the search time is reduced to less than 1msec. Only when there is a search request that cannot output the search results immediately, a search character string is additionally registered and a full text information search is performed, and the results are added to the stored search result data. In the long term, the required number of full-text searches for new search requests gradually decreases. If the number is reduced to 1/10 or less, the number of search request acceptances per minute increases by 10 times or more.

(実施例) 第1図は本発明の一実施例であり、基本構成図でもあ
る。文字列照合手段110がスイッチ手段120を介して入力
される検索文字列121を記憶し、次に、テキストファイ
ル装置130から来るテキスト文字列122を受付け、記憶し
た検索文字列121に等しい文字列を含むレコードが来た
時にマッチ信号を出力すると共に、検索文字列の識別コ
ードも出力する。
(Embodiment) FIG. 1 shows an embodiment of the present invention and is also a basic configuration diagram. The character string matching means 110 stores the search character string 121 input via the switch means 120, and then accepts the text character string 122 coming from the text file device 130, and converts the character string equal to the stored search character string 121. A match signal is output when a record that includes the match is received, and an identification code of the search character string is output.

第1記憶手段140は文字列照合手段110の出力する識別
コードによって番地が指定され、マッチ信号によってア
クセスされる。各番地の複数ビットのメモリはマッチし
たレコードのどれがその番地に対応したキーワードを含
んだか否かのマークビットを貯えているものとする。す
なわち、i番地のマッチしたレコードに対応して、i番
目のビット位置のマークビットが“1"なら、そのレコー
ドがi番地に対応したキーワードを含み、“0"なら含ん
でいない事を示す。
An address is designated in the first storage means 140 by the identification code output from the character string collation means 110, and is accessed by a match signal. It is assumed that the multi-bit memory of each address stores a mark bit indicating which of the matched records contains the keyword corresponding to the address. That is, if the mark bit at the i-th bit position is "1" corresponding to the matched record at address i, it indicates that the record includes the keyword corresponding to address i, and if it is "0", it does not.

検索条件照合手段150は、文字列照合手段110の出力す
る識別コードによってアクセス番地の決まる第1記憶手
段140から読み出されるマークビットデータを、順次に
入力端子151から与えられる論理条件に従って処理する
部分である。
The search condition matching means 150 is a part for processing mark bit data read from the first storage means 140 whose access address is determined by the identification code output from the character string matching means 110 according to a logical condition sequentially provided from the input terminal 151. is there.

エンコーダ160は検索条件照合手段150の出力の中の
“1"位置を符号化する部分である。“1"の発生位置が複
数個に及ぶ場合に、番号の低い方から順に符号化するに
は、エンコーダ160にプライオリテイ・エンコード機能
を持たせる必要があるが、それはエンコーダ160にマン
チェスター・チェイン回路を付加するだけで実現でき
る。
The encoder 160 encodes the “1” position in the output of the search condition matching means 150. If the number of occurrences of “1” is more than one and encoding is to be performed in ascending order of number, the encoder 160 must have a priority encoding function. This is because the encoder 160 has a Manchester chain circuit. Can be realized simply by adding

第2記憶手段170はマッチしたレコードのファイル装
置130での格納番地を記憶する部分である。当然、エン
コーダ160の出力によってアクセス番地が決まり、マッ
チしたレコードが複数個の場合にはテキスト情報の始め
の方のレコードの格納番地から順に出力される。
The second storage means 170 is a part for storing the storage address of the matched record in the file device 130. Naturally, the access address is determined by the output of the encoder 160, and when there are a plurality of matching records, the text information is output in order from the storage address of the record at the beginning of the text information.

このような構成を採用する事によって、新検索文字列
を文字列照合手段110に登録し、その後でテキスト情報
を入力して、文字列照合結果の第1記憶手段140への一
時記憶が可能になるのは当然であるが、スイッチ手段12
0を切り替える事で新検索文字列と文字列照合手段110の
中の旧検索文字列との照合も可能になる。旧検索文字列
に対するテキスト情報の検索結果を第1と第2の記憶手
段140,170に記憶しておく事により、新検索文字列がす
べて旧検索文字列に一致するならば、テキスト情報全文
のサーチを行わず、検索のための条件論理を検索条件照
合手段150に入力するだけでマッチレコードの格納番地
を出力できるようになる。新検索文字列が旧検索文字列
に一致しない時にのみ、新検索文字列を文字列照合手段
110に追加登録し、テキスト情報全文のサーチを行なう
事が可能である。故に、検索サービスをすればする程、
文字列照合手段110への旧検索文字列の登録数が増え、
ほとんどの新検索文字列が旧検索文字列に一致するよう
になる。このために、テキスト情報全文サーチを行ずに
マッチレコードを出力できるようになり、性能が上が
る。この事が学習効果を示す。
By adopting such a configuration, a new search character string is registered in the character string matching means 110, and thereafter, text information is input, and the character string matching result can be temporarily stored in the first storage means 140. It goes without saying that the switch means 12
By switching 0, the new search character string can also be compared with the old search character string in the character string matching unit 110. By storing the search results of the text information for the old search character string in the first and second storage means 140 and 170, if all of the new search character strings match the old search character string, the search of the entire text information is performed. Instead, the storage address of the match record can be output only by inputting the condition logic for search to the search condition matching means 150. The new search string is matched to the string only when the new search string does not match the old search string.
It is possible to additionally register in 110 and search the entire text information. Therefore, the more you do a search service,
The number of old search character strings registered in the character string matching unit 110 increases,
Most new search strings will now match the old search string. For this reason, it becomes possible to output a match record without performing a full-text search of text information, thereby improving performance. This shows the learning effect.

この事から、本発明が学習型文字列検索装置と呼ばれ
る。
For this reason, the present invention is called a learning type character string search device.

第2図は第1記憶手段、検索条件照合手段と第2記憶
手段の一実施例を示すと共に、第1記憶手段と第2記憶
手段の記憶内容の一例を示している。第1図と同じ番号
のものは第1図と同じ名称のものとする。
FIG. 2 shows an embodiment of the first storage means, the search condition matching means and the second storage means, and also shows an example of the contents stored in the first storage means and the second storage means. Those having the same numbers as those in FIG. 1 have the same names as those in FIG.

第1記憶手段140のXアドレスレコーダ141には入力端
子119を通して文字列照合手段110の出力する検索文字列
の識別コードが入力され、Yアドレスデコーダ142には
アドレスカウンタ143が接続されている。テキスト情報
の全文サーチが始まる直前にアドレスカウンタ143の内
容は0(ゼロ)にセットされ、フリップ・フロップ144
からの立下り信号によって内容がカウントアップされ
る。フリップ・フロップ144には文字列照合手段110から
入力端子118を通してマッチ信号パルスが来て、内容を
ハイレベルにする。1つのレコードの中でマッチパルス
が2つ以上でも同じである。入力端子145にはテキスト
情報のレコード・クロック信号が与えられる。レコード
が変わる都度、レコード・クロック信号(RCLK)がフリ
ップ・クロップ144の内容をローレベルに下げる。その
時に、アドレスカウンタ143の内容を+1だけ増加させ
る。以下では、まず始めにテキスト情報全文検索の結果
が第1と第2の記憶手段によってどのように貯えられる
かを説明する。
The identification code of the search character string output from the character string matching means 110 is input to the X address recorder 141 of the first storage means 140 through the input terminal 119, and the Y address decoder 142 is connected to the address counter 143. Immediately before the start of the full text search for text information, the content of the address counter 143 is set to 0 (zero), and the flip-flop 144
The content is counted up by the falling signal from. The flip-flop 144 receives a match signal pulse from the character string collation means 110 through the input terminal 118, and changes the content to a high level. The same applies to two or more match pulses in one record. The input terminal 145 is supplied with a record clock signal of text information. Each time a record changes, the record clock signal (RCLK) lowers the contents of flip crop 144 to a low level. At that time, the content of the address counter 143 is increased by +1. Hereinafter, first, how the results of the text information full-text search are stored by the first and second storage units will be described.

第1記憶手段140はテキスト情報全文サーチの期間は
書き込みモードにセットされ、文字列照合手段110から
入力端子118,119を通してマッチ信号と検索文字列の識
別コードが入力される。その識別コードで第1記憶手段
140のアクセス番地が決まる。検索文字列Bに対するマ
ッチ信号が39番目のレコードで始めて発生したとする
と、そのマッチ信号によって第1記憶手段140の第2行
目と第1列目(左端の列)が選択されて、そこにマーク
ビット“1"が書き込まれる。合わせて第2記憶手段170
の第1列目にアドレスデコーダ171とR/W回路172を介し
てマッチしたレコードのアドレスデータが書き込まれ
る。すなわち、39番目のレコードが第1番目にマッチの
あったレコードであれば、39が第2記憶手段170の第1
番地に書き込まれる。1つのレコードの中でいくつかの
検索文字列がマッチすると、第1記憶手段140の中の1
つの列のいくつかの番地にマークビット“1"が書き込ま
れる。
The first storage means 140 is set to the writing mode during the text information full-text search, and the match signal and the identification code of the search character string are input from the character string collation means 110 through the input terminals 118 and 119. The first storage means uses the identification code.
140 access addresses are determined. Assuming that a match signal for the search character string B occurs for the first time in the 39th record, the second signal and the first column (the leftmost column) of the first storage means 140 are selected by the match signal, and are selected there. The mark bit “1” is written. In addition, the second storage means 170
In the first column, the address data of the matched record is written via the address decoder 171 and the R / W circuit 172. In other words, if the 39th record is the first matched record, 39 is the first match in the second storage means 170.
It is written to the address. When several search character strings match in one record, one of the first storage means 140
The mark bit “1” is written to several addresses in one column.

テキスト情報のレコードが切り替わる時(入力端子14
5からレコードクロック信号が与えられる時)にアドレ
スカウンタ143の内容が1つ増え、したがって、右隣の
列がYアドレスデコーダ142によって選択される。しか
し、入力端子118からマッチ信号が来ないと、その列に
はマークビットが書き込まれない。次のレコードクロッ
ク信号がフリップフロップ144に与えられても、その後
にマッチ信号が発生しないと、フリップ・フロップ144
のレベルが変化しないのでアドレスカウンタ143の内容
は増えて行かない。したがって、Yアドレスデコーダ14
2は同一列を選択し続ける。
When the record of text information switches (input terminal 14
When a record clock signal is applied from 5), the contents of the address counter 143 are increased by one, so that the column on the right is selected by the Y address decoder 142. However, if no match signal is received from input terminal 118, no mark bit is written in that column. Even if the next record clock signal is applied to the flip-flop 144 and no match signal is generated thereafter, the flip-flop 144
Does not change, the content of the address counter 143 does not increase. Therefore, the Y address decoder 14
2 keeps selecting the same row.

マッチ信号の発生したレコードが39番目の後、47番
目、48番目、91番目、140番目、275番目、302番目、…
だとすると、第2記憶手段170には図中に示したように
アドレスデコーダ171とR/W回路172を介して1番地から
順に39,47,48,91,140,275,302,…が書き込まれる。39番
目のレコードで検索文字列BとCが含まれ、47番目のレ
コードで検索文字列Aだけが含まれ、48番目レコードで
AとDが含まれ、同様に、91番目レコードにA,BとCが
含まれ、140番目レコードでCとDが含まれ、275番目レ
コードでAとBが含まれ、302番目レコードにA,BとDが
含まれたとすると、第1記憶手段140では、それぞれ、
1列目に0110‥が、2列目に1000‥が、3列目に1001‥
が4列目に1110‥が、5列目に0011‥が、6列目に1100
‥が、7列目に1101‥が書き込まれることになる。検索
検索結果は以上のようにマークビットとマッチレコード
のアドレスデータとに分けられて第1と第2の記憶手段
に貯えられる。
After the 39th record where the match signal occurred, 47th, 48th, 91st, 140th, 275th, 302nd, ...
In this case, 39, 47, 48, 91, 140, 275, 302,... Are written in the second storage means 170 in order from address 1 via the address decoder 171 and the R / W circuit 172 as shown in the figure. The 39th record contains search strings B and C, the 47th record contains only search string A, the 48th record contains A and D, and similarly, the 91st record contains A, B If the 140th record contains C and D, the 275th record contains A and B, and the 302nd record contains A, B and D, the first storage means 140 Respectively,
0110 ‥ in the first row, 1000 ‥ in the second row, 1001 ‥ in the third row
Is 1110 ‥ in the fourth row, 0011 ‥ in the fifth row, and 1100 ‥ in the sixth row.
110 is written in the seventh column as 1101 ‥. As described above, the search result is divided into the mark bit and the address data of the match record and stored in the first and second storage means.

次に、検索条件照合手段150について第2図で説明す
る。検索条件式で示す条件論理(たとえばオア論理、ノ
ア論理、アンド論理、ナンド論理など)が入力端子152
から与えられると、論理演算ユニット155は第1記憶手
段140の読出し信号レジスタ146の内容と処理結果のレジ
スタ156の内容との間の論理演算処理を行って、その結
果をレジスタ156に残す。論理演算ユニット155の処理機
能は入力端子152から与えられる条件論理によって変わ
る。入力端子151には入力端子118に与えられるマッチ信
号より時間遅れのあるタイミングで演算処理結果のレジ
スタ156へのセットパルスが与えられるとする。
Next, the search condition matching means 150 will be described with reference to FIG. Conditional logic (eg, OR logic, NOR logic, AND logic, NAND logic, etc.) indicated by the search condition expression is input terminal 152.
, The logical operation unit 155 performs a logical operation between the content of the read signal register 146 of the first storage means 140 and the content of the processing result register 156, and leaves the result in the register 156. The processing function of the logical operation unit 155 changes according to the conditional logic given from the input terminal 152. It is assumed that the input terminal 151 is supplied with a set pulse to the register 156 on the result of the arithmetic processing at a timing with a time delay from the match signal supplied to the input terminal 118.

入力端118からマッチ信号パルスが来ると、第1記憶
手段140の読み出し信号がレジスタ146に設定され、論理
演算ユニット155がレジスタ146とレジスタ156の内容に
対して論理演算を開始する。プライオリティエンコーダ
160は検索条件式の最後の記号が入力された時に、入力
端子161から与えられる検索結果トランスファパルスに
従って、第2記憶手段170のアドレスデコーダ171に選択
番地を与える。マッチしたレコードアドレスが複数個の
時には、選択番地を小さい方から順に出力する。
When a match signal pulse comes from the input terminal 118, a read signal of the first storage means 140 is set in the register 146, and the logical operation unit 155 starts logical operation on the contents of the registers 146 and 156. Priority encoder
Reference numeral 160 designates a selected address to the address decoder 171 of the second storage means 170 in accordance with the search result transfer pulse provided from the input terminal 161 when the last symbol of the search condition expression is input. When there are a plurality of matched record addresses, the selected addresses are output in ascending order.

たとえば、検索条件式が(A*+C)*Dであると
すれば、それは+A)*)+C)*D)=に変換され
て、*や+などの条件論理が入力端子152に入力され
る。始めに、文字列A,B,C,Dは文字列照合手段110に入力
され、その後の右カッコ[)]が論理演算処理結果のレ
ジスタ156へのセットパルスとして入力端子151に入力さ
れる。レジスタ156の初期値は当然オール0(ゼロ)で
ある。
For example, if the search condition expression is (A * + C) * D, it is converted to + A) *) + C) * D) =, and conditional logic such as * or + is input to the input terminal 152. . First, the character strings A, B, C, and D are input to the character string matching means 110, and the subsequent right parenthesis []] is input to the input terminal 151 as a set pulse to the register 156 on the result of the logical operation processing. The initial value of the register 156 is naturally all 0 (zero).

入力端子152に与えられる検索条件論理が、+,*,
+−,*−であれば、それぞれ論理演算ユニット155は
オアゲート、アンドゲート、ノアゲート、ナンドゲート
として働く。
The search condition logic given to the input terminal 152 is +, *,
If + − and * −, the logical operation unit 155 functions as an OR gate, an AND gate, a NOR gate, and a NAND gate, respectively.

第1の検索文字列Aが入ると、マッチ信号パルスによ
って第1記憶手段140の第1行目の内容0111011‥が読み
出され、レジスタ146にセットされる。セットされると
同時に、レジスタ146と156の内容のオアゲートによる論
理演算が実行される。入力端子151からセットパルスが
与えられると、レジスタ146の156の内容のオア論理演算
結果がレジスタ156にセットされる。
When the first search character string A is entered, the contents 0111011 # of the first row of the first storage means 140 are read out by the match signal pulse and set in the register 146. Simultaneously with the setting, the logical operation by the OR gate of the contents of the registers 146 and 156 is executed. When a set pulse is supplied from the input terminal 151, the result of the OR operation of the contents of 156 of the register 146 is set in the register 156.

その後、*−(NAND)が入力端子152に与えられ、第
2の検索文字列Bが入力されると、第1記憶手段140の
第2行目の内容1001011‥がレジスタ146にセットされ
る。セットが終わると、レジスタ146の内容のノット
(補)とレジスタ156の内容との論理積の演算が実行さ
れる。次の右カッコ入力時に、演算結果がレジスタ156
にセットされる。故に、+A)*)か入力され終わっ
た時点で、レジスタ156の内容は0110000‥になる。
Thereafter, when *-(NAND) is applied to the input terminal 152 and the second search character string B is input, the content 1001011 # of the second line of the first storage means 140 is set in the register 146. When the setting is completed, a logical AND operation of the knot (complement) of the contents of the register 146 and the contents of the register 156 is executed. At the next right parenthesis input, the operation result is stored in register 156.
Is set to Therefore, when + A) *) has been input, the contents of the register 156 become 0110000 ‥.

次に、入力端子152から+の条件論理が指定され、検
索文字列Cが文字列照合手段110に入力されると、第1
記憶手段140の第3行目の内容1001100‥がレジスタ146
にセットされ、その内容とレジスタ156の内容0110000と
の論理和が論理演算ユニット155で実行され、右カッコ
入力時に、論理演算ユニット155の演算結果がレジスタ1
56にセットされる。レジスタ156の内容は1111100‥に変
わる。
Next, when a conditional logic of + is specified from the input terminal 152 and the search character string C is input to the character string matching means 110, the first
The contents 1001100 # on the third line of the storage means 140 are stored in the register 146.
And the logical sum of the content and the content 0110000 of the register 156 is executed by the logical operation unit 155. When the right parenthesis is input, the operation result of the logical operation unit 155 is stored in the register 1
Set to 56. The contents of register 156 changes to 1111100 °.

最後に、入力端子152から*の条件論理が指定され、
検索文字列Dが文字列照合手段110に入力されると、第
1記憶手段140の第4行目に内容0010101‥がレジスタ14
6にセットされ、その内容とレジスタ156の内容1111100
‥との論理積が論理演算ユニット155で実行される。そ
の後の右カッコ入力時に、演算ユニット155の演算結果
がレジスタ156にセットされる。その内容は0010100‥と
なる。
Finally, the conditional logic of * is specified from the input terminal 152,
When the search character string D is input to the character string matching means 110, the contents 0010101 # are stored in the register 14 in the fourth line of the first storage means 140.
6 and its contents and the contents of register 156 1111100
The logical product with ‥ is executed by the logical operation unit 155. When the subsequent right parenthesis is input, the operation result of the operation unit 155 is set in the register 156. Its content is 0010100 ‥.

この結果は最後の条件論理=が入力された時に、入力
端子161にトランスファパルスが与えられ、プライオリ
ティ・エンコーダ160と第2記憶手段170を介してマッチ
・レコードのアドレスデータ(47と91)に変換され、4
7,91の順に出力される。
The result is that, when the last conditional logic is input, a transfer pulse is given to the input terminal 161 and converted to match record address data (47 and 91) via the priority encoder 160 and the second storage means 170. 4
Output in order of 7,91.

第2図はテキスト情報の全文検索の結果を第1記憶手
段140と第2記憶手段170に分けて、各検索文字列と対応
がつくように記憶できる事を示すと共に、新しい検索条
件が与えられた時に、以上の検索結果を用いて、マッチ
したレコードのアドレスデータを出力できる事を示し
た。もし新しい検索条件を満足するレコードアドレスデ
ータが求まらない時には、ミスマッチのあった検索文字
列を文字列照合手段110に追加登録して、テキスト情報
の全文サーチを行う必要がある。さらに、新しい検索文
字列に対する検索結果を第1記憶手段140と第2記憶手
段170へ記憶する必要がある。しかしながら、新検索文
字列を文字列照合手段110に追加登録した後でテキスト
情報全文をサーチすると、全検索文字列に対する検索結
果が求まる。この事は第1と第2記憶手段における検索
結果の記憶は追加する事でなく、最新のものを書き込め
る事を意味する。すなわち、テキスト情報に変更や追加
があってもこの時に修正が行われる。検索結果が単に追
加でなく、全文サーチの都度新しいものに書き替えられ
る事は実用的であり、検索時間の増加を伴わない。
FIG. 2 shows that the result of full-text search of text information can be divided into first storage means 140 and second storage means 170 and stored so as to be associated with each search character string, and new search conditions are given. At the time, it was shown that the address data of the matched record could be output using the above search results. If record address data that satisfies the new search condition cannot be found, it is necessary to additionally register the mismatched search character string in the character string matching unit 110 and perform a full-text search of text information. Further, it is necessary to store the search result for the new search character string in the first storage means 140 and the second storage means 170. However, if the entire text information is searched after the new search character string is additionally registered in the character string collation unit 110, a search result for the entire search character string is obtained. This means that the storage of the search results in the first and second storage means is not added, but the latest one can be written. That is, even if the text information is changed or added, the text information is corrected at this time. It is practical that the search result is not simply added but rewritten with a new one every time a full-text search is performed, and the search time is not increased.

第3図は文字列照合手段の一実施例の説明図である。
最もスマートと思われる例として、連想メモリ310の出
力段に順序論理回路320とエンコーダ330を付加したもの
をとり上げている。連想メモリ310は検索文字列を記憶
する。すなわち、検索文字列の各文字コードを先頭から
番地順に貯える。i番地にi番地の文字コードXiを記憶
した連想メモリに対して、入力テキスト文字列の時刻t
で文字コードX(t)がXiに等しい時にはi行目の比較
器316からyi=“1"が出力される。Xiに等しくない時に
はyi=“0"が出力される。
FIG. 3 is an explanatory diagram of one embodiment of the character string collating means.
As an example that seems to be the smartest, a case where a sequential logic circuit 320 and an encoder 330 are added to the output stage of the associative memory 310 is described. The associative memory 310 stores the search character string. That is, each character code of the search character string is stored in the address order from the top. In the associative memory in which the character code Xi of the i- th address is stored at the i-th address, the time t of the input text character string is stored.
When the character code X (t) is equal to X i , the comparator 316 on the i -th row outputs y i = “1”. Y i = "0" is output when not equal to X i.

順序論理回路320の中にはフラグビットのフリップフ
ロップFFiのアレイがANDゲート325によって連結されて
いて、i番目のANDゲート325にはFFi-1の内容(フラグ
ビット)Si-1と連想メモリ310のi行目比較器315の出力
yiが入力されている。そして、i番目のANDゲート325の
出力がFFiにセットされ、その内容Siが1ということは
テキスト文字列が検索文字列のi番目の文字まで一致し
てきた事を意味する。FF1には検索文字列の1番目の文
字がテキスト文字列に含まれて入力された時に“1"に設
定される。検索文字列の長さがnであるとするとSn
“1"になるか否かをチェックする事によって文字列の一
致があったか否かを判別できる。
Order in the logic circuit 320 array of flip-flop FF i flag bits are connected by AND gates 325, i-th FF i-1 content (flag bits) to the AND gate 325 and S i-1 Output of the i-th row comparator 315 of the associative memory 310
y i has been entered. Then, the output of the i-th AND gate 325 is set to FF i , and the content S i being 1 means that the text character string matches the i-th character of the search character string. FF 1 is set to “1” when the first character of the search character string is included in the text character string and input. The length of the search string can determine whether a match string by the S n When an n checks whether becomes "1".

第3図では検索文字列が可変長である場合にうまく対
応できるように、デリミタ・フリップフロップDFiが導
入されている。検索文字列のスタート位置を任意にする
と、エンコーダ330の入力本数が多すぎるために、4行
置きに検索文字列の登録位置を指定できる。そのため
に、DF0,DF4,DF8,DF12とDF16にフラグビットのイニシャ
ルセットを行うデリミタ信号を設定できるようにしてい
る。
As in the FIG. 3 can cope well when the search string is a variable length, delimiter flip-flop DF i is introduced. If the start position of the search character string is set arbitrarily, the registration position of the search character string can be specified every fourth line because the number of inputs to the encoder 330 is too large. For this purpose, a delimiter signal for initial setting of a flag bit can be set in DF 0 , DF 4 , DF 8 , DF 12 and DF 16 .

連想メモリ310の中には1例として、ABCD,CAT,DONKEY
の3つの検索文字列の登録例が示されている。4文字に
等しい場合、それより短い場合と、4文字より長い場合
にデリミッタ信号どう設定するかというと、一般に、検
索文字列の登録の始まりの行と終わりの行のデリミッタ
・フリップフロップに“1"をセットする。図中ではわか
りやすいように、“1"のセットされたDFに斜線を施し
た。すなわち、ABCDに対して、DF0とDF4に“1"をセット
し、CATに対してDF4とDF7に“1"をセットし、DONKEYに
対してDF8とDF14に“1"をセットしてある。
In the associative memory 310, for example, ABCD, CAT, DONKEY
The registration example of the three search character strings is shown. When the delimiter signal is set to be equal to, shorter than 4 characters, and longer than 4 characters, generally, "1" is set in the delimiter flip-flop of the start line and the end line of the search character string registration. "Is set. For clarity in the figure, the DF with "1" set is shaded. That is, DF 0 and DF 4 are set to “1” for ABCD, DF 4 and DF 7 are set to “1” for CAT, and “1” is set for DF 8 and DF 14 for DONKEY. Is set.

始まりの行のデリミッタ・フリップフロップDF0,DF4,
DF8の“1"はフラグビットフリップ・フロップFF0,FF4,F
F8の出力信号に論理的に加算しされる。それによって、
フラグビットのイニシャルセットが行われる。検索文字
列の最後を示す行のデリミタ・フリップフロップDF4,DF
7,DF14はフラグビットがFF4,FF7,FF14に到達したか否か
をORゲートOG1,OG2,OG4を通してエンコーダ330に伝達す
るために使われる。フラグビットがFF4,FF7,FF14に到達
するという事によって、テキスト文字列が検索文字列に
対して始めから終わりまで一致した事を示す。故に、OR
ゲートOF1,OG2,OG3,OG4の中のいずれかで“1"が出力さ
れる事は文字列マッチのあった事を意味する。ここに、
DONKEYを登録した場合に、DONKの4文字分の照合結果が
OG3から出力されないのは、DF12に“1"をセットしてい
ないからである。つまり、DONKEYの最後まで一致しない
時にはマッチ信号を出さないようにDF9からDF13までを
“0"にしている。
Delimiter flip-flops DF 0 , DF 4 ,
“1” of DF 8 is a flag bit flip-flop FF 0 , FF 4 , F
Logically it is added to the output signal of the F 8. Thereby,
Initial setting of the flag bit is performed. Delimiter flip-flop DF 4 , DF on the line indicating the end of the search string
7 and DF 14 are used to transmit whether or not the flag bits have reached FF 4 , FF 7 and FF 14 to the encoder 330 through the OR gates OG 1 , OG 2 and OG 4 . The fact that the flag bits reach FF 4 , FF 7 , and FF 14 indicates that the text string matches the search string from beginning to end. Therefore, OR
Outputting “1” at any of the gates OF 1 , OG 2 , OG 3 , and OG 4 means that there is a character string match. here,
When DONKEY is registered, the matching result of 4 characters of DONK
OG 3 is not output because DF 12 is not set to “1”. That is, to from DF 9 so as not to issue a match signal to DF 13 "0" when they do not match until the end of DONKEY.

このように、文字列照合回路は連想メモリ310はデリ
ミタ・フリップフロップ付きの順序論理回路320とエン
コーダ330を付加する事によって実現できる。マッチ信
号はOG1,OG2,…,OG4,…のオアゲートの出力の論理和の
形で出力端子331から、また入力テキスト文字列がどの
検索文字列に一致したかを示すクラスコードが出力端子
332から送り出される。テキスト文字列の各成分が連想
メモリ310に入力されると、そこに貯えられた検索文字
列の全文字コードと一斉に比較が行われ、入力クロック
の周期内にエンコーダ330から応答結果が出力される。
As described above, the character string matching circuit can be realized by adding the sequential logic circuit 320 having the delimiter flip-flop and the encoder 330 to the associative memory 310. The match signal is output from the output terminal 331 in the form of the OR of the outputs of the OR gates of OG 1 , OG 2 ,…, OG 4 ,… and a class code indicating which search string the input text string matched is output. Terminal
Sent from 332. When each component of the text string is input to the associative memory 310, it is simultaneously compared with all the character codes of the search string stored therein, and a response result is output from the encoder 330 within the cycle of the input clock. You.

第1図から第3図までの説明で文字列照合手段110の
中の連想メモリ310、第1記憶手段140、第2記憶手段17
0はそれぞれ文字コード、検索結果のマークビットやマ
ッチしたレコードのアドレスデータを随時に高速に書き
込める事、それ等を高速に読み出せる事を前提とした
が、代わりに電源停止の時に記憶内容が削減してしま
う。したがって、連想メモリ310の内容、第1、第2の
記憶手段の記憶内容はテキストファイル装置130の一部
に格納され、電源投入時に、テキストファイル装置130
からこれらのメモリに記憶内容がロードされる事が望ま
しい。そのためにも、第1図の学習型文字列検索装置に
は文字列照合手段110、第1記憶手段140や第2記憶手段
170に過去の検索条件や検索結果のデータを初期設定す
るイニシャライスモードが用意されていなければならな
い。
1 to 3, the associative memory 310, the first storage means 140, and the second storage means 17 in the character string collation means 110 are described.
0 assumes that the character code, mark bit of the search result, and the address data of the matched record can be written at high speed at any time, and that they can be read at high speed. Resulting in. Therefore, the contents of the associative memory 310 and the contents of the first and second storage means are stored in a part of the text file device 130, and when the power is turned on, the text file device 130
It is desirable that the stored contents be loaded into these memories. For this purpose, the learning-type character string search apparatus shown in FIG. 1 includes character string matching means 110, first storage means 140, and second storage means.
An initialization mode for initial setting of past search conditions and search result data must be prepared in 170.

イニシャライズモードでは、まず、過去に登録された
検索文字列がリセット後の文字列照合手段110に順次に
登録され、次に、各検索文字列に対するマークビットデ
ータが第1記憶手段140に1行目から順に書き込まれ
る。第2図の第1記憶手段140のアドレスカウンタ143は
各行のマークビットの個数までカウントするとゼロに戻
るようにセットされ、過去の検索結果に相当するデータ
ビットを順次に書き込んでいく。
In the initialization mode, first, the search character strings registered in the past are sequentially registered in the character string collating means 110 after reset, and then the mark bit data for each search character string is stored in the first storage means 140 in the first line. Are written in order from. The address counter 143 of the first storage means 140 in FIG. 2 is set so as to return to zero when counting up to the number of mark bits in each row, and sequentially writes data bits corresponding to past search results.

すなわち、第2図における書き込みデータスイッチ14
7は入力端子148からマークビット“1"を、入力端子149
からデータビットを、第1記憶手段140への書き込み信
号として受け付ける部分である。イニシャライズモード
の時には入力端子149側の方にスイッチが倒れ、テキス
ト情報全文検索時は入力端子148側の方にスイッチが倒
れる。
That is, the write data switch 14 in FIG.
7 sets the mark bit “1” from the input terminal 148 to the input terminal 149
This is a portion that receives data bits from the first storage unit 140 as a write signal. In the initialization mode, the switch falls toward the input terminal 149, and when searching for full text information, the switch falls toward the input terminal 148.

第2記憶手段170への過去の検索でマッチしたレコー
ドアドレスに関するテータの書き込みは入力端子173か
らR/W(read/Write)回路172を介して行われ、書き込み
アドレスはアドレスカウンタ175からオアゲート176を介
して与えられる。アドレスカウンタ175の内容は入力端
子174から与えられる書き込みクロック信号によってイ
ンクリメント(+1ずつ増や)される。
Writing of data relating to the record address matched in the past search to the second storage means 170 is performed from the input terminal 173 through the R / W (read / Write) circuit 172, and the write address is transmitted from the address counter 175 to the OR gate 176. Given through. The contents of the address counter 175 are incremented (increased by +1) by a write clock signal supplied from the input terminal 174.

以上によって、文字列照合手段110の連想メモリ310、
第1記憶手段140、第2記憶手段170への初期状態(過去
の検索条件と検索結果)の設定が達成される。
As described above, the associative memory 310 of the character string matching unit 110,
The setting of the initial state (past search conditions and search results) in the first storage means 140 and the second storage means 170 is achieved.

第1図の学習型文字列検索装置はイニシャライズモー
ドの他に、新検索文字列が過去の検索文字列(連想メモ
リ310に登録ずみの文字列)に一致しない時に新検索文
字列を文字列照合手段110の連想メモリ310に追加登録す
る検索文字列登録モードと、その後で、文字列照合手段
110にテキストファイル装置130からテキスト文字列を入
力し、検索文字列を含んだテキストレコードをマークし
て第1記憶手段140と第2記憶手段170に検索結果を書き
込む(または検索結果の記憶内容を書き直す)テキスト
文字列検索モードと、検索条件論理と検索文字列をそれ
ぞれ検索条件照合手段150と文字列照合手段110を入力
し、文字列照合手段110の出力によってアクセス番地の
決まる第1記憶手段140の出力を検索条件照合手段で処
理する検索条件照合モードと、その結果を用いて第2記
憶手段170から検索条件にマッチしたテキストレコード
の格納番地を出力する検索結果出力モードとがある。各
モードでの動作はすでに説明した通りである。
In addition to the initialization mode, the learning-type character string search device shown in FIG. 1 performs character string collation on a new search character string when the new search character string does not match a past search character string (a character string registered in the associative memory 310). Search character string registration mode for additionally registering in the associative memory 310 of the means 110, and thereafter, the character string matching means
A text character string is input to the text file device 130 from the text file device 130, a text record including the search character string is marked, and the search result is written to the first storage means 140 and the second storage means 170 (or the storage content of the search result is (Rewrite) Text string search mode, search condition logic and search character string are input to search condition matching means 150 and character string matching means 110, respectively, and first storage means 140 whose access address is determined by the output of character string matching means 110 And a search result output mode in which the storage address of a text record matching the search condition is output from the second storage means 170 using the result. The operation in each mode is as described above.

これらの動作モードによって学習型文字列検索装置は
過去の検索結果を利用してテキスト情報全文サーチの回
数を大幅に削減できる。そのためには、まず、電源投入
後にイニシャライズモードでメモリへのデータの初期設
定が行われる。次に新検索条件が検索結果出力モードで
与えられる。その時の検索文字列はA,B,CとかDではな
く、具体的にはそれぞれ、Magnetic,Memory,Materialと
かThin−filmのように与えられ、検索条件式も単に+
A)*)+C)*D)=でなく、+Magnetic)*▲
▼)+Material)*Thin−film)=のように
与えられる。条件論理は検索条件照合手段150へ、文字
列の方は文字列照合手段110に与えられ、その出力でア
クセス番地の決まる第1記憶手段140の出力が論理演算
ユニット155で処理される。そしてカット“)”記号の
入力時にレジスタ156にセットされる。そして、=(イ
コール)記号が入力されると、レジスタ156の内容がエ
ンコードされ、第2記憶手段170からR/W回路172を介し
てマッチレコードの格納番地(レコードアドレス)が出
力される。
With these operation modes, the learning-type character string search apparatus can greatly reduce the number of times of full-text search of text information using past search results. For that purpose, first, after the power is turned on, data is initialized in the memory in the initialization mode. Next, new search conditions are given in the search result output mode. The search character string at that time is not A, B, C or D, but is specifically given as Magnetic, Memory, Material or Thin-film, respectively, and the search condition expression is simply +
A) *) + C) * D) =, not + Magnetic) * ▲
▼) + Material) * Thin-film) = The condition logic is given to the search condition matching means 150, and the character string is given to the character string matching means 110, and the output of the first storage means 140 whose access address is determined by the output is processed by the logical operation unit 155. Then, it is set in the register 156 when the cut ")" symbol is input. When the = (equal) symbol is input, the contents of the register 156 are encoded, and the storage address (record address) of the match record is output from the second storage means 170 via the R / W circuit 172.

もし新検索条件が検索結果出力モードで入力されてい
る時に、文字列照合手段110がミスマッチ信号を発生す
る時は、その検索文字列をホストコンピュータ側のメモ
リに一時貯え、レジスタ146の内容をオール“1"にして
から、次の検索文字列の入力を受付け、ミスマッチがな
ければ、そのまま検索条件の照合を続ける。ミスマッチ
信号発生の都度、新検索文字列を一時的にホストコンピ
ュータ側のメモリに待避させる。検索条件の照合の終わ
った時点で検索結果を第2記憶手段170から出力するこ
とは可能であるが、ミスマッチの検索文字列を無視した
ものとなっている。1つでも新検索文字列が過去の検索
文字列にマッチすると、その文字列を含むテキストレコ
ードアドレスが求まり、検索対象に関する速報を提供す
ることができる。
If the character string matching means 110 generates a mismatch signal when a new search condition is input in the search result output mode, the search character string is temporarily stored in the memory of the host computer and the contents of the register 146 are all After "1", the input of the next search character string is accepted, and if there is no mismatch, the search condition matching is continued as it is. Each time a mismatch signal is generated, the new search character string is temporarily saved in the memory of the host computer. Although it is possible to output the search result from the second storage means 170 at the end of the search condition collation, the mismatched search character string is ignored. If at least one new search character string matches a past search character string, a text record address including the character string is obtained, and a flash report on the search target can be provided.

次に、検索文字列登録モードに設定して、ホストコン
ピュータ側のメモリに一時的に待避させられたミスマッ
チの検索文字列を文字列照合手段110に追加登録する
と、その後は、テキスト文字列検索、モードによる全文
サーチで検索結果を第1記憶手段140と第2記憶手段170
に書き込める。その後、検索条件照合モードを経て検索
結果出力モードに戻ると、新検索条件にマッチしたレコ
ードアドレスが求まる。このような制御方式を採用する
と、新検索文字列が過去の検索文字列一致する限り、検
索条件が違っていても、テキスト情報の全文サーチなし
で新検索条件にマッチしたレコードアドレスを出力でき
ることになる。
Next, the search character string registration mode is set, and the mismatched search character string temporarily saved in the memory of the host computer is additionally registered in the character string matching unit 110. Search results in full-text search by mode are stored in first storage means 140 and second storage means 170
Can be written to. Thereafter, when returning to the search result output mode via the search condition matching mode, a record address matching the new search condition is obtained. By adopting such a control method, as long as the new search string matches the past search string, even if the search conditions are different, it is possible to output a record address that matches the new search conditions without performing a full-text search of text information. Become.

(発明の効果) 以上のように新検索条件の検索文字列が過去の検索文
字列に等しくても検索条件式が異なるために、過去の検
索結果を利用できず、新たにテキスト情報の全文サーチ
を必要とするために検索要求の受付速度の高くならない
問題が本発明によれば容易に解決される。
(Effect of the Invention) As described above, even if the search character string of the new search condition is equal to the past search character string, the search condition expression is different, so that the past search result cannot be used, and a new full-text search of text information is performed. According to the present invention, the problem that the reception speed of the search request does not increase due to the need for the search request can be easily solved.

学習型文字列検索装置では、検索要求受付が増えれ
ば、増えるほど、多くの検索文字列を文字列照合手段11
0に追加登録することが積み重なるために、新しい検索
条件に含まれるほとんどの検索文字列が文字列照合手段
110にすでに登録された検索文字列に一致するようにな
る。したがって、90%の検索文字列がマッチする(ヒッ
ト率90%)と考えると、全文サーチは10回の検索要求の
中で1回ですみ、99%がマッチすると、全文サーチは10
0回の検索要求に対して1回ですむ。テキスト情報全文
サーチに1分を要していたとすると、従来ならば、毎分
1階しか検索要求を受け付けられなかったが、本発明に
よれば、毎分10回とか100回も検索要求を受付できるよ
うになると言える。ヒット率は検索要求の条件の内容に
よるため、一概に高くなるとは言えないが、パーソナル
なテキストデータベースの検索においてはかなりの効果
が期待される。
In the learning-type character string search device, as the number of search request receptions increases, the more search character strings
Most of the search strings included in the new search conditions are string matching
It will match the search string already registered in 110. Therefore, assuming that 90% of the search character strings match (hit rate 90%), the full-text search only needs to be performed once out of 10 search requests.
It only needs to be done once for 0 search requests. If it took 1 minute to search the text information full text, the search request could only be received on the first floor per minute in the past, but according to the present invention, the search request was received 10 or 100 times per minute. It can be said that it will be possible. The hit rate depends on the contents of the search request condition, and cannot be said to be unconditionally high. However, a considerable effect is expected in the search of a personal text database.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の一実施例を示す図、第2図は本発明の
第1記憶手段、検索条件照合手段と第2記憶手段の一実
施例を示す図、第3図は本発明の文字列照合手段の一実
施例の説明図である。 第1図において、110……文字列照合手段、120……文字
列スイッチ、140,170……記憶手段、150……検索条件照
合手段、第2図において、118……文字列マッチ信号、1
19……検索文字列識別コード入力端子、141,142……ア
ドレス・デコーダ、143……アドレスカウンタ、144……
フリップ・フロップ、145……マッチレコード・クロッ
ク入力端子、146……読出しデータ・レジスタ、147……
書き込みデータスイッチ、148……マークビット入力端
子、149……検索結果データ入力端子、151……セットパ
ルス入力端子、152……検索条件論理入力端子、156……
検索条件照合結果レジスタ、160……プライオリティ・
エンコーダ、161……検索結果トランスファ・パルス入
力端子、171……アドレスデコーダ、172……R/W回路、1
73……マッチレコードアドレスデータ入出力端子、174
……アドレスデータR/Wクロック入力端子、175……アド
レス・カウンタ、176……オアゲート。
FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing an embodiment of the first storage means, search condition matching means and second storage means of the present invention, and FIG. FIG. 4 is an explanatory diagram of one embodiment of a character string collating unit. 1. In FIG. 1, 110... Character string matching means, 120... Character string switch, 140, 170... Storage means, 150.
19 Search character string identification code input terminal, 141, 142 Address decoder, 143 Address counter, 144
Flip flop, 145: Match record clock input terminal, 146: Read data register, 147 ...
Write data switch, 148 ... Mark bit input terminal, 149 ... Search result data input terminal, 151 ... Set pulse input terminal, 152 ... Search condition logic input terminal, 156 ...
Search condition collation result register, 160
Encoder, 161: Search result transfer pulse input terminal, 171: Address decoder, 172: R / W circuit, 1
73 Match record address data input / output terminal, 174
…… Address data R / W clock input terminal, 175 …… Address counter, 176 …… OR gate.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数検索文字列を記憶し、入力文字列が複
数検索文字列のいずれに一致するかを判別する文字列照
合手段と、どのテキストレコードがどの検索文字列を含
むかを記憶し、前記文字列照合手段の判別する文字列の
クラスコードによってアクセス番地の決まる第1記憶手
段と、入力文字列間の検索条件論理に従って第1記憶手
段の出力の論理処理を行う検索条件照合手段と、これに
つながるエンコード手段と、照合のあった文字列を含む
テキストレコードの格納番地を記憶し、エンコード手段
の出力によってアクセス番地の決まる第2記憶手段と、
検索文字列照合手段の入力文字列として検索文字列かテ
キスト文字列を選択するスイッチ手段とを備える事を特
徴とする学習型文字列検索装置。
A character string matching means for storing a plurality of search character strings and determining which of the plurality of search character strings the input character string matches, and storing which text record contains which search character string. A first storage means for determining an access address according to a class code of a character string determined by the character string matching means, and a search condition matching means for performing a logical process on an output of the first storage means according to a search condition logic between input character strings. Encoding means connected thereto, a second storage means for storing a storage address of a text record including a matched character string, and an access address determined by an output of the encoding means;
A learning-type character string search device, comprising: switch means for selecting a search character string or a text character string as an input character string of the search character string collation means.
【請求項2】複数検索文字列を記憶し、入力文字列が複
数検索文字列のいずれに一致するかを判別する文字列照
合手段と、どのテキストレーコドがどの検索文字列を含
むかを記憶し、前記文字列照合手段の判別する文字列の
クラスコードによってアクセス番地の決まる第1記憶手
段と、入力文字列間の検索条件論理に従って第1記憶手
段の出力の論理処理を行う検索条件照合手段と、これに
つながり、探索条件を満足するテキストレコードを指定
するエンコード手段とを、前記テキストレコードの実際
の格納番地を記憶し、前記エンコード手段の出力によっ
てアクセス番地の決まる第2記憶手段と、前記文字列照
合手段の入力文字列として検索文字列かテキスト文字列
を選択するスイッチ手段とを備えた学習型文字列検索装
置の制御方式であって、前記文字列照合手段と第1と第
2記憶手段にそれぞれ過去の検索文字列、文字列照合結
果とテキストレコードの格納番地を初期設定するイニシ
ャライズモード、新検索文字列の中に検索文字列に一致
しない検索文字列のあった時に、その検索文字列を文字
列照合手段に追加登録する検索文字列登録モードと、文
字列照合手段にテキスト文字列を入力し、検索文字列を
含んだテキストレコードをマークして第1記憶手段及び
第2記憶手段に書き込むテキスト文字列検索モードと、
検索条件論理と検索文字列を検索条件照合手段と文字列
照合手段に入力し、前記文字列照合手段の出力によって
アクセス番地の決まる記憶手段の出力を検索条件照合手
段で処理する検索条件照合モードと、その結果を用いて
第2記憶手段から検索条件にマッチしたテキストレコー
ドの格納番地を出力する検索結果出力モードとを備え、
検索文字列照合モードで全新検索文字列と過去の検索文
字列とのマッチがあった時は、検索条件照合モードと検
索結果出力モードに移って、マッチしたテキストレコー
ド格納番地を出力するように制御し、検索文字列照合モ
ードでマッチのない時は、追加登録モードに移ってミス
マッチ文字列を文字列照合手段に登録し、その後、テキ
スト文字列検索モードに移って検索結果を第1記憶手段
と第2記憶手段に書き込み、その後、検索条件照合モー
ドを経て、検索結果出力モードでマッチしたテキストレ
コードの格納番地を出力するように制御する事を特徴と
する学習型文字列検索装置の制御方式。
2. A character string collating means for storing a plurality of search character strings and determining which of the plurality of search character strings the input character string matches, and storing which text record includes which search character string. A first storage unit whose access address is determined by a class code of the character string determined by the character string comparison unit; and a search condition matching unit that performs a logical process on an output of the first storage unit in accordance with a search condition logic between input character strings. Encoding means for specifying a text record that satisfies the search condition, storing the actual storage address of the text record, and determining the access address by the output of the encoding means; And a switch for selecting a search character string or a text character string as an input character string of the character string collating means. An initialization mode for initial setting the past search character string, the character string comparison result and the storage address of the text record in the character string matching means and the first and second storage means, respectively; When there is a search string that does not match the search string registration mode that adds the search string to the string matching means when there is a search string, and a text that contains a search string by entering a text string into the string matching means A text string search mode for marking a record and writing it to the first storage means and the second storage means;
A search condition matching mode in which the search condition logic and the search character string are input to the search condition matching means and the character string matching means, and the output of the storage means whose access address is determined by the output of the character string matching means is processed by the search condition matching means. A search result output mode for outputting a storage address of a text record matching the search condition from the second storage unit using the result,
When there is a match between all new search strings and past search strings in search string matching mode, control is switched to search condition matching mode and search result output mode to output the matched text record storage address If there is no match in the search character string matching mode, the process proceeds to the additional registration mode, in which the mismatched character string is registered in the character string matching unit, and thereafter, the process proceeds to the text string search mode to store the search result in the first storage unit. A control method for a learning-type character string search apparatus, characterized in that control is performed such that the storage address of a text record matched in a search result output mode is output via a search condition matching mode after writing in a second storage means.
JP63128849A 1988-05-25 1988-05-25 Learning type character string search device and control method of the device Expired - Lifetime JP2718062B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63128849A JP2718062B2 (en) 1988-05-25 1988-05-25 Learning type character string search device and control method of the device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63128849A JP2718062B2 (en) 1988-05-25 1988-05-25 Learning type character string search device and control method of the device

Publications (2)

Publication Number Publication Date
JPH01297724A JPH01297724A (en) 1989-11-30
JP2718062B2 true JP2718062B2 (en) 1998-02-25

Family

ID=14994899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63128849A Expired - Lifetime JP2718062B2 (en) 1988-05-25 1988-05-25 Learning type character string search device and control method of the device

Country Status (1)

Country Link
JP (1) JP2718062B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07239861A (en) * 1994-02-25 1995-09-12 Ricoh Co Ltd Document retrieval device
JP3509941B2 (en) * 1994-07-27 2004-03-22 富士写真フイルム株式会社 Data search method and device
EP3091448A4 (en) * 2013-12-23 2017-12-06 Katsumi Inoue Memory equipped with information retrieval function, method for using same, device, and information processing method
JP2018139017A (en) * 2015-06-08 2018-09-06 井上 克己 Memory type processor, apparatus including memory type processor, and method of using the same.

Also Published As

Publication number Publication date
JPH01297724A (en) 1989-11-30

Similar Documents

Publication Publication Date Title
US9026485B2 (en) Pattern-recognition processor with matching-data reporting module
US5758148A (en) System and method for searching a data base using a content-searchable memory
KR940003700B1 (en) Search method and device
US5319762A (en) Associative memory capable of matching a variable indicator in one string of characters with a portion of another string
US20030208475A1 (en) Search engine for large-width data
US7120731B1 (en) CAM-based search engines that support pipelined multi-database search operations using replacement search key segments
JPH0218790A (en) Memory system whose address can be apdointed by content
US4254476A (en) Associative processor
US3332069A (en) Search memory
US5175860A (en) System string search system using matrix memory?comparator with columns simultaneously comparing with symbols of string supplied in parallel from a column of input shift registers
US3456243A (en) Associative data processing system
JP2718062B2 (en) Learning type character string search device and control method of the device
US4979101A (en) Apparatus for retrieving character strings
JPH11282852A (en) Data retrieval device
EP0232376B1 (en) Circulating context addressable memory
US11822530B2 (en) Augmentation to the succinct trie for multi-segment keys
US20070168779A1 (en) Testing of a CAM
US3271745A (en) Register search and detection system
JPH0315221B2 (en)
JPH04308B2 (en)
JP3459049B2 (en) Character string search method and device
JPH03131969A (en) Method and device for retrieving code string
JPS5853791B2 (en) character recognition device
SU342185A1 (en) DEVICE FOR SEARCHING INFORMATION
JPS6270974A (en) Text search engine and its control system