JPH03118661A - Word retrieving device - Google Patents

Word retrieving device

Info

Publication number
JPH03118661A
JPH03118661A JP1255626A JP25562689A JPH03118661A JP H03118661 A JPH03118661 A JP H03118661A JP 1255626 A JP1255626 A JP 1255626A JP 25562689 A JP25562689 A JP 25562689A JP H03118661 A JPH03118661 A JP H03118661A
Authority
JP
Japan
Prior art keywords
character
word
input
heading
data
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
JP1255626A
Other languages
Japanese (ja)
Inventor
Shigeko Akiyama
秋山 薫子
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1255626A priority Critical patent/JPH03118661A/en
Publication of JPH03118661A publication Critical patent/JPH03118661A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce an access area and to shorten the retrieving time for an input word by retrieving the area which is specified by the first character of the input word with the second character of the word. CONSTITUTION:The character data inputted from an input part 1 are stored continuously in a data memory 5 until the input of the word punctuation data. When the word punctuation data is inputted, the words are retrieved. Then the first character of an input word is identified and an access is given to a big headline storage part 41. Thus the offset value of a crosshead storage part 42 is read out, and the second character of the input word is identified. An access is given to the second character from the offset position of the part 42 and the header of the code of the second character is retrieved. Hereafter the accesses are given to a subhead storage part 43 from the part 42 and to a semantic memory part 44 from the part 43 respectively. Thus the meaning of the input word and other information are read out and sent to a display part 3.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ワードプロセッサや、翻訳機等に用いられ、
複数の文字で構成される単語に対応するデータを検索す
る単語検索装置に関するものである。
[Detailed Description of the Invention] Industrial Application Field The present invention is used in word processors, translators, etc.
The present invention relates to a word search device that searches for data corresponding to a word made up of multiple characters.

従来の技術 従来、この種の単語検索装置は辞書として60音順に単
語を記憶させ、辞書の先頭単語をアクセスして入力され
た複数文字からなる単語と一致するか否かの比較を行い
、一致が得られなければ次の単語をアクセスして入力さ
れた単語との比較を行うという動作を行って、一致が得
られるまでこれを繰り返していた。そして、一致が得ら
れると、入力された単語が正しいという結果や、入力さ
れた単語の意味を記憶したメモリのアドレス等を出力し
て、単語検索装置の処理を終了していた。
2. Description of the Related Art Conventionally, this type of word search device stores words in the order of the 60 syllabary characters as a dictionary, accesses the first word in the dictionary, compares it with the input word consisting of multiple characters, and finds a match. If a match could not be obtained, the next word was accessed and compared with the input word, and this process was repeated until a match was found. When a match is found, the word search device outputs the result that the input word is correct, the address of the memory that stores the meaning of the input word, and ends the processing of the word search device.

発明が解決しようとする課題 しかしながら、この場合、辞書には数多くの単語が所定
の順番に記憶されており、入力された単語との比較を一
つ一つ行うので検索の為の時間が多くかかつてしまって
いた。又、入力された単語が複数の文字の場合は辞書か
ら読み出した一つの単語との一致判断のだめの比較に時
間を要し、更に検索の為の時間が多く必要であった。
Problems to be Solved by the Invention However, in this case, a large number of words are stored in the dictionary in a predetermined order, and since each word is compared with the input word one by one, it takes a lot of time to search. It was once put away. In addition, when the input word consists of a plurality of characters, it takes time to compare it with a single word read from the dictionary to determine whether it matches, and moreover, a lot of time is required for searching.

課題を解決するための手段 この課題を解決するために本発明は、複数の文字の一つ
一つを見出しとして各文字に対応するデータの記憶場所
を示すデータを対応させて記憶した第1記憶領域と、こ
れに記憶された各文字に対応するデータの記憶場所毎に
複数の文字の一つ一つを見出しとして各文字に対応する
データの記憶場所を示すデータを対応させて記憶した第
2記憶領域を備え、入力された単語の第1文字目で第1
記憶領域を検索し、得られたデータによって特定される
領域を入力された単語の第2文字目の文字で検索する構
成である。
Means for Solving the Problem In order to solve this problem, the present invention provides a first memory in which each of a plurality of characters is used as a heading and data indicating the storage location of data corresponding to each character is stored in correspondence. A second area in which data indicating the storage location of data corresponding to each character is stored in correspondence with each of the plurality of characters as a heading for each storage location of data corresponding to each character stored in the area. Equipped with a storage area, the first character of the input word
The configuration is such that a storage area is searched, and an area specified by the obtained data is searched using the second character of the input word.

作用 この構成によって、入力された単語の第1文字目の文字
で特定される領域を第2文字目の文字で検索することで
入力された単語の検索を行う。
Effect: With this configuration, the input word is searched by searching the area specified by the first character of the input word using the second character.

実施例 以下、本発明の一実施例における単語検索装置について
詳細に説明する。
Embodiment Hereinafter, a word search device according to an embodiment of the present invention will be described in detail.

先ず、第1図は、本実施例の構成を示すブロック図であ
る。ここで、1はキーボード装置等で構成される文字デ
ータの入力部で、アルファベット文字データや仮名デー
タを入力したり、単語の区切れを示すデータを入力する
。2は処理部で、内部には論理処理、演算等を行うチエ
ツク部21及び第6図に示すフローグーヤードに従った
制御プログラムを記憶したプログラム記憶装置22を有
する。3は入力された文字データや検索結果等を表示す
る表示部である。4は読み出し専用メモリ等で構成され
る辞書部である。6は処理部2がその処理動作中に用い
るワーク領域となるメモリである。
First, FIG. 1 is a block diagram showing the configuration of this embodiment. Here, reference numeral 1 denotes a character data input unit comprised of a keyboard device or the like, through which alphabetical character data, kana data, and data indicating word breaks are input. Reference numeral 2 denotes a processing section, which includes a check section 21 that performs logical processing, calculations, etc., and a program storage device 22 that stores a control program according to the flowchart shown in FIG. 3 is a display unit that displays input character data, search results, and the like. Reference numeral 4 denotes a dictionary section composed of a read-only memory and the like. Reference numeral 6 denotes a memory serving as a work area used by the processing section 2 during its processing operations.

第2図、第3図、第4図は本実施例の辞書部4の構成を
示す概略図で、詳しくは第2図は大見出しと中見出しと
の概略図、第3図は中見出しと小見出しとの概略図、第
4図は小見出しと更に細い見出し或いは意味データ記憶
部との概略図である。
2, 3, and 4 are schematic diagrams showing the configuration of the dictionary section 4 of this embodiment. In detail, FIG. 2 is a schematic diagram of a main heading and a middle heading, and FIG. 3 is a schematic diagram of a middle heading and a middle heading. FIG. 4 is a schematic diagram of a subheading and a smaller heading or semantic data storage section.

第2図において、41は大見出し記憶部で42は中見出
し記憶部である。大見出し記憶部41は「&」で始まる
単語即ち第1文字目が「a」の単語の中見出し記憶部4
2でのオフセット量もしくは中見出し記憶部42のアド
レス、第1文字目がrbJの単語の中見出し記憶部42
でのオフセット量、第1文字目が「0」・・・・・・と
順次記憶されている。
In FIG. 2, 41 is a large heading storage section, and 42 is a medium heading storage section. The main heading storage unit 41 is a medium heading storage unit 4 for words starting with “&”, that is, words whose first character is “a”.
2 or the address of the middle heading storage unit 42, the middle heading storage unit 42 of the word whose first character is rbJ
The offset amount in , the first character is "0", and so on are stored sequentially.

第3図において42は中見出し記憶部で43は小見出し
記憶部で中見出し記憶部は、第1文字目が「a」で第2
文字目がraJの単語の小見出し記憶部43でのオフセ
ット量を記憶している。次に第1文字目が「a」で第2
文字目がrbJのオフセット量を記憶しており、最後に
は、第1文字目がJzJで第2文字目が「z」のオフセ
ット量を記憶している。
In FIG. 3, 42 is a medium heading storage area, 43 is a small heading storage area, and the first character is "a" and the second character is
The offset amount in the subheading storage section 43 of the word whose letter is raJ is stored. Next, the first letter is “a” and the second letter is “a”.
The offset amount of the first character rbJ is stored, and finally the offset amount of the first character JzJ and the second character "z" is stored.

第4図において43は小見出し記憶部で44は単語の意
味情報を記憶した意味記憶部である。小見出し記憶部4
3は第1文字目が「a」、第2文字目が「2L」、第3
文字目が「a」となる単語の意味記憶部44内でのオフ
セット量から第1文字目から第3文字目までが「z」の
単語のオフセット量までを記憶している。意味記憶部4
4は、第1文字目から第3文字目までが「a」となる単
語で第4文字目以降が存在しない単語に引き続いて第4
文字目以降の文字列をアルファベット順に見出しを付し
、その意味情報を記憶している。
In FIG. 4, 43 is a subheading storage section, and 44 is a meaning storage section that stores word meaning information. Subheading storage section 4
In 3, the first character is "a", the second character is "2L", and the third character is "a".
The offset amount in the meaning storage unit 44 for a word whose letter is "a" up to the offset amount of a word whose first to third letters are "z" is stored. Semantic memory part 4
4 is a word in which the first to third letters are "a" and the fourth letter and subsequent letters do not exist, followed by the fourth letter.
The character strings after the first character are given headings in alphabetical order, and their meaning information is stored.

第6図は1本実施例の制御手順を示すフローチャートで
ある。ステップ82.1で入力部1から入力された文字
データを受は付ける。ここでは、単語の区切りデータが
入力されるまで入力された文字データをメモリ6に記憶
しておく。単語の区切りデータが入力されるとステップ
S2.2に移行し、単語の検索を行う。ステップ82.
2では入力された単語の第1文字目を識別して大見出し
記憶部41をアクセスし、中見出し記憶部42のオフセ
ット量を読み出す。そして入力された単語の第2文字目
を識別して先に読み出された中見出し記憶部42のオフ
セット位置からアクセスして第2文字目の文字コードの
見出しを検索する。以降、中見出し記憶部42から小見
出し記憶部43を小見出し記憶部43から意味記憶部4
4をアクセスして、入力した単語の意味や、その他の情
報を読み出す。そしてスデップ82.3で読み出したデ
ータを表示部3に表示して処理を終了する。
FIG. 6 is a flowchart showing the control procedure of this embodiment. At step 82.1, the character data input from the input section 1 is accepted. Here, the input character data is stored in the memory 6 until word delimiter data is input. When the word delimiter data is input, the process moves to step S2.2 and a word search is performed. Step 82.
In step 2, the first character of the input word is identified, the large heading storage section 41 is accessed, and the offset amount in the medium heading storage section 42 is read out. Then, the second character of the input word is identified and accessed from the previously read offset position of the middle heading storage section 42 to search for the heading of the character code of the second character. Thereafter, the subheading storage section 43 is transferred from the medium heading storage section 42 to the meaning storage section 4 from the subheading storage section 43.
4 to read out the meaning of the input word and other information. Then, the data read out in step 82.3 is displayed on the display unit 3, and the process ends.

以下に入力文字列が[dictionaryJの場合の
辞書検索の例を第6図を用いて説明する。
An example of dictionary search when the input character string is [dictionaryJ] will be described below with reference to FIG.

まず、大見出しにおいて、1文字目のdの文字に対応す
る部分の値を調べる。この値が、中見出しの検索位置(
中見出しの先頭からのオフセット)となる。次に、中見
出しの検索位置から、中見出しのインデックス部と2文
字目の1の照合を行ない、一致したところで値を調べこ
の値を小見出しの検索位置(小見出しの先頭からのオフ
セット)とする。小見出しにおいて、小見出しの検索位
置から、小見出しのインデックス部と3文字目のCの照
合を行ない、一致したところで、値を調べこの値を辞書
部における、検索位置として、4文字目以降の文字(t
ionary)について照合を行ない、該当単語の情報
を得る。
First, in the main heading, the value of the part corresponding to the first character d is checked. This value is the search position for the middle heading (
(offset from the beginning of the middle heading). Next, from the search position of the medium heading, the index part of the medium heading is compared with the second character 1, and when there is a match, the value is checked and this value is set as the search position of the subheading (offset from the beginning of the subheading). In the subheading, from the search position of the subheading, the index part of the subheading is compared with the third character C. When a match is found, the value is checked and this value is used as the search position in the dictionary part.
ionary) to obtain information on the corresponding word.

尚、以上の説明においては英語を例に説明したが仮名デ
ータにおいても本発明は効果を奏する。
Although the above explanation has been made using English as an example, the present invention is also effective with kana data.

発明の効果 以上のように本発明は、入力された単語の第1文字目で
特定される領域内を第2文字目で検索するようにしたの
で、検索のためにアクセスすべき領域が縮少される。従
って、入力された単語の検索時間を大幅に縮少すること
ができる。
Effects of the Invention As described above, in the present invention, since the area specified by the first character of the input word is searched by the second character, the area to be accessed for the search is reduced. be done. Therefore, the time required to search for input words can be significantly reduced.

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

第1図は本発明の一実施例における単語検索装置の構成
を示すブロック図、第2図は大見出しの構造を示す概略
図、第3図は中見出しの構造を示す概略図、第4図は小
見出しの構造を示す概略図、第6図は本実施例の制御手
順を示すフローチャート、第6図は検索例を示す概略図
である。
FIG. 1 is a block diagram showing the configuration of a word search device according to an embodiment of the present invention, FIG. 2 is a schematic diagram showing the structure of a large heading, FIG. 3 is a schematic diagram showing the structure of a medium heading, and FIG. 6 is a schematic diagram showing the structure of a subheading, FIG. 6 is a flowchart showing the control procedure of this embodiment, and FIG. 6 is a schematic diagram showing a search example.

Claims (1)

【特許請求の範囲】[Claims] 複数の文字の一つ一つを見出しとして、入力された単語
の第1文字目が当該見出しと一致した場合の検索領域を
示すデータを記憶した第1記憶領域と、前記第1記憶領
域に記憶されたデータによって示される領域毎に、複数
の文字の一つ一つを見出しとして、入力された単語の第
2文字目が当該見出しと一致した場合の検索領域を示す
データを記憶した第2記憶領域と、入力された単語を構
成する文字列の第1文字目の文字で前記第1記憶領域を
検索し、そこから得られたデータによって示される前記
第2記憶領域の検索領域を入力された単語を構成する文
字列の第2文字目の文字で検索し、そこから得られたデ
ータによって示される検索領域から入力された単語に関
するデータを読み出す検索手段とを有することを特徴と
する単語検索装置。
a first storage area that stores data indicating a search area where each of the plurality of characters is used as a heading and the first character of the input word matches the heading; and a first storage area that stores data in the first storage area. a second memory storing data indicating a search area when the second character of the input word matches the heading, with each of the plurality of characters as a heading for each area indicated by the data; The first storage area is searched using the area and the first character of the character string constituting the input word, and the search area of the second storage area indicated by the data obtained therefrom is searched for the input word. A word search device comprising a search means for searching using the second character of a character string constituting a word and reading out data related to the input word from a search area indicated by the data obtained therefrom. .
JP1255626A 1989-09-29 1989-09-29 Word retrieving device Pending JPH03118661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1255626A JPH03118661A (en) 1989-09-29 1989-09-29 Word retrieving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1255626A JPH03118661A (en) 1989-09-29 1989-09-29 Word retrieving device

Publications (1)

Publication Number Publication Date
JPH03118661A true JPH03118661A (en) 1991-05-21

Family

ID=17281365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1255626A Pending JPH03118661A (en) 1989-09-29 1989-09-29 Word retrieving device

Country Status (1)

Country Link
JP (1) JPH03118661A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05120344A (en) * 1991-10-29 1993-05-18 Meidensha Corp Electronic dictionary
JP2008134688A (en) * 2006-11-27 2008-06-12 Hitachi Ltd Symbol column retrieval method, program and device and generation method for its try, program and device
JP4911028B2 (en) * 2005-02-24 2012-04-04 富士ゼロックス株式会社 Word translation device, translation method, and translation program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05120344A (en) * 1991-10-29 1993-05-18 Meidensha Corp Electronic dictionary
JP4911028B2 (en) * 2005-02-24 2012-04-04 富士ゼロックス株式会社 Word translation device, translation method, and translation program
JP2008134688A (en) * 2006-11-27 2008-06-12 Hitachi Ltd Symbol column retrieval method, program and device and generation method for its try, program and device

Similar Documents

Publication Publication Date Title
JPS619753A (en) Automatic registering method of frequent phrase for document processor
US5950184A (en) Indexing a database by finite-state transducer
JPH03118661A (en) Word retrieving device
JP2595934B2 (en) Kana-Kanji conversion processor
JP2792147B2 (en) Character processing method and device
JP2000331023A (en) Information retrieval device and storage medium with information retrieval processing program stored
JP2975529B2 (en) Electronic dictionary search device
JP3187671B2 (en) Electronic dictionary display
JPS6246029B2 (en)
JPH0353378A (en) Name retrieving system for retrieval of family name of same-pronunciation/different-character and different-character/same-pronunciation
JPH0638254B2 (en) Kana-Kanji conversion device
JPH0991304A (en) Method, system, and storage means for information retrieval
JP3526074B2 (en) Character processor
JPH01292576A (en) Constitution and maintenance system for electronic dictionary
JPH07168848A (en) Word dictionary retrieval device
JPS6198475A (en) Japanese sentence input device
JPH0236988B2 (en)
JPH0462664A (en) Data retrieving device
JPH03127254A (en) Word retrieving device
JPH07129568A (en) Method and device for character processing
JPH04316162A (en) Morpheme analyzing device
JPH03110673A (en) Electronic dictionary
JPH0830631A (en) Dictionary retrieving system
JPH0245872A (en) Cd-rom retrieving device
JPH03110674A (en) Electronic dictionary