JPH01303522A - Data retrieving method - Google Patents

Data retrieving method

Info

Publication number
JPH01303522A
JPH01303522A JP63133936A JP13393688A JPH01303522A JP H01303522 A JPH01303522 A JP H01303522A JP 63133936 A JP63133936 A JP 63133936A JP 13393688 A JP13393688 A JP 13393688A JP H01303522 A JPH01303522 A JP H01303522A
Authority
JP
Japan
Prior art keywords
word
dictionary
retrieval key
search key
search
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
JP63133936A
Other languages
Japanese (ja)
Inventor
Fumiaki Takayama
高山 文昭
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 Home Electronics Ltd
NEC Corp
Original Assignee
NEC Home Electronics Ltd
Nippon Electric 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 NEC Home Electronics Ltd, Nippon Electric Co Ltd filed Critical NEC Home Electronics Ltd
Priority to JP63133936A priority Critical patent/JPH01303522A/en
Priority to AU35827/89A priority patent/AU612263B2/en
Publication of JPH01303522A publication Critical patent/JPH01303522A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To take the desired data out of a data base by processing a retrieval key with use of a dictionary having the same concept as a word dictionary in case an input retrieval key is not coincident with a word of the word dictionary and retrieving the data base with the processed retrieval key. CONSTITUTION:A retrieval key is compared with a word in a word dictionary memory 20. When no coincidence is obtained from this comparison, the spelling of the word is corrected by the substitution or replacement of spellings so that the coincidence is obtained between the retrieval key and the word of the memory 20. In case an exact word (retrieval key) is unknown, a homonym or another word having the same concept as the relevant one is inputted to an information processor as a retrieval key. The information processor calls successively the homonyms of the retrieval key or the words of the same concept with use of a homonym dictionary memory 22 and a same concept dictionary memory 24 and compares these called words with the words in the memory 20. Thus the information processor obtains a correct retrieval key and retrieves a data base. As a result, the desired data is surely obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データベースに入っているデータを取り出す
ためのデータ検索方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data retrieval method for retrieving data contained in a database.

〔従来の技術〕[Conventional technology]

多くのデータを各種の目的に応じて分類してファイルし
ておき、必要に応じてファイル内のデータを容易に取り
出すことができるデータベースLL現在の情報社会にお
いて欠くべからざるものとなっている。そして、データ
ベースからデータを取り出す場合、検索対象データ内の
単語と一致した検索キーまたは複数の検索キーの組み合
わせを情報処理装置に入力すると、情報処理装置が検索
キーまたは複数の検索キーの組み合わせを用いてデータ
ベースを検索し、それらに対応した検索対象データを見
つけ出して、所望のデータが取り出せるようになってい
る。
Databases LL have become indispensable in today's information society because they allow a large amount of data to be classified and filed according to various purposes, and the data in the files can be easily retrieved as needed. When retrieving data from a database, when a search key or combination of multiple search keys that matches a word in the search target data is input into the information processing device, the information processing device uses the search key or combination of multiple search keys. Users can search the database by searching the database, find the corresponding search target data, and retrieve the desired data.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、従来のデータ検索方法は、情報処理装置に入力
した検索キーが検索対象データまたはその一部と完全に
一致していない場合には、検索対象データを見つけるこ
とができず、必要とするデータを取り出すことができな
かった。このため、例えば入力した検索キーの単語にス
ペルの誤りがある場合や、オペレータが検索対象データ
内の正確な単語を記憶していない場合には、所望のデー
夕が得られないという問題があった。
However, with conventional data search methods, if the search key input to the information processing device does not completely match the search target data or a part of it, the search target data cannot be found, and the required data cannot be found. could not be taken out. Therefore, for example, if there is a spelling error in the entered search key word, or if the operator does not remember the exact word in the search target data, there is a problem that the desired data cannot be obtained. Ta.

本発明は、前記従来技術の欠点を解消するためになされ
たもので、入力した検索キーが検索対象データ内の単語
と完全に一致しない場合にも、所望のデータを取り出す
ことができるデータ検索方法を提供することを目的とし
ている。
The present invention has been made in order to eliminate the drawbacks of the prior art, and is a data search method that allows desired data to be retrieved even when the input search key does not completely match a word in the search target data. is intended to provide.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、本考発明の係るデータ検索
方法は、情報処理装置に検索キーを入力してデータベー
スを検索し、前記入力した検索キーに対応したデータを
取り出すデータ検索方法において、前記入力した検索キ
ーを前記情報処理装置内の単語辞書に入っている単語と
比較し、両者が一致しないときに、前記情報処理装置に
この情報処理装置内の単語辞書と同義語辞書と同一概念
辞書とを用いて前記検索キーの加工を行わせ、加工した
検索キーにより前記データベースを検索することを特徴
としている。
In order to achieve the above object, there is provided a data search method according to the present invention, in which a search key is input into an information processing device, a database is searched, and data corresponding to the input search key is retrieved. The input search key is compared with the word stored in the word dictionary in the information processing device, and if the two do not match, the information processing device stores the word dictionary, synonym dictionary, and same concept dictionary in the information processing device. The present invention is characterized in that the search key is processed using the above-described search key, and the database is searched using the processed search key.

〔作用〕[Effect]

上記の如(構成した本発明は、データベースのデータを
検索するための検索キーと同一の単語を情報処理装置内
の単語辞書の登録しておき、情報処理装置に入力された
検索キーを単語辞書内の単語と比較して、両者が一致し
た場合にはそのままデータベースを検索する。また、両
者が一致しない場合には、スペルの置換や入れ替えなど
によってスペルの訂正をし、検索キーが単語辞書内の単
語と一致するようにし、−敗した検索キーによってデー
タベースを検索する。
According to the present invention configured as described above, the same word as a search key for searching data in a database is registered in the word dictionary in the information processing device, and the search key input to the information processing device is used in the word dictionary. If the two match, the database is searched as is.If the two do not match, the spelling is corrected by replacing or exchanging the spelling, and the search key is found in the word dictionary. - Search the database by the failed search key.

一方、オペレータが検索対象データ内の正確な単語(検
索キー)が分からない場合には、同義語または同一概念
の単語を検索キーとして情報処理装置に入力すると、?
#報処理装置は内蔵している同義語辞書、同一概念辞書
を用いて入力された検索キーの同義語または同一概念の
単語を次々と呼び出し、これを単語辞書内の単語と比較
して、正しい検索キーを見つけ出し、データベースを検
索する。
On the other hand, if the operator does not know the exact word (search key) in the search target data, input a synonym or a word with the same concept into the information processing device as the search key.
# The information processing device uses the built-in synonym dictionary and same concept dictionary to call out synonyms or words with the same concept of the input search key one after another, compares these with the words in the word dictionary, and finds the correct word. Find the search key and search the database.

従って、入力した検索キーにスペルの誤りがあったり、
オペレータが正確な検索キーを知ってない場合であって
も、所望のデータを確実に得ることができる。
Therefore, the search key you entered may be misspelled, or
Even if the operator does not know the exact search key, desired data can be reliably obtained.

〔実施例〕〔Example〕

本発明に係るデータ検索方法の好ましい実施例を、添付
図面に従って詳説する。
A preferred embodiment of the data search method according to the present invention will be described in detail with reference to the accompanying drawings.

第4図は、本発明に係るデータ検索方法を実施するため
の情報処理装置のブロック構成図である。
FIG. 4 is a block configuration diagram of an information processing device for implementing the data search method according to the present invention.

第4図において、情報処理装置は、中央処理装置(CP
U)10にバス12を介して、キーボードからなる入力
語ff14、CRTデイスプレィやプリンタなどの出力
装置16、外部記憶装置に格納したデータベース18が
接続されるとともに、データベース18を検索するため
に入力された検索キーと同一の単語が登録しである単語
辞書メモ1J20、種々の単語の同義語と同一概念の単
語とを格納した同義語辞書メモリ22、概念辞書メモリ
24、CPUl0が実行する作業のプログラムが入って
いるインストラクションメモリ26、入力した検索キー
や単語辞書メモリ20内の単語などを書き込む作業用メ
モリ2日が接続されている。
In FIG. 4, the information processing device is a central processing unit (CP
U) 10 is connected via a bus 12 to an input word ff 14 consisting of a keyboard, an output device 16 such as a CRT display or a printer, and a database 18 stored in an external storage device. A word dictionary memo 1J20 in which the same word as the search key is registered, a synonym dictionary memory 22 storing synonyms of various words and words with the same concept, a concept dictionary memory 24, and a program for the work executed by the CPU 10. An instruction memory 26 containing an instruction memory 26 and a working memory 26 into which inputted search keys, words in the word dictionary memory 20, etc. are written are connected.

例えば、検索キーがrtrolley」であるデータを
得たいと思っているが、オペレータは検索キーが分から
ないため、r車Jという概念からrcarJを検索キー
に選択してデータベース18の検索をしようとした。と
ころが、オペレータはrcarJと入力すべきところ、
rcaf」と誤って入力してしまったとする。
For example, the operator wants to obtain data with the search key "rtrolley", but since the operator does not know the search key, he tries to search database 18 by selecting rcarJ as the search key based on the concept of r car J. . However, when the operator should input rcarJ,
Suppose you accidentally typed ``rcaf''.

このとき、CPUl0は、入力装置14からrcaf」
が入力され、検索開始の命令を受けると(第1図ステッ
プ30)、インストラフシランメモリ26内のプログラ
ムに従って、入力されたrcaf」を入カキ−として作
業用メモリ28に第5図のように書き込むとともに、出
力袋W16のデイスプレィにその単語を表示する0次に
、CPUl0は、単語辞書メモリ20内の単語辞書を検
索し、単語辞書中に入力されたrcaf」があるかどう
かを調べて検索キーのスペルチェックを行う(ステップ
31)、スペルチェックの結果、スペルに誤りがなけれ
ばステップ32からステップ39に進み、データベース
18を検索して対応したデータを読み出し、出力装置1
6に出力する。
At this time, the CPU 10 receives the ``rcaf'' from the input device 14.
is input and an instruction to start the search is received (step 30 in FIG. 1). According to the program in the infrastructure memory 26, the input ``rcaf'' is used as an input key and the data is stored in the working memory 28 as shown in FIG. At the same time as writing, the word is displayed on the display of the output bag W16.Next, the CPU 10 searches the word dictionary in the word dictionary memory 20, and searches the word dictionary to see if there is the input ``rcaf''. The spelling of the key is checked (step 31). If there is no spelling error as a result of the spell checking, the process proceeds from step 32 to step 39, where the database 18 is searched and the corresponding data is read out, and the output device 1
Output to 6.

一方、入力した検索キーが単語辞書内の単語と一致しな
い場合には、ステップ32からステップ33に進み、ス
ペルの訂正を行う、このスペルの訂正は、まず検索キー
の最初の1字を他の文字に置き換え(第2図ステップ3
31)、文字を置き換えた検索キーを第5図のように作
業用メモリ28のスペル訂正槽に書き込み、デイスプレ
ィに表示する。その後、CPUl0は、単語辞書を検索
して訂正が正しいか否かを調べる(ステップ332.3
33)、訂正した検索キーが正しくない場合には、すべ
ての文字の置き換えが完了したかどうかを判断しくステ
ップ334)、完了していないときにはステップ331
に戻る。また、訂正した検索キーが正しい場合には、第
1図のステップ34に進む。
On the other hand, if the entered search key does not match the word in the word dictionary, the process proceeds from step 32 to step 33, where the spelling is corrected. Replace with text (Figure 2 Step 3
31) Write the search key with the replaced characters in the spelling correction tank of the working memory 28 as shown in FIG. 5, and display it on the display. After that, CPUl0 searches the word dictionary to check whether the correction is correct (step 332.3
33), if the corrected search key is incorrect, determine whether all character replacements have been completed (step 334); if not, step 331)
Return to If the corrected search key is correct, the process proceeds to step 34 in FIG.

すべての文字の置換をしたのに正しい検索キーが得られ
ない場合には、ステップ334からステップ335に進
み、隣同士の文字の入れ替えをして作業用メモリ28に
書き込み、デイスプレィに表示した後、単語辞書を検索
して正しい検索キーになったかどうが判断する(ステッ
プ336.337)、正しい検索キーになれば第1図の
ステップ34に進み、正しい検索キーになっていない場
合には、すべての文字について隣同士の入れ換えを実行
して(ステップ3・38)第1図のステップ34に戻る
If the correct search key cannot be obtained even after all characters have been replaced, the process proceeds from step 334 to step 335, in which adjacent characters are replaced, written to the working memory 28, and displayed on the display. It is determined whether the word dictionary is searched and the search key is correct (steps 336 and 337). If the search key is correct, the process proceeds to step 34 in Figure 1. If the search key is not correct, all The characters are exchanged with each other (step 3.38), and the process returns to step 34 in FIG.

CPUl0は、検索キーがスペル訂正作業で正しいスペ
ルに訂正されたならば、データベース18を検索し、デ
ータを読み出す(ステップ34.39)、Lかし、スペ
ル訂正を行っても正しい検索キーに訂正できなっかた場
合には、同義語辞書メモリ22内の同義語辞書を検索し
て同義語による訂正を行う(ステップ35、第3図)、
すなわち、CPUl0は、入カキ−rcaf、1につい
ての同義語が同義語辞書内にあるか否かを調べ、同義語
があればそれを作業用メモリ28の同義梧桐に書き込む
とともに、デイスプレィに表示し、またその単語が単語
辞書内にも入っているかどうかを調べる(第3図ステッ
プ351.352.353)、同義語辞書を検索して得
た単語と単語辞書内の単語とが一致した場合には、第1
図のステップ36に進み、データベース18を検索する
(ステップ39)、一致しない場合には、次の同義語を
読み出して同様にして正しい検索キーになったかどうか
調べる(ステップ354.351〜353)。
If the search key is spelled correctly in the spelling correction process, CPU10 searches the database 18 and reads out the data (step 34.39). If this is not possible, search the synonym dictionary in the synonym dictionary memory 22 and make corrections using synonyms (step 35, FIG. 3).
That is, the CPU 10 checks whether or not there is a synonym for the input key -rcaf,1 in the synonym dictionary, and if there is a synonym, writes it to the synonym in the working memory 28 and displays it on the display. , and also checks whether the word is also included in the word dictionary (steps 351, 352, and 353 in Figure 3). If the word obtained by searching the synonym dictionary matches the word in the word dictionary, is the first
Proceeding to step 36 in the figure, the database 18 is searched (step 39). If there is no match, the next synonym is read out and similarly checked to see if it is the correct search key (steps 354, 351 to 353).

このようにして、rcaf」についての同義語による訂
正作業が終了しても、正しい検索キーが得られない場合
には、スペル訂正をした最初の単語raaf」を読み出
しくステップ355)、ステップ356からステップ3
51にもどってその単語について同義語辞書を検索し、
正しい検索キーが得られたかどうかを判断する。そして
、CPUl0は、作業用メモリ28の入カキ−、スペル
訂正槽に書き込んだすべての単語について同義語による
訂正作業が終了したにもかかわらず、正しい検索キーが
得られなかった場合には、第1図のステップ36からス
テップ37に進み、同一概念による訂正を行う、この同
一概念による訂正は、概念辞書メモリ24内の同一概念
辞書を用いて、同義語による訂正とほぼ同様にして行わ
れる。そLT、CPUl0は、作業用メモリ28のスペ
ル訂正槽のrcarJの同一概念語を次々と呼び出し、
rtrolley」を捜し出し、データベース18の検
索を行う。
In this way, if the correct search key cannot be obtained even after completing the correction using synonyms for "rcaf", the first spelling corrected word "raaf" is read out from step 355) and step 356. Step 3
Go back to 51 and search the synonym dictionary for that word,
Determine whether the correct search key was obtained. Then, if the correct search key is not obtained even though the correction work using synonyms has been completed for all the words written in the input key and spelling correction tank of the working memory 28, the CPU 10 The process proceeds from step 36 to step 37 in FIG. 1 to perform correction based on the same concept. This correction based on the same concept is performed using the same concept dictionary in the concept dictionary memory 24 in substantially the same manner as the correction based on synonyms. The LT, CPU10, calls up the same concept words of rcarJ in the spelling correction tank of the working memory 28 one after another,
rtrolley" and searches the database 18.

このように、実施例によれば、オペレータが検索キーの
スペルを誤って入力した場合や、対象検索データ内の正
確な単語を知らない場合であっても、同義語や同一概念
の単語を入力することによって、所望のデータを容易に
取り出すことができる。
In this way, according to the embodiment, even if the operator misspells the search key or does not know the exact word in the target search data, the operator can input synonyms or words with the same concept. By doing so, desired data can be easily retrieved.

〔発明の効果〕〔Effect of the invention〕

以上に説明したように、本発明によれば、検索キーのス
ペルを間違えて入力した場合や、正確な検索キーを知ら
ない場合であっても、データベースから所望のデータを
取り出すことができる。
As described above, according to the present invention, desired data can be retrieved from a database even if a search key is misspelled or the user does not know the correct search key.

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

第1図は本発明の実施例に係るデータ検索方法のフロー
チャート、第2図は前記実施例におけるスペル訂正作業
のフローチャート、第3図は前記実施例における同義語
による訂正作業のフローチャート、第4図は実施例を実
行するための情報処理装置のブロック構成図、第5図は
作業用メモリへの書込方法の一例を示す図である。 10 ・・−・−・CP U、  1 B−−−−デー
タベース、20−・・・−・単語辞書メモリ、22 ・
・−・・同義語辞書メモリ、24 ・−・−・概念辞書
メモリ。 代理人 弁理士 村 上 友 − 第2図 第3図
FIG. 1 is a flowchart of a data retrieval method according to an embodiment of the present invention, FIG. 2 is a flowchart of a spelling correction operation in the embodiment, FIG. 3 is a flowchart of a synonym correction operation in the embodiment, and FIG. 5 is a block configuration diagram of an information processing apparatus for executing the embodiment, and FIG. 5 is a diagram showing an example of a method of writing to a working memory. 10...CPU, 1B---Database, 20---Word dictionary memory, 22
・−・・Synonym dictionary memory, 24 ・−・−・Concept dictionary memory. Agent Patent Attorney Tomo Murakami - Figure 2 Figure 3

Claims (1)

【特許請求の範囲】[Claims] (1)情報処理装置に検索キーを入力してデータベース
を検索し、前記入力した検索キーに対応したデータを取
り出すデータ検索方法において、前記入力した検索キー
を前記情報処理装置内の単語辞書に入っている単語と比
較し、両者が一致しないときに、前記情報処理装置にこ
の情報処理装置内の単語辞書と同義語辞書と同一概念辞
書とを用いて前記検索キーの加工を行わせ、加工した検
索キーにより前記データベースを検索することを特徴と
するデータ検索方法。
(1) In a data search method in which a search key is input into an information processing device to search a database and retrieve data corresponding to the input search key, the input search key is entered into a word dictionary in the information processing device. When the two words do not match, the information processing device processes the search key using a word dictionary, a synonym dictionary, and a same concept dictionary in the information processing device. A data search method, characterized in that the database is searched using a search key.
JP63133936A 1988-05-31 1988-05-31 Data retrieving method Pending JPH01303522A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP63133936A JPH01303522A (en) 1988-05-31 1988-05-31 Data retrieving method
AU35827/89A AU612263B2 (en) 1988-05-31 1989-05-30 Method of data retrieval from a data base and a system therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63133936A JPH01303522A (en) 1988-05-31 1988-05-31 Data retrieving method

Publications (1)

Publication Number Publication Date
JPH01303522A true JPH01303522A (en) 1989-12-07

Family

ID=15116532

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63133936A Pending JPH01303522A (en) 1988-05-31 1988-05-31 Data retrieving method

Country Status (2)

Country Link
JP (1) JPH01303522A (en)
AU (1) AU612263B2 (en)

Also Published As

Publication number Publication date
AU612263B2 (en) 1991-07-04
AU3582789A (en) 1989-12-07

Similar Documents

Publication Publication Date Title
JPS61217863A (en) Electronic dictionary
JPS61156466A (en) Word extracting system
JPH01303522A (en) Data retrieving method
JP3945075B2 (en) Electronic device having dictionary function and storage medium storing information retrieval processing program
EP0539965B1 (en) An electronic dictionary including a pointer file and a word information correction file
JPH0612451A (en) Illustrative sentence retrieving system
JPH0346058A (en) Sentence reading support device
JPH0315222B2 (en)
JPS63284639A (en) Retrieving device
JPH0726763Y2 (en) Spell checker
JPH06290219A (en) Document processor with character retrieving function
JPH03144850A (en) Back-up system for proofreading of sentence
JPH01279322A (en) Retrieving device
JPH0248938B2 (en)
JPS62256069A (en) Document processor
JPH0222761A (en) Dictionary memory preparing device
JPS62156763A (en) Document data processor
JPS62197862A (en) Spelling error display method for english document processor
JPH10177573A (en) Method and device for processing document
JPH05165831A (en) English document preparing device and method or displaying method
JPH0523458B2 (en)
JPH06119325A (en) Word correcting device
JP2000003359A (en) Document processor
JPH0310369A (en) Dictionary preparation backup device
JPH01288919A (en) English word retrieving device