JPH06149787A - Japanese syllabary-to-chinese character converting device - Google Patents

Japanese syllabary-to-chinese character converting device

Info

Publication number
JPH06149787A
JPH06149787A JP4302495A JP30249592A JPH06149787A JP H06149787 A JPH06149787 A JP H06149787A JP 4302495 A JP4302495 A JP 4302495A JP 30249592 A JP30249592 A JP 30249592A JP H06149787 A JPH06149787 A JP H06149787A
Authority
JP
Japan
Prior art keywords
dictionary
reading
character string
conversion
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
JP4302495A
Other languages
Japanese (ja)
Inventor
Takao Kato
隆夫 加藤
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP4302495A priority Critical patent/JPH06149787A/en
Publication of JPH06149787A publication Critical patent/JPH06149787A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】 【目的】 かな漢字変換の辞書検索処理で無駄な検索処
理を行なわないようにする。 【構成】 辞書中の単語について、読みの先頭文字ごと
にその読みで始まる単語の読みの最大値を辞書索引デー
タ中に持って利用する。
(57) [Summary] [Purpose] To avoid unnecessary search processing in dictionary search processing for Kana-Kanji conversion. [Structure] With respect to a word in a dictionary, the maximum value of the reading of a word starting with the reading is held in the dictionary index data for use.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、かな漢字変換中の辞書
検索処理を行う際に、あらかじめ設けられた読みの先頭
文字ごとの最大文字数の索引を用いることによって効率
のよい辞書検索を行えるかな漢字変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention, when performing a dictionary search process during Kana-Kanji conversion, uses a preset index of the maximum number of characters for each leading character of reading to enable efficient dictionary search. Regarding the device.

【0002】[0002]

【従来の技術】従来、かな漢字変換装置における変換辞
書は、読みの文字コード順に単語が格納されることが多
く、その場合にはさらに読みの先頭文字ごとにその文字
から読みが始まる単語の先頭格納位置をアドレスで表わ
すような索引を設けたりすることにより、効率的な辞書
検索を行えるように構成されている。
2. Description of the Related Art Conventionally, in a conversion dictionary in a kana-kanji conversion device, words are often stored in the order of reading character codes. In that case, for each leading character of reading, the beginning storage of the word starting reading from that character is performed. By providing an index that represents a position by an address, an efficient dictionary search can be performed.

【0003】同時に、辞書検索処理は入力された読み文
字列を順に分割してその読みの単語が辞書中に存在する
かどうかを検索するわけである。その際辞書検索処理で
はまず辞書中の単語の最大読み文字数で読みを分割して
検索し、なかったときは1文字づつ読みを短くして検索
を繰り返すように処理を行なうのが普通である。
At the same time, the dictionary search process divides the input phonetic character string in order and searches whether the word of the phonetic word exists in the dictionary. At that time, in the dictionary search processing, it is usual to divide the reading by the maximum number of reading characters of the word in the dictionary and to search, and if there is not, to shorten the reading one character at a time and repeat the search.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記の
ように検索する読み文字列の初期値に全単語の最大読み
文字数を用いている以上、どうしても不必要な辞書検索
処理を行なっていることになり、処理に余分な時間がか
かるという問題があった。
However, since the maximum number of reading characters of all words is used as the initial value of the reading character string to be searched as described above, it means that unnecessary dictionary search processing is performed. There was a problem that it took extra time to process.

【0005】本発明は、上述した問題点を解決するため
になされたものであり、変換辞書を構成する際に単語の
読みの先頭文字ごとにその読みで始まる単語の中での最
大読み文字数を一覧にした索引を作成しておき、辞書検
索処理時に検索する読み文字列の先頭の文字によって検
索する文字数を設定することにより、効率のよい辞書検
索処理を行なえるかな漢字変換装置を提供しようとする
ものである。
The present invention has been made in order to solve the above-mentioned problems, and when the conversion dictionary is constructed, the maximum number of reading characters in the word starting with the reading is determined for each leading character of the reading of the word. To create a kana-kanji conversion device that can perform efficient dictionary search processing by creating a list of indexes and setting the number of characters to be searched by the first character of the reading character string that is searched during dictionary search processing. It is a thing.

【0006】[0006]

【課題を解決するための手段】この目的を達成するため
に本発明のかな漢字変換装置は、読み文字列等を入力す
る入力手段と、読み文字列および候補文字列等を表示す
る表示手段と、単語の読みと表記と品詞等の情報を記憶
する変換辞書部と、変換辞書中の単語の読みの先頭文字
ごとに、その読みで始まる単語のなかでの最大読み文字
数を一覧できるよう構成した索引を記憶する変換辞書索
引部と、前記入力手段より入力された読み文字列を前記
変換辞書部と前記変換辞書索引部を用いて候補文字列に
変換するかな漢字変換手段で、かな漢字変換手段のうち
辞書検索時に、変換辞書索引部の情報を用いて辞書検索
文字数の設定を行う辞書検索手段を備えたことを特徴と
する。
To achieve this object, a kana-kanji conversion device of the present invention comprises an input means for inputting a reading character string and the like, and a display means for displaying the reading character string and a candidate character string and the like. A conversion dictionary unit that stores information such as word reading, notation, and part-of-speech, etc., and an index configured to list the maximum number of reading characters in words starting with that reading for each leading character of the word reading in the conversion dictionary And a kana-kanji conversion means for converting a reading character string input by the input means into a candidate character string by using the conversion dictionary part and the conversion dictionary index part. It is characterized in that a dictionary search means for setting the number of dictionary search characters by using the information of the conversion dictionary index section at the time of search is provided.

【0007】[0007]

【作用】上記の構成を有する本発明のかな漢字変換装置
では、辞書検索処理中で読み文字列の検索する文字数を
設定する際に、あらかじめ設けられた索引から読みの先
頭文字ごとに違う文字数が設定されて検索が行なわれる
ため、不必要な辞書検索処理を減らすことができる。
In the kana-kanji conversion device of the present invention having the above-described structure, when the number of characters to be searched for the reading character string is set during the dictionary search processing, a different number of characters is set for each leading character of the reading from the index provided in advance. As a result, the unnecessary dictionary search processing can be reduced.

【0008】[0008]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0009】図2は本発明を具体化したかな漢字変換装
置の構成を示すブロック図である。本実施例のかな漢字
変換装置1は、文字や指示等を入力するキーボード2、
文字や図形を表示するディスプレイ3、文字や図形を印
字するプリンタ4及びこれらに接続され文書の入力・変
換・編集・印刷を制御する機能を備えた電子制御装置5
等から構成されている。
FIG. 2 is a block diagram showing the configuration of a kana-kanji conversion device embodying the present invention. The kana-kanji conversion device 1 of the present embodiment includes a keyboard 2 for inputting characters and instructions,
A display 3 for displaying characters and figures, a printer 4 for printing characters and figures, and an electronic control unit 5 connected to these and having a function of controlling input / conversion / editing / printing of documents
Etc.

【0010】キーボード2には、文字を入力する文字キ
ー、入力されたかな文字列を漢字に変換する変換キー、
変換時の変換文字列の選択等、各種動作の実行を行う改
行実行キー、文書中の文字入力位置等を変えるカーソル
キー等が設けられており、使用者はこれらのキーを操作
することによって、文書の入力、変換、編集、印刷等の
指示を前記電子制御装置5に与える。
The keyboard 2 includes a character key for inputting characters, a conversion key for converting the input kana character string into kanji,
A line feed execution key for executing various operations such as selection of the conversion character string at the time of conversion, a cursor key for changing the character input position in the document, etc. are provided, and the user can operate these keys to Instructions such as document input, conversion, editing, and printing are given to the electronic control unit 5.

【0011】電子制御装置5は、周知のCPU10、R
OM11、RAM12等を中心に算術倫理演算回路とし
て構成され、上記したキーボード2等の外部装置の入出
力信号をCPU10の処理可能な信号に変換する入出力
ポート13等を備えている。
The electronic control unit 5 is a well-known CPU 10 and R.
The arithmetic ethics operation circuit mainly includes the OM 11 and the RAM 12, and includes an input / output port 13 for converting an input / output signal of the external device such as the keyboard 2 described above into a signal processable by the CPU 10.

【0012】前記ROM11には、後述するかな漢字変
換処理のプログラムが格納される領域のほかに、この変
換処理で使用される辞書データが格納される領域11
a、辞書索引データが格納される領域11b等が設けら
れる。
In the ROM 11, in addition to an area for storing a program for kana-kanji conversion processing described later, an area 11 for storing dictionary data used in this conversion processing.
a, an area 11b for storing dictionary index data, and the like are provided.

【0013】又、前記RAM12には、作成された文書
が格納される領域12a、かな漢字変換処理に用いられ
る作業領域12b等が設けられる。
Further, the RAM 12 is provided with an area 12a for storing a created document, a work area 12b used for kana-kanji conversion processing, and the like.

【0014】本実施例のROM11bに記憶されている
辞書索引データの詳細の一部を示したのが図3である。
FIG. 3 shows a part of the details of the dictionary index data stored in the ROM 11b of this embodiment.

【0015】辞書データ中では単語が読みの順に格納さ
れており、その読みの先頭文字に対する索引として辞書
索引データが構成される。具体的には、それぞれの読み
の先頭文字1文字と、その読みで始まる単語群の辞書デ
ータ中での位置を表わすアドレス値、さらにその読みで
始まる単語群のうちでの読み文字数の最大値が対になっ
て格納されている。
Words are stored in the dictionary data in the order of reading, and dictionary index data is constructed as an index for the first character of the reading. Specifically, the first character of each reading, the address value indicating the position in the dictionary data of the word group starting with that reading, and the maximum number of reading characters in the word group starting with that reading are Stored in pairs.

【0016】本実施例のかな漢字変換処理を説明する。The kana-kanji conversion processing of this embodiment will be described.

【0017】本実施例のかな漢字変換はいわゆる最長一
致法を用いている。この最長一致法とは、入力された文
字列と対応する変換文字列について辞書中を検索し、対
応する変換文字列がないときには、入力文字列の区切り
位置を末尾から一字づつ先頭側にずらし、検索する文字
列を短くしながら対応する変換文字列を検索していく方
法である。本実施例では、上記変換文字列を検索する文
字数の設定に従来のようにあらかじめ決めた値を用いる
のではなく、検索対象となる先頭の文字によりそれぞれ
異なった値を用いる点が従来と異なる。
The kana-kanji conversion of this embodiment uses the so-called longest matching method. This longest matching method searches the dictionary for a conversion character string that corresponds to the input character string, and when there is no corresponding conversion character string, shifts the delimiter position of the input character string from the end to the beginning by one character. , Is a method of searching for a corresponding converted character string while shortening the character string to be searched. The present embodiment is different from the conventional one in that a predetermined value is not used for setting the number of characters for searching the converted character string as in the related art, but different values are used depending on the leading character to be searched.

【0018】図4の流れ図を用いて、電子制御装置5の
ROM11に記憶されている本実施例のかな漢字変換処
理について詳述する。
The Kana-Kanji conversion processing of this embodiment stored in the ROM 11 of the electronic control unit 5 will be described in detail with reference to the flow chart of FIG.

【0019】本かな漢字変換処理は、キーボードから文
字が入力され変換キーが入力されることにより開始され
る。
This kana-kanji conversion processing is started when a character is input from the keyboard and a conversion key is input.

【0020】かな漢字変換処理が開始されると、S1で
かな漢字変換のための初期設定を行う。即ち、未検索の
文字列長LLに変換対象文字列の全体長を設定し、検索
先頭位置ポインタTLに0を設定する。
When the kana-kanji conversion process is started, initial setting for kana-kanji conversion is performed in S1. That is, the entire length of the conversion target character string is set to the unsearched character string length LL, and 0 is set to the search start position pointer TL.

【0021】続くS2では、変換対象文字列の中のTL
の位置の文字を判定し、辞書索引データ11bを参照す
ることにより検索文字数初期値DLを求める。S3で
は、未検索文字列長LLと検索文字数初期値DLのうち
で小さい方の値を検索文字数カウンタLに設定する。
In the subsequent S2, the TL in the character string to be converted
The character at the position is determined and the search character number initial value DL is obtained by referring to the dictionary index data 11b. In S3, the smaller value of the unsearched character string length LL and the search character number initial value DL is set in the search character number counter L.

【0022】S4では検索文字数カウンタLを判定し、
L=0であれば検索先頭位置ポインタTLの位置で前の
単語と文法的に接続できる単語が発見できなかったこと
になり、S5に処理が進む。L=0でなければS7の辞
書検索に進む。
In S4, the retrieval character number counter L is judged,
If L = 0, it means that no word that can be grammatically connected to the previous word was found at the position of the search start position pointer TL, and the process proceeds to S5. Unless L = 0, the process proceeds to the dictionary search of S7.

【0023】S5では検索先頭位置ポインタTLを判定
し、TL=0であれば変換対象文字列の先頭で辞書検索
に失敗したことになり、即ちかな漢字変換の失敗となり
処理を終了する。TL=0でないときにはS6に処理が
進み、検索先頭位置ポインタTLと検索文字数カウンタ
Lの値を既に作業領域12bに記憶されている前の単語
のものに戻し、その位置からの辞書検索のやり直しとな
りS7に進む。
In S5, the search start position pointer TL is determined, and if TL = 0, it means that the dictionary search fails at the start of the character string to be converted, that is, the kana-kanji conversion fails and the process ends. When TL = 0 is not satisfied, the process proceeds to S6, the values of the search start position pointer TL and the search character number counter L are returned to those of the previous word already stored in the work area 12b, and the dictionary search is restarted from that position. Proceed to S7.

【0024】S7では既に設定された検索先頭位置ポイ
ンタTL及び検索文字数カウンタLの検索条件に基づい
て、辞書データ11a内に検索対象部分と一致する読み
の単語がないかどうか検索する。そしてS8で検索によ
り単語が発見されたかどうかを判定し、発見されなかっ
た場合には、S13で検索文字数カウンタLを1少なく
してS4に戻って処理を繰り返す。
In step S7, based on the search conditions of the search start position pointer TL and the search character number counter L which have already been set, the dictionary data 11a is searched for a reading word that matches the search target portion. Then, in S8, it is determined whether or not a word is found by the search. If not found, the search character number counter L is decremented by 1 in S13, and the process returns to S4 to repeat the process.

【0025】一方発見された場合にはS9で、発見され
た単語が、既に作業領域12bに記憶されている前の単
語と文法的に接続するかどうかを判定する。これは辞書
データ11a中に格納されているそのぞれの単語が持つ
品詞情報と、品詞接続マトリックステーブルを用いて行
なわれる。
On the other hand, if found, it is determined at S9 whether the found word is grammatically connected to the previous word already stored in the work area 12b. This is performed by using the part-of-speech information held by each word stored in the dictionary data 11a and the part-of-speech connection matrix table.

【0026】S9で接続が不可と判定された場合には、
単語が発見できなかったこととして処理をS13に移し
処理を繰り返す。接続が可能と判定された場合には処理
はS10に進み、発見した単語をその単語に関する検索
先頭位置ポインタTL及び検索文字数カウンタLの値と
ともに作業領域12bに記憶する。
If it is determined in S9 that the connection is impossible,
As the word could not be found, the process is moved to S13 and the process is repeated. If it is determined that the connection is possible, the process proceeds to S10, and the found word is stored in the work area 12b together with the values of the search start position pointer TL and the search character number counter L regarding the word.

【0027】その後S11では、検索先頭位置ポインタ
TLを発見した単語の読みの文字数分、即ち検索文字数
カウンタLの値だけ増加させ、逆に未検索文字列長LL
はLの値だけ減少させる。そしてS12で、未検索文字
列長LLの値を判定し、LL=0でなければまだ変換対
象文字列が残っていることになり、S2に戻って処理を
続ける。LL=0であれば処理が変換対象文字列の末尾
まですんだことになり、かな漢字変換処理を終了する。
After that, in S11, the retrieval start position pointer TL is incremented by the number of reading characters of the found word, that is, the value of the retrieval character number counter L, and conversely the unretrieved character string length LL.
Reduces by the value of L. Then, in S12, the value of the unsearched character string length LL is determined. If LL = 0, the conversion target character string still remains, and the process returns to S2 to continue the processing. If LL = 0, it means that the processing has reached the end of the character string to be converted, and the kana-kanji conversion processing ends.

【0028】このようにして、変換対象文字列に対する
候補文字列が構成され、ディスプレイ3上で表示される
ことにより利用者に提示されることになる。
In this way, the candidate character string for the conversion target character string is constructed and presented to the user by being displayed on the display 3.

【0029】以上説明したように、本実施例では、変換
対象文字列の各部分を辞書検索するときに、その部分の
先頭文字に対する辞書索引データ中の文字数を最大値と
して検索処理を行なう。
As described above, in this embodiment, when each part of the conversion target character string is searched for in the dictionary, the search process is performed with the maximum number of characters in the dictionary index data for the first character of the part.

【0030】[0030]

【発明の効果】以上説明したことから明らかなように、
本発明のかな漢字変換装置では、辞書検索処理中で読み
文字列の検索する文字数を設定する際に、あらかじめ設
けられた索引から読みの先頭文字ごとに違う最大文字数
が設定されて検索が行なわれるため、不必要な辞書検索
処理を減らし、かな漢字変換処理を高速化することがで
きる。
As is apparent from the above description,
In the kana-kanji conversion device of the present invention, when the number of characters to be searched for the reading character string is set during the dictionary search processing, a different maximum number of characters is set for each leading character of the reading from the index provided in advance, and the search is performed. , It is possible to reduce unnecessary dictionary search processing and speed up kana-kanji conversion processing.

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

【図1】本実施例のクレーム対応図である。FIG. 1 is a diagram corresponding to a claim of the present embodiment.

【図2】本実施例のかな漢字変換装置のブロック図であ
る。
FIG. 2 is a block diagram of a kana-kanji conversion device according to the present embodiment.

【図3】本実施例の辞書索引データの詳細図である。FIG. 3 is a detailed diagram of dictionary index data according to the present embodiment.

【図4】本実施例のかな漢字変換処理の流れ図である。FIG. 4 is a flow chart of kana-kanji conversion processing according to the present embodiment.

【符号の説明】[Explanation of symbols]

1 かな漢字変換装置 2 キーボード 3 ディスプレイ 4 プリンタ 5 電子制御装置 10 CPU 11 ROM 11a 辞書データ 11b 辞書索引データ 12 RAM 12a 文書領域 12b 作業領域 1 Kana-Kanji conversion device 2 Keyboard 3 Display 4 Printer 5 Electronic control device 10 CPU 11 ROM 11a Dictionary data 11b Dictionary index data 12 RAM 12a Document area 12b Working area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 読み文字列等を入力する入力手段と、 読み文字列および候補文字列等を表示する表示手段と、 単語の読みと表記と品詞等の情報を記憶する変換辞書部
と、 変換辞書中の単語の読みの先頭文字ごとに、その読みで
始まる単語のなかでの最大読み文字数を一覧できるよう
構成した索引を記憶する変換辞書索引部と、 前記入力手段より入力された読み文字列を前記変換辞書
部と前記変換辞書索引部を用いて候補文字列に変換する
かな漢字変換手段で、 かな漢字変換手段のうち辞書検索時に、変換辞書索引部
の情報を用いて辞書検索文字数の設定を行う辞書検索手
段を備えたことを特徴とするかな漢字変換装置。
1. An input unit for inputting a reading character string and the like, a display unit for displaying the reading character string and a candidate character string, a conversion dictionary unit for storing information such as reading and notation of a word, and a part of speech. A conversion dictionary index unit that stores an index configured to list the maximum number of reading characters in the words starting with the reading for each leading character of the reading in the dictionary, and a reading character string input by the input means. Is converted into a candidate character string using the conversion dictionary unit and the conversion dictionary index unit. When the Kana-Kanji conversion unit is searched for a dictionary, the number of dictionary search characters is set using the information in the conversion dictionary index unit. A kana-kanji conversion device characterized by having a dictionary search means.
JP4302495A 1992-11-12 1992-11-12 Japanese syllabary-to-chinese character converting device Pending JPH06149787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4302495A JPH06149787A (en) 1992-11-12 1992-11-12 Japanese syllabary-to-chinese character converting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4302495A JPH06149787A (en) 1992-11-12 1992-11-12 Japanese syllabary-to-chinese character converting device

Publications (1)

Publication Number Publication Date
JPH06149787A true JPH06149787A (en) 1994-05-31

Family

ID=17909650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4302495A Pending JPH06149787A (en) 1992-11-12 1992-11-12 Japanese syllabary-to-chinese character converting device

Country Status (1)

Country Link
JP (1) JPH06149787A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014191778A (en) * 2013-03-28 2014-10-06 Fujitsu Ltd Document preparation support device, document preparation support program, and document preparation support method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014191778A (en) * 2013-03-28 2014-10-06 Fujitsu Ltd Document preparation support device, document preparation support program, and document preparation support method

Similar Documents

Publication Publication Date Title
JPH0762848B2 (en) Electronic dictionary
JPH11328166A (en) Computer-readable recording medium recording character input device and character input processing program
JPH06149787A (en) Japanese syllabary-to-chinese character converting device
JPH08185396A (en) Chinese kanji retrieval system
JP2833650B2 (en) Document processing device
JPH0683807A (en) Document preparing device
JPH0721174A (en) Kana-Kanji converter
JP2633978B2 (en) Kana-Kanji conversion method
JP2575650B2 (en) Kana-Kanji conversion device
JP3070761B2 (en) Kanji input device
JP3052339B2 (en) Document data processing device
JPH052578A (en) Kana-Kanji conversion method
JP3155600B2 (en) Information retrieval device
JPH08297664A (en) Character string processor
JPH0520303A (en) Japanese document processor
JPH0628337A (en) Kana/kanji converter
JPS63229563A (en) Index production system
JPH09114814A (en) Character processor
JPH07325815A (en) Kana/kanji conversion system
JPH07160697A (en) Document processor
JPH0131229B2 (en)
JPS63257862A (en) character processing device
JPH0497477A (en) Document processor
JPH08287062A (en) Character processing apparatus and method
JPH0581262A (en) 'kana'/'kanji' converter