JPH0573539A - Kana/kanji conversion device - Google Patents
Kana/kanji conversion deviceInfo
- Publication number
- JPH0573539A JPH0573539A JP3236296A JP23629691A JPH0573539A JP H0573539 A JPH0573539 A JP H0573539A JP 3236296 A JP3236296 A JP 3236296A JP 23629691 A JP23629691 A JP 23629691A JP H0573539 A JPH0573539 A JP H0573539A
- Authority
- JP
- Japan
- Prior art keywords
- rule
- word
- kana
- conversion
- dictionary
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 120
- 240000000220 Panda oleosa Species 0.000 title description 8
- 235000016496 Panda oleosa Nutrition 0.000 title description 8
- 230000014509 gene expression Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 27
- 239000004575 stone Substances 0.000 description 25
- 239000003550 marker Substances 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 102100032352 Leukemia inhibitory factor Human genes 0.000 description 2
- 108090000581 Leukemia inhibitory factor Proteins 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 102220031962 rs431825177 Human genes 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】
【目的】 かな漢字変換装置の変換効率を向上する。
【構成】 本発明のかな漢字変換装置は、図2に示すよ
うに、かな読み文字列は入力装置から入力され、かな漢
字変換するかな漢字変換プログラムは単語の読みに対す
る表記を記憶した基本辞書と、前記基本辞書中の単語の
優先順序を記憶するための単語順記憶領域とを参照しか
な漢字変換を行う。規則検索プログラムは前記基本辞書
の複数の単語列のパターンとその書換え情報を持つ規則
を記憶した規則辞書と、前記変換結果記憶手段の内容に
ついて前記規則辞書中の規則と一致するものを検索す
る。規則書き換えプログラムは、一致した規則が検索さ
れたとき、該当の変換結果記憶手段の内容を書き換え
る。出力手段は、前記変換結果記憶手段の内容をかな漢
字文字列として出力する。そして、学習処理プログラム
は前記単語順記憶手段の内容を変更をする。
(57) [Abstract] [Purpose] To improve the conversion efficiency of the Kana-Kanji conversion device. According to the kana-kanji conversion device of the present invention, as shown in FIG. 2, a kana-reading character string is input from an input device, and a kana-kanji conversion program for kana-kanji conversion stores a basic dictionary storing expressions for word reading, and Kanji conversion is performed by referring to the word order storage area for storing the priority order of words in the dictionary. The rule search program searches for a rule dictionary that stores patterns of a plurality of word strings in the basic dictionary and rules having rewriting information thereof, and a content of the conversion result storage means that matches a rule in the rule dictionary. The rule rewriting program rewrites the contents of the corresponding conversion result storage means when a matching rule is retrieved. The output means outputs the contents of the conversion result storage means as a kana-kanji character string. Then, the learning processing program changes the contents of the word order storage means.
Description
【0001】[0001]
【産業上の利用分野】本発明は、日本語ワードプロセッ
サ等のかな漢字変換装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a kana-kanji conversion device such as a Japanese word processor.
【0002】[0002]
【従来の技術】従来、この種のかな漢字変換装置におい
ては、特開平3−142658号公報で開示されている
ように、単語の読みに対する漢字等の表記を記憶した基
本辞書を参照してかな漢字変換を行い、変換結果記憶部
にかな漢字変換結果を記憶し、複数の単語列のパターン
とその書換え情報とを一組の規則として格納したものを
規則辞書として設け、その規則辞書中の規則と一致した
規則が検索されたとき、前記かな漢字変換結果の内容を
書き換え、表示装置により表示するようにしたものが知
られていた。また、このような一連の作用を規則変換と
称していた。2. Description of the Related Art Conventionally, in this type of kana-kanji conversion device, kana-kanji conversion is performed by referring to a basic dictionary storing notations such as kanji for reading a word, as disclosed in Japanese Patent Laid-Open No. 3-142658. The kana-kanji conversion result is stored in the conversion result storage unit, and a pattern in which a plurality of word string patterns and their rewriting information are stored as a set of rules is provided as a rule dictionary, and the rules in the rule dictionary are matched. It has been known that the contents of the Kana-Kanji conversion result are rewritten and displayed on a display device when a rule is searched. Moreover, such a series of actions was called rule conversion.
【0003】例えば、「はしをつくる」と入力した場合
に、基本辞書を参照してかな漢字変換を行うとき、基本
辞書中に「端」、「橋」、「箸」の順に記憶されていた
場合は、第一候補の「端」が出力され、「端を作る」と
いう誤変換が表示される。そして、その「端を作る」と
いう変換結果が変換結果記憶部に記憶される。For example, when inputting "make a chopstick", when kana-kanji conversion is performed by referring to the basic dictionary, "end", "bridge", and "chopsticks" are stored in this order in the basic dictionary. In this case, the first candidate “edge” is output and the incorrect conversion “make an edge” is displayed. Then, the conversion result of "making an edge" is stored in the conversion result storage unit.
【0004】次いで、規則辞書を参照して規則変換を行
うとき、規則辞書中に<D−はし:箸><U−を:N>
<D−つく:作><U−る:N>というパターンが記憶
されていれば、「D」因子は読みで一致を表すので、変
換結果記憶部に記憶されている「端を作る」の「端」の
部分を「箸」に書き換えて、「箸を作る」という正しい
変換結果が出力されるものであった。Next, when the rule conversion is performed by referring to the rule dictionary, <D-chopsticks: chopsticks><U-:N> in the rule dictionary.
If the pattern <D-Tsuku: Saku><U-Ru:N> is stored, the “D” factor indicates a match in reading, so that the “Make an edge” stored in the conversion result storage unit. The "edge" part was rewritten as "chopsticks" and the correct conversion result of "making chopsticks" was output.
【0005】しかし、「橋を造る」とも変換したい場合
には、規則変換後「箸」を「橋」に「作る」を「造る」
に再変換する必要があった。これを解決するためには、
「はしをつくる」という読みに対して、規則辞書中に<
U−箸:N><U−を:N><D−つく:作><U−
る:N>と、<U−橋:N><U−を:N><D−つ
く:造><U−る:N>という2種類の規則を登録する
ことも考えられる。この場合、同じ読みに対する規則な
ので、適用する規則を区別するため、どちらの規則も先
頭項目は、読み及び表記との完全一致を意味する「U」
因子を設けていた。However, when it is desired to convert "building a bridge" into "building a bridge", after converting the rules, "make" is made into "bridge" from "chopsticks".
Had to be reconverted to. To solve this,
In response to the reading "make a chopstick", <
U-Chopsticks: N><U-:N><D- Tsuku: Work><U-
It is also conceivable to register two types of rules: R: N> and <U-bridge: N><U-:N><D-Tsuku:Zukuri><U-ru:N>. In this case, since the rules are for the same reading, in order to distinguish the rules to be applied, the first item of both rules is "U" which means a perfect match with the reading and the notation.
There was a factor.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、前記規
則変換処理を行う場合に、ユーザーが「箸を作る」とい
う文字列を出力したいときに、基本辞書中に「端」、
「橋」、「箸」の順に記憶されていると、「端を創る」
と変換され、規則辞書中に<U−箸:N><U−を:N
><D−つく:作><U−る:N>と、<U−橋:N>
<U−を:N><D−つく:造><U−る:N>という
2種類の規則があっても、どちらの規則も適用されない
ため規則規則変換処理が行われず、ユーザーの希望しな
い「端を創る」という文字列がそのまま出力された。従
って、希望どおりに変換するためにユーザーが「端」の
部分を漢字の「箸」に変換し直したり、また、「創る」
の部分を「作る」に変換し直していた。However, when performing the rule conversion process, when the user wants to output the character string "make chopsticks", "end" in the basic dictionary,
If "bridge" and "chopsticks" are stored in this order, "create the edge"
<U-chopsticks: N><U-:: N in the rule dictionary
><D-Tsuku:Saku><U-ru:N> and <U-Bridge: N>
Even if there are two types of rules, <U-: N><D- Tsuku: Zukuri><U-ru:N>, neither rule is applied and the rule conversion process is not performed, which is not desired by the user. The character string "create the edge" was output as is. Therefore, in order to convert as desired, the user can re-convert the "end" part into the kanji "chopsticks" or "create".
The part of was converted to "make" again.
【0007】さらに、同じ「箸を作る」という文字列を
繰り返し使用したいときでも、基本辞書中の漢字の順番
が変わらないため、「端を創る」と変換され、規則変換
処理を受けないため、前記と同じ再変換作業を繰り返さ
なければならなかった。Furthermore, even when the same character string "make chopsticks" is to be repeatedly used, the order of the kanji in the basic dictionary does not change, so that it is converted to "create an end" and is not subjected to rule conversion processing. The same reconversion work as described above had to be repeated.
【0008】本発明では、上記問題点を解決するために
なされたものであり、規則辞書を用いた規則変換をした
上で、ユーザーの好みにあった変換結果を提供し、一度
ユーザーが好みにあった漢字を選択した後は、繰り返し
同じ文字列を変換するときに同じ漢字選択の操作をする
煩わしさを解消できるかな漢字変換装置を提供すること
を目的とする。The present invention has been made in order to solve the above-mentioned problems, and after performing rule conversion using a rule dictionary, a conversion result suited to the user's preference is provided, so that the user can change the preference once. It is an object of the present invention to provide a kana-kanji conversion device that can eliminate the troublesome operation of selecting the same kanji when repeatedly converting the same character string after selecting the existing kanji.
【0009】[0009]
【課題を解決するための手段】この問題を解決するため
に本発明のかな漢字変換装置は、図1に示すように、か
な読み文字列を入力するための入力手段と、単語の読み
に対する表記を記憶した基本辞書と、前記基本辞書中の
単語の優先順序を記憶するための単語順記憶手段と、前
記基本辞書と単語順記憶手段を参照し、かな漢字変換す
るかな漢字変換手段と、前記基本辞書の複数の単語列の
パターンとその書換え情報を持つ規則を記憶した規則辞
書と、前記変換結果記憶手段の内容について前記規則辞
書中の規則と一致するものを検索する規則検索手段と、
一致した規則が検索されたとき、該当の変換結果記憶手
段の内容を書き換える規則書き換え手段と、前記変換結
果記憶手段の内容をかな漢字文字列として出力するため
の出力手段と、その出力結果により、前記単語順記憶手
段の内容を変更をするための学習処理手段と、を備えた
ものである。In order to solve this problem, a kana-kanji conversion device of the present invention, as shown in FIG. 1, has an input means for inputting a kana-reading character string and a notation for word reading. The stored basic dictionary, the word order storage means for storing the priority order of the words in the basic dictionary, the kana-kanji conversion means for kana-kanji conversion by referring to the basic dictionary and the word order storage means, and the basic dictionary A rule dictionary storing a rule having patterns of a plurality of word strings and its rewriting information, and a rule searching means for searching a content of the conversion result storing means that matches a rule in the rule dictionary,
When a matching rule is retrieved, the rule rewriting unit that rewrites the contents of the corresponding conversion result storage unit, the output unit that outputs the contents of the conversion result storage unit as a Kana-Kanji character string, and the output result Learning processing means for changing the contents of the word order storage means.
【0010】[0010]
【作用】上記の構成を有する本発明のかな漢字変換装置
では、かな読み文字列は、入力手段から入力され、かな
漢字変換手段で、単語の読みとそれに対応した表記を備
えた基本辞書及び単語順記憶手段に記憶されている単語
の順序を参照してかな漢字変換される。その後、かな漢
字変換された結果が変換結果記憶手段に格納され、規則
検索手段により規則辞書中に格納されている規則と変換
結果記憶手段に記憶されている文字とが一致するかどう
か検索される。次に、前記規則検索手段にて一致した規
則が検索されると、変換結果記憶手段に記憶されている
該当の内容を規則辞書に格納されている書換え情報に基
づいて書換え、変換結果記憶手段の内容をかな漢字文字
列にしたものが出力手段により出力される。そして、学
習処理手段により単語順記憶手段の内容を変更する。In the kana-kanji conversion device of the present invention having the above-mentioned structure, the kana-reading character string is input from the input means, and the kana-kanji conversion means stores a basic dictionary having word reading and corresponding notation and word-order storage. The kana-kanji conversion is performed by referring to the order of words stored in the means. After that, the result of the kana-kanji conversion is stored in the conversion result storage means, and the rule retrieval means searches for a match between the rule stored in the rule dictionary and the character stored in the conversion result storage means. Next, when the matching rule is searched by the rule searching means, the corresponding contents stored in the conversion result storing means are rewritten based on the rewriting information stored in the rule dictionary, The output means outputs the kana-kanji character string of the content. Then, the content of the word order storage means is changed by the learning processing means.
【0011】[0011]
【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.
【0012】かな漢字変換装置全体の構成を図2を参照
して説明する。The structure of the entire kana-kanji conversion device will be described with reference to FIG.
【0013】かな漢字変換をする文字列を入力するため
のキーボード等の入力装置10は、装置全体を制御する
ための中央処理装置(CPU)12に接続されている。
記憶手段としてのRAM20はCPU12に接続され、
かな漢字変換された結果を記憶するための変換結果記憶
領域22と、入力されたかな読み文字列を記憶するため
の読み入力バッファ領域24と、変換結果記憶領域22
の内容をかな漢字文字列として記憶するための出力バッ
ファ領域26と、ポインタ情報を記録するワークエリア
28と、学習情報中の単語の優先順位を記憶する単語順
記憶領域29とが格納されている。An input device 10 such as a keyboard for inputting a character string for Kana-Kanji conversion is connected to a central processing unit (CPU) 12 for controlling the entire device.
The RAM 20 as a storage means is connected to the CPU 12,
A conversion result storage area 22 for storing the result of kana-kanji conversion, a reading input buffer area 24 for storing the input kana reading character string, and a conversion result storage area 22.
An output buffer area 26 for storing the contents of the above as a kana-kanji character string, a work area 28 for recording pointer information, and a word order storage area 29 for storing the priority of words in the learning information are stored.
【0014】変換結果記憶領域22は、図3に示すよう
に、変換結果全体が単語単位で情報を付して記憶されて
おり、後述する基本辞書42中に記憶されているそれぞ
れの単語を識別するための固有の数値である単語ID2
2aと、単語の読み長22bと、単語の表記22cと、
同音語先頭ID22dと、同音語末尾ID22eがデー
タとして各単語ごとに記憶されている。In the conversion result storage area 22, as shown in FIG. 3, the entire conversion result is stored with information added word by word, and each word stored in a basic dictionary 42 described later is identified. Word ID2 that is a unique numerical value for
2a, word reading length 22b, word notation 22c,
The same-sound word start ID 22d and the same-sound word end ID 22e are stored as data for each word.
【0015】尚、同音語先頭ID22dは、入力装置1
0から入力された文字列(単語)と同音であり、基本辞
書42に記憶された単語ID22aの数値が最も小さい
ものを示すものである。また、同音語末尾ID22e
は、入力装置10から入力された文字列(単語)と同音
であり、基本辞書42に記憶された単語ID22aの数
値が最も大きいものを示すものである。The homophone head ID 22d is the same as the input device 1
This is the same sound as the character string (word) input from 0, and indicates the smallest numerical value of the word ID 22a stored in the basic dictionary 42. Also, the end of homophone ID22e
Indicates a character having the same sound as the character string (word) input from the input device 10 and having the largest numerical value of the word ID 22a stored in the basic dictionary 42.
【0016】プログラムや辞書等を格納するROM30
はCPU12と接続され、プログラム部32と辞書部4
0とからなる。プログラム部32は、かな漢字変換プロ
グラム34と、規則検索プログラム36と、規則書換え
プログラム38と,学習処理プログラム39とを格納し
ている。ROM 30 for storing programs, dictionaries, etc.
Is connected to the CPU 12, and the program section 32 and the dictionary section 4
It consists of 0 and. The program section 32 stores a kana-kanji conversion program 34, a rule retrieval program 36, a rule rewriting program 38, and a learning processing program 39.
【0017】辞書部40は基本辞書42と、接続テーブ
ル44と、規則辞書46とから構成されている。基本辞
書42は、図4に示すように、その単語の固有の識別番
号たる単語ID42aと、その単語の読み42bと、そ
の単語の漢字表記42cと、品詞情報42dと、単語の
読み長42eとが記憶されている。The dictionary unit 40 is composed of a basic dictionary 42, a connection table 44, and a rule dictionary 46. As shown in FIG. 4, the basic dictionary 42 includes a word ID 42a that is a unique identification number of the word, a reading 42b of the word, a kanji notation 42c of the word, part-of-speech information 42d, and a reading length 42e of the word. Is remembered.
【0018】接続テーブル44は、単語の同士の接続関
係を品詞情報により規定するデータを記憶している。The connection table 44 stores data that defines the connection relationship between words by means of part-of-speech information.
【0019】規則辞書46は、図5に示すように、一般
に規則の項目は、<検索因子−単語パターン:書換え情
報>という形で書かれており、この項目の組合せで一つ
の規則がつくられる仕組みになっている。検索因子と
は、規則変換の書き換え方法の種類を示すもので、U因
子、D因子、Y因子があり、U因子は変換結果記憶領域
22に記憶されている単語についての読み及び表記と完
全一致を意味し、D因子は変換結果記憶領域22に記憶
されている単語についての読みつまりその単語と同音で
一致を意味する。また、Y因子は変換結果記憶領域22
の中に記憶されている単語列(一単語でもよい)につい
ての読みとの一致を意味する。単語パターン47a〜4
7dとは、その規則の各々の項目の該当する単語のこと
を示し、ここには、検索因子に合わせて単語の読みや表
記が書かれている。In the rule dictionary 46, rule items are generally written in the form of <retrieval factor-word pattern: rewriting information>, and one rule is created by the combination of these items. It works. The search factor indicates a type of rule conversion rewriting method, and includes a U factor, a D factor, and a Y factor. The U factor is exactly the same as the reading and notation of the word stored in the conversion result storage area 22. The D factor means reading of a word stored in the conversion result storage area 22, that is, matching with the same sound as the word. The Y factor is the conversion result storage area 22.
Means a match with a reading of a word string (may be one word) stored in. Word patterns 47a-4
7d indicates the corresponding word of each item of the rule, and the reading and notation of the word are written here according to the search factor.
【0020】書換え情報は、無変化マーカーN、削除マ
ーカーD、または単語列のいずれかであり、無変化マー
カーNが格納されているときは規則辞書46の項目に一
致した変換結果記憶領域22中の単語をそのままにし、
書き換えないことを表す。また、削除マーカーDが格納
されているときはその項目を削除することを表し、単語
列のときは規則辞書46の項目と一致した変換結果記憶
領域22中の単語をその単語列に書き換えることを表し
ている。ここでいう単語列とは、複数の単語(一つの単
語だけでもよい)が規則辞書46に単語IDで記憶され
たものであり、この単語IDに基づいて基本辞書42を
参照することにより、変換結果記憶領域22の単語読み
長22b、同音語先頭ID22c、同音語末尾ID22
d等の設定が可能である。尚、図5においては、理解し
やすいように単語IDの部分を数値ではなく、読み、ま
たは表記で表している。The rewriting information is either the unchanged marker N, the deleted marker D, or the word string. When the unchanged marker N is stored, the rewriting information matches the item of the rule dictionary 46 in the conversion result storage area 22. Leave the word
Indicates that it will not be rewritten. When the deletion marker D is stored, it means to delete the item, and when it is a word string, the word in the conversion result storage area 22 that matches the item of the rule dictionary 46 is rewritten to the word string. It represents. The word string referred to here is a plurality of words (may be only one word) stored in the rule dictionary 46 by a word ID, and is converted by referring to the basic dictionary 42 based on this word ID. The word reading length 22b of the result storage area 22, the same-sound word start ID 22c, and the same-sound word end ID 22
It is possible to set d and the like. Note that, in FIG. 5, the word ID portion is not read as a numerical value but is read or written for easy understanding.
【0021】次に、このように構成されたかな漢字変換
装置の動作を図6のフローチャートを参照して説明す
る。Next, the operation of the kana-kanji conversion device thus constructed will be described with reference to the flowchart of FIG.
【0022】例えば、読み文字列「いしがかたい」が入
力装置10より入力されると、そのかな文字コードがR
AM20の読み入力バッファ領域24に記憶される(S
10)。その後、ROM30のかな漢字変換プログラム
34により基本辞書42と、単語順記憶領域29および
接続テーブル44を参照して、読み入力バッファ領域2
4に記憶されているかな文字コードが漢字かな混じり文
に変換され、変換結果記憶領域22にかな文字コードで
記憶される。以前に単語「石」が使われていて、単語順
記憶領域29の中で、単語「石」の単語IDが同音語
「意思」や「医師」の単語IDより先頭に記憶されてい
ると、単語「石」が優先され、漢字かな混じり文「石が
堅い」と変換され、変換結果記憶領域22に記憶される
(S12)。そして、ROM30の規則検索プログラム
36及び規則書換えプログラム38により、変換結果記
憶領域22の内容と規則辞書46を参照して規則変換処
理が行われる(S14)。For example, when a reading character string "Ishigatai" is input from the input device 10, the kana character code becomes R.
It is stored in the read input buffer area 24 of the AM 20 (S
10). Thereafter, the kana-kanji conversion program 34 of the ROM 30 refers to the basic dictionary 42, the word order storage area 29, and the connection table 44 to refer to the reading input buffer area 2
The kana character code stored in 4 is converted into a kanji / kana mixed sentence and stored in the conversion result storage area 22 as a kana character code. If the word “stone” has been used before, and the word ID of the word “stone” is stored at the beginning of the word IDs of the homonyms “will” and “doctor” in the word order storage area 29, The word “stone” is given priority, converted into a kanji-kana mixed sentence “stone is firm”, and stored in the conversion result storage area 22 (S12). Then, the rule retrieval program 36 and the rule rewriting program 38 of the ROM 30 perform the rule conversion process with reference to the content of the conversion result storage area 22 and the rule dictionary 46 (S14).
【0023】次に、規則変換処理の具体的な処理につい
て図7、図8、図9のフローチャートを参照して説明す
る。Next, a specific process of the rule conversion process will be described with reference to the flowcharts of FIGS. 7, 8 and 9.
【0024】まず、前記変換結果記憶領域22に記憶し
た「石が堅い」の先頭の単語「石」にポインタP1を設
定し、ポインタP1のポインタ情報がRAM20のワー
クエリア28に記憶される(S30)。First, the pointer P1 is set to the first word "stone" of "stone is hard" stored in the conversion result storage area 22, and the pointer information of the pointer P1 is stored in the work area 28 of the RAM 20 (S30). ).
【0025】次に、ポインタP1の指す単語と一致する
規則が規則辞書46中にあるか否かを検索する(S3
2)。図9に示す規則検索サブルーチンにおいては、ま
ず、ポインタP5を規則辞書46中の先頭の規則5−1
に設定し、ポインタ情報をワークエリア28に記録する
(S320)。次に、ポインタP6をポインタP5指す
規則5−1の先頭の項目46aに設定し、ポインタ情報
がワークエリア28に記憶される(S322)。次い
で、ポインタP7をポインタP1の指す変換結果記憶領
域22中のかな漢字変換結果の先頭の単語「石」に設定
する(S324)。Next, it is searched whether or not the rule matching the word pointed by the pointer P1 exists in the rule dictionary 46 (S3).
2). In the rule search subroutine shown in FIG. 9, first, the pointer P5 is set to the first rule 5-1 in the rule dictionary 46.
And the pointer information is recorded in the work area 28 (S320). Next, the pointer P6 is set to the head item 46a of the rule 5-1 which points the pointer P5, and the pointer information is stored in the work area 28 (S322). Next, the pointer P7 is set to the first word "stone" of the Kana-Kanji conversion result in the conversion result storage area 22 pointed to by the pointer P1 (S324).
【0026】ここでは、ポインタP6の指す規則<U−
意思:N>とポインタP7の指す変換結果記憶領域22
中の単語「石」を比較する(328)。この場合、規則
と単語は一致せず(S326・NO)、ポインタP5の
示す規則5−1が規則辞書46中で最後の規則ではない
ので(S328・NO)、ポインタP5を次の規則5−
2に移動しポインタ情報がワークエリア28に記憶され
(S330)、S322に戻る。次に、ポインタP6を
ポインタP5指す規則5−2の先頭の項目47aに設定
し、ポインタ情報がワークエリア28に記憶される(S
322)。次いで、ポインタP7をポインタP1の指す
変換結果記憶領域22中のかな漢字変換結果の先頭の単
語「石」に設定する(S324)。Here, the rule indicated by the pointer P6 <U-
Intention: N> and conversion result storage area 22 pointed to by pointer P7
The word "stone" inside is compared (328). In this case, the rule and the word do not match (S326 / NO), and the rule 5-1 indicated by the pointer P5 is not the last rule in the rule dictionary 46 (S328 / NO), so the pointer P5 is set to the next rule 5-.
2, the pointer information is stored in the work area 28 (S330), and the process returns to S322. Next, the pointer P6 is set to the head item 47a of the rule 5-2 which points the pointer P5, and the pointer information is stored in the work area 28 (S
322). Next, the pointer P7 is set to the first word "stone" of the Kana-Kanji conversion result in the conversion result storage area 22 pointed to by the pointer P1 (S324).
【0027】ここでは、ポインタP6の指す規則<U−
石:N>とポインタP7の指す変換結果記憶領域22中
の単語「石」を比較する(326)。この場合、規則と
単語は一致し(S326・YES)、ポインタP6が末
尾項目ではないので(S332・NO)、ポインタP7
を変換結果記憶領域22中に記憶されている「石」の次
の単語「が」に移動し、ポインタP6も規則5−2(4
7b)中の次の項目<U−が:N>(46b)に移動
し、そのポインタ情報をワークエリア28に記憶し(S
334)、前記326に戻る。Here, the rule indicated by the pointer P6 <U-
Stone: N> is compared with the word “stone” in the conversion result storage area 22 pointed to by the pointer P7 (326). In this case, the rule matches the word (S326, YES), and the pointer P6 is not the last item (S332, NO), so the pointer P7
Is moved to the word "ga" next to "stone" stored in the conversion result storage area 22, and the pointer P6 also moves to rule 5-2 (4
7b), the next item <U- is: N> (46b), and the pointer information is stored in the work area 28 (S
334), and the procedure returns to 326.
【0028】以下同様の手順を繰り返し、ポインタP7
を変換結果記憶領域22中の単語「堅」に、ポインタP
6を規則5−2中の項目<D−かた:硬>(47c)に
移動する(S334)。ポインタP6の示す項目<D−
かた:硬>(47c)は、D因子が付されており、読み
で一致を意味する。従って、ポインタP7の支持する単
語「堅」と一致し(S326・YES)、ポインタP6
の示す項目47cは末尾項目ではないので(S332・
NO)、ポインタP6を規則5−2中の次の項目<U−
い:N>に、ポインタP7を変換結果記憶領域22中の
次の単語「い」に進め、ポインタ情報をワークエリア2
8に記憶する(S334)。The same procedure is repeated thereafter, and the pointer P7
To the word "ken" in the conversion result storage area 22 and the pointer P
6 is moved to the item <D-Pattern: Hard> (47c) in Rule 5-2 (S334). Item indicated by pointer P6 <D-
Way: Hard> (47c), the factor D is added, which means that the reading is in agreement. Therefore, the word "ken" supported by the pointer P7 matches (S326, YES), and the pointer P6
The item 47c indicated by is not the last item (S332.
NO), the pointer P6 is set to the next item in the rule 5-2 <U-
I: N>, move the pointer P7 to the next word "i" in the conversion result storage area 22, and move the pointer information to the work area 2
No. 8 is stored (S334).
【0029】ポインタP6の示す項目<U−い:N>
と、ポインタP7の示す単語「い」は一致し(S326
・YES)、ポインタ情報P6は末尾項目なので(S3
32・YES)、ワークエリア28に規則フラグONを
記憶し(S336)、図7に示すS32に戻る。Item <U-Y: N> indicated by pointer P6
And the word “I” indicated by the pointer P7 match (S326
・ Yes, since the pointer information P6 is the last item (S3
32. YES), the rule flag ON is stored in the work area 28 (S336), and the process returns to S32 shown in FIG.
【0030】尚、一致する規則が検索されないとき(S
326・NO)は、ポインタP5の指す規則が規則辞書
中で最後の規則になるまで(S328・NO)、ポイン
タP5を順次、次の規則へ移動し(S330)、一致す
る規則を検索する(S322〜S330)。ポインタP
5が示す規則が、規則辞書で最後の規則となったときは
(S328・YES)、一致する規則がなかったことを
示す規則フラグOFFをワークエリア28に記憶する
(S338)。When a matching rule is not retrieved (S
(326 / NO) moves the pointer P5 to the next rule in sequence (S330) until the rule pointed to by the pointer P5 is the last rule in the rule dictionary (S328 / NO) and searches for a matching rule (S330). S322-S330). Pointer P
When the rule indicated by 5 is the last rule in the rule dictionary (S328, YES), the rule flag OFF indicating that there is no matching rule is stored in the work area 28 (S338).
【0031】ここでは、S32においてワークエリア2
8の規則フラグがONとなっているので(S34・YE
S)、規則書換えプログラム38による規則書換え処理
に入る。まず、ポインタP2をポインタP1の指す変換
結果記憶領域22に記憶した単語列「石が堅い」の先頭
の単語「石」に設定し、ポインタP2のポインタ情報を
ワークエリア28に記憶する(S36)。次いで、ポイ
ンタP3をポインタP7が指す変換結果記憶領域22に
記憶した単語列「石が堅い」の末尾の「い」に設定し、
ポインタP3の情報をワークエリア28に記憶する(S
38)。続いて、ポインタP4を規則辞書46中のマッ
チした規則5−2の先頭項目に設定し、ポインタP4の
ポインタ情報をワークエリア28に記憶する(S4
0)。規則辞書46中の規則5−2においてポインタP
4の指す先頭項目<U−石:N>(47a)は無変化マ
ーカーNが付与されている(S44・YES)ので、書
き換えずそのままにし、S46に進む。Here, in S32, the work area 2
Since the rule flag of No. 8 is ON (S34 ・ YE
S) Then, the rule rewriting process by the rule rewriting program 38 starts. First, the pointer P2 is set to the first word "stone" of the word string "stone is hard" stored in the conversion result storage area 22 pointed to by the pointer P1, and the pointer information of the pointer P2 is stored in the work area 28 (S36). .. Then, the pointer P3 is set to "i" at the end of the word string "stone is firm" stored in the conversion result storage area 22 pointed to by the pointer P7,
The information of the pointer P3 is stored in the work area 28 (S
38). Then, the pointer P4 is set to the head item of the matched rule 5-2 in the rule dictionary 46, and the pointer information of the pointer P4 is stored in the work area 28 (S4).
0). Pointer P in rule 5-2 in rule dictionary 46
Since the initial item <U-stone: N> (47a) indicated by 4 is provided with the unchanged marker N (S44, YES), it is left as it is without being rewritten, and the process proceeds to S46.
【0032】尚、ポインタP4の指す項目46b中の書
換え情報の場所に削除マーカーDが立っているときは
(S44・NO、S48・YES)、変換結果記憶領域
22のポインタP2の指す単語「石」を削除し(S5
0)、S46に進む。さらにポインタP4の指す項目4
7a中の書換え情報の場所に単語列があるときは(S4
4・NO、S48・NO、S52・YES)、変換結果
記憶領域22のポインタP2の指す単語「石」をその単
語列と書き換え(S54)、S46に進む。When the deletion marker D is set at the location of the rewriting information in the item 46b pointed to by the pointer P4 (S44.NO, S48.YES), the word "stone" pointed to by the pointer P2 in the conversion result storage area 22. Is deleted (S5
0), the process proceeds to S46. Item 4 pointed to by pointer P4
When there is a word string at the location of the rewriting information in 7a (S4
4 · NO, S48 · NO, S52 · YES), the word “stone” pointed to by the pointer P2 in the conversion result storage area 22 is rewritten with the word string (S54), and the process proceeds to S46.
【0033】S46においては、ポインタP2の指す単
語とポインタP3の指す単語が同じか比較する。つま
り、ポインタP2指す単語とポインタP3の指す単語が
等しいときは、ポインタP2が最後の単語まで進んだこ
とを意味する。ここで、ポインタP2の指す「石」は変
換結果記憶領域22に記憶されている変換結果の最後の
単語ではないので(S46・NO)、単語ポインタP2
を次の単語「が」に移動し、ポインタP4を規則5−2
中の次の項目<U−が:N>(47b)に移動すると共
に(S56)、前記S44に戻る。In S46, the word pointed by the pointer P2 is compared with the word pointed by the pointer P3. That is, when the word pointed by the pointer P2 and the word pointed by the pointer P3 are equal, it means that the pointer P2 has advanced to the last word. Here, since the "stone" pointed to by the pointer P2 is not the last word of the conversion result stored in the conversion result storage area 22 (S46 / NO), the word pointer P2
To the next word "ga" and move the pointer P4 to rule 5-2.
The next item <U- in the table moves to: N> (47b) (S56) and returns to S44.
【0034】ここでは、ポインタP4の指す項目<U−
が:N>に無変化マーカーNがあるので(S44・YE
S)、書き換えずそのままにし、S46に進む。このよ
うにして、順次変換結果記憶領域22の内容を規則の書
換え指示に従って処理していく(S44〜S56)。ポ
インタP2が末尾単語「い」を指し、ポインタP4が末
尾項目<U−い:N>47dを指したとき(S56)、
ポインタP4の指す項目<U−い:N>の書換え情報は
無変化マーカーNがついている(S44・YES)の
で、書き換えずそのままにし、S46に進む。Here, the item <U-pointed by the pointer P4
:: Since there is no change marker N in N> (S44 ・ YE
S), leave it as it is without rewriting, and proceed to S46. In this way, the contents of the sequential conversion result storage area 22 are processed according to the rule rewriting instruction (S44 to S56). When the pointer P2 points to the last word "i" and the pointer P4 points to the last item <U-i: N> 47d (S56),
Since the rewriting information of the item <U-i: N> pointed by the pointer P4 is attached with the unchanged marker N (S44, YES), the rewriting information is left as it is without rewriting and the process proceeds to S46.
【0035】ここで、ポインタP2が指す単語「い」
が、ポインタP3の示す変換結果記憶領域22に記憶さ
れているの末尾の単語になったとき(S46・YE
S)、ポインタP1が変換結果記憶領域22に記憶され
ている単語列の末尾の単語になければ(S58・N
O)、ポインタP1を次の単語へ一つずつ移動させ(S
60)、再び同様の規則検索処理(S32)を規則検索
プログラム36により行う。この場合は、ポインタP1
を変換結果記憶領域22に記憶された文字列「石が堅
い」の二番目の単語「が」に移動する(S58・NO、
S60)。そして、S32〜S60の処理を繰り返す。
最後にポインタP1が変換結果記憶領域22中の末尾の
単語のとき(S58・YES)、規則変換処理を終了す
る。Here, the word "i" pointed to by the pointer P2
Becomes the last word in the conversion result storage area 22 indicated by the pointer P3 (S46.YE
S), if the pointer P1 is not at the last word of the word string stored in the conversion result storage area 22 (S58N
O), move the pointer P1 to the next word one by one (S
60) and the rule search program 36 performs the same rule search process (S32) again. In this case, the pointer P1
Is moved to the second word “ga” of the character string “stone is firm” stored in the conversion result storage area 22 (S58, NO,
S60). Then, the processing of S32 to S60 is repeated.
Finally, when the pointer P1 is the last word in the conversion result storage area 22 (YES in S58), the rule conversion process ends.
【0036】この結果が再度変換結果記憶領域22に格
納され、そして、前記変換結果記憶領域22の内容が出
力バッファ領域26に格納され、出力装置50に表示さ
れる(図6・S16)。その後、ユーザーから確定キー
が入力されれば(S18・YES)、変換結果記憶領域
22に記憶されている単語が、単語順記憶領域29に記
憶され(S22)、終了する。確定キー以外のものが入
力されたときは(S18・NO)、候補変更処理に進む
(S20)。その結果は再度、変換結果記憶領域22に
格納される。そして前記変換結果22の内容が出力バッ
ファ領域26に格納され、出力装置50に表示される
(S16)。その後、ユーザーから確定キーが入力され
れば(S18・YES)、変換結果記憶領域22に記憶
されている単語が、単語順記憶領域29に優先候補とし
て記憶され(S22)、終了する。This result is stored again in the conversion result storage area 22, and the contents of the conversion result storage area 22 are stored in the output buffer area 26 and displayed on the output device 50 (S16 in FIG. 6). After that, if the confirmation key is input by the user (S18, YES), the words stored in the conversion result storage area 22 are stored in the word order storage area 29 (S22), and the processing is ended. When a key other than the enter key is input (S18, NO), the process proceeds to the candidate changing process (S20). The result is stored again in the conversion result storage area 22. The contents of the conversion result 22 are stored in the output buffer area 26 and displayed on the output device 50 (S16). After that, if the confirmation key is input by the user (S18, YES), the word stored in the conversion result storage area 22 is stored as the priority candidate in the word order storage area 29 (S22), and the process ends.
【0037】以上説明したように「いしがかたい」とい
う読みに対応する規則5−1<U−意思:N><U−
が:N><D−かた:堅><U−い:N>と、規則5−
2<U石:N><U−が:N><D−かた:硬><U−
い:N>という2種類の規則が規則辞書中に存在すると
きに、直前にユーザーが「石」を使用していれば、通常
の変換結果として「いし」は「石」と変換されるので、
規則5−2が適用になり、規則変換結果として「石が硬
い」が出力される。従って、ユーザーが繰り返し「石が
硬い」を使用したいときは、煩雑な処理なしに規則変換
処理によりユーザーの希望にあった変換結果を提供する
ことができる。As described above, the rule 5-1 <U-intention: N><U- corresponding to the reading "Ishigai"
: N><D-type:Ken><U-type:N>, and rule 5-
2 <U stone: N><U- is: N><D- Person: Hard><U-
I: When two types of rules, N>, exist in the rule dictionary, if the user uses "stone" immediately before, "Ishi" is converted to "stone" as a normal conversion result. ,
Rule 5-2 is applied, and "stone is hard" is output as the rule conversion result. Therefore, when the user repeatedly wants to use "hard stone", the conversion result that meets the user's wish can be provided by the rule conversion process without complicated processing.
【0038】また、ユーザーが「はしのはしをあるく」
と入力したとき、直前に「橋」が使用されていれば、単
語順記憶領域29を参照して、かな漢字変換処理される
結果、「橋の橋を歩く」と変換される(S12)。しか
し、次に規則変換処理を行うことにより(S14)、
「橋を歩く」の部分に規則辞書46中の規則5−5<D
−はし:端><U−を:N><D−ある:歩><U−
く:N>が適用され、「端を歩く」と書換えられる。従
って、「橋の端を歩く」という正しい変換結果が出力さ
れる(S16)。In addition, the user "has a chopstick"
When "Bashi" is used immediately before, the word order storage area 29 is referred to, and as a result of the Kana-Kanji conversion processing, "Walk on the bridge" is converted (S12). However, by performing the rule conversion process next (S14),
Rule 5-5 <D in the rule dictionary 46 at the "walking bridge" part
-Chopsticks: end><U-:N><D-Yes:step><U-
Ku: N> is applied and rewritten as "walking at the edge". Therefore, the correct conversion result of "walking on the edge of the bridge" is output (S16).
【0039】本発明は、日本語ワードプロセッサのかな
漢字変換装置に限ったものではなく、日本語入力を伴う
各種の機器に応用可能なものである。The present invention is not limited to the kana-kanji conversion device of a Japanese word processor, but can be applied to various devices that require Japanese input.
【0040】[0040]
【発明の効果】以上説明したことから明かなように、本
発明のかな漢字変換装置は、規則変換処理に学習処理を
組み合わせることにより、入力されたかな文字列に対し
て複数の規則の適応が考えられるときでも、通常のかな
漢字変換により直前に使用した漢字に変換することによ
り、直前と同じ規則変換処理を行うことによりユーザー
の希望する変換結果を提供することができる。As is apparent from the above description, the kana-kanji conversion device of the present invention considers the adaptation of a plurality of rules to the input kana character string by combining the rule conversion process with the learning process. Even when the conversion is performed, by converting the kana to the kanji used immediately before by the normal kana-kanji conversion, the conversion result desired by the user can be provided by performing the same rule conversion process as immediately before.
【0041】また、学習処理と規則変換処理を組合わせ
ることにより、単純に同じ文字が繰り返し出力されるこ
とによる誤変換を防止することができる。Further, by combining the learning process and the rule conversion process, it is possible to prevent erroneous conversion caused by simply outputting the same character repeatedly.
【図1】本発明の構成図である。FIG. 1 is a configuration diagram of the present invention.
【図2】本実施例によるかな漢字変換装置の制御部のブ
ロック図である。FIG. 2 is a block diagram of a control unit of the kana-kanji conversion device according to the present embodiment.
【図3】本実施例の変換結果記憶領域の内容の概念図で
ある。FIG. 3 is a conceptual diagram of contents of a conversion result storage area of the present embodiment.
【図4】本実施例の基本辞書の内容の概念図である。FIG. 4 is a conceptual diagram of contents of a basic dictionary of this embodiment.
【図5】本実施例の規則辞書の内容の概念図である。FIG. 5 is a conceptual diagram of contents of a rule dictionary of this embodiment.
【図6】本実施例のかな漢字変換装置のフローチャート
である。FIG. 6 is a flowchart of the kana-kanji conversion device of the present embodiment.
【図7】本実施例の規則変換のフローチャートである。FIG. 7 is a flowchart of rule conversion according to the present exemplary embodiment.
【図8】本実施例の規則変換のフローチャートである。FIG. 8 is a flowchart of rule conversion of this embodiment.
【図9】本実施例の規則検索サブルーチンのフローチャ
ートである。FIG. 9 is a flowchart of a rule search subroutine of this embodiment.
10 入力装置 12 中央処理装置 20 RAM 22 変換結果記憶領域 24 読み入力バッファ領域 26 出力バッファ領域 28 ワークエリア 29 単語順記憶領域 30 ROMエリア 32 プログラム部 34 かな漢字変換プログラム 36 規則検索プログラム 38 規則書換えプログラム 39 学習処理プログラム 40 辞書部 42 基本辞書 44 接続テーブル 46 規則辞書 50 出力装置 10 Input Device 12 Central Processing Unit 20 RAM 22 Conversion Result Storage Area 24 Reading Input Buffer Area 26 Output Buffer Area 28 Work Area 29 Word Order Storage Area 30 ROM Area 32 Program Section 34 Kana-Kanji Conversion Program 36 Rule Search Program 38 Rule Rewriting Program 39 Learning processing program 40 Dictionary part 42 Basic dictionary 44 Connection table 46 Rule dictionary 50 Output device
Claims (1)
段と、 単語の読みに対する表記を記憶した基本辞書と、 その基本辞書中の単語の優先順序を記憶する単語順記憶
手段と、 前記基本辞書と単語順記憶手段とに基づいて、かな漢字
変換するかな漢字変換手段と、 そのかな漢字変換手段による変換結果を記憶する変換結
果記憶手段と、 前記基本辞書の複数の単語列のパターンとその書換え情
報を持つ規則を記憶した規則辞書と、 前記変換結果記憶手段の内容について前記規則辞書中の
規則と一致するものを検索する規則検索手段と、 その規則検索手段により一致した規則が検索されたと
き、該当の変換結果記憶手段の内容を書き換える規則書
換手段と、 前記変換結果記憶手段の内容をかな漢字文字列として出
力するための出力手段と、 その出力結果に基づいて、前記単語順記憶手段の単語の
優先順序を変更をする学習処理手段と、 を備えたことを特徴とするかな漢字変換装置。1. An input unit for inputting a Kana-Yomi character string, a basic dictionary storing a notation for reading a word, a word order storage unit storing a priority order of words in the basic dictionary, and the basic unit. A kana-kanji conversion means for kana-kanji conversion based on a dictionary and word order storage means, a conversion result storage means for storing the conversion result by the kana-kanji conversion means, a pattern of a plurality of word strings in the basic dictionary, and rewriting information thereof. A rule dictionary that stores the rules that it has, a rule search unit that searches the contents of the conversion result storage unit for a rule that matches the rule in the rule dictionary, and if the rule search unit finds a matching rule, then Rule rewriting means for rewriting the contents of the conversion result storage means, and output means for outputting the contents of the conversion result storage means as a kana-kanji character string, A kana-kanji conversion device comprising: learning processing means for changing the priority order of the words in the word order storage means based on the output result of.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3236296A JPH0573539A (en) | 1991-09-17 | 1991-09-17 | Kana/kanji conversion device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3236296A JPH0573539A (en) | 1991-09-17 | 1991-09-17 | Kana/kanji conversion device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0573539A true JPH0573539A (en) | 1993-03-26 |
Family
ID=16998693
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3236296A Pending JPH0573539A (en) | 1991-09-17 | 1991-09-17 | Kana/kanji conversion device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0573539A (en) |
-
1991
- 1991-09-17 JP JP3236296A patent/JPH0573539A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0573539A (en) | Kana/kanji conversion device | |
| JP3350070B2 (en) | Kana-Kanji conversion device | |
| JP3342026B2 (en) | Kana-Kanji conversion device | |
| JPH0581262A (en) | 'kana'/'kanji' converter | |
| JP3342028B2 (en) | Kana-Kanji conversion device | |
| JP3099457B2 (en) | Kana-Kanji conversion device | |
| JPH05108627A (en) | Kana to kanji converter | |
| JPH05108624A (en) | Kana-Kanji converter | |
| JP3329476B2 (en) | Kana-Kanji conversion device | |
| JPH05108623A (en) | Kana-Kanji converter | |
| JPH05108626A (en) | Kana to kanji converter | |
| JP2634926B2 (en) | Kana-Kanji conversion device | |
| JPH0573536A (en) | Kana/kanji conversion device | |
| JPH0573540A (en) | Kana-Kanji converter | |
| JPH05108618A (en) | Kana to kanje converter | |
| JPS58168180A (en) | information retrieval device | |
| JPH0581239A (en) | 'kana'/'kanji' converter | |
| JPS62145463A (en) | Kana-kanji conversion method | |
| JPH07129578A (en) | Kana-Kanji converter | |
| JPH0716192Y2 (en) | Text processor | |
| JPH0581238A (en) | Kana-Kanji converter | |
| JP3926906B2 (en) | Kana-kanji conversion system, method and recording medium using N word chain | |
| JPH1125083A (en) | Kana-kanji conversion device and computer-readable storage medium | |
| JPH05120266A (en) | Japanese syllabary to chinese character conversion device | |
| JPH1091623A (en) | Character converter |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040415 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040427 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040624 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040914 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20041012 |
|
| LAPS | Cancellation because of no payment of annual fees |