JPH10124500A - Kana-Kanji conversion device - Google Patents
Kana-Kanji conversion deviceInfo
- Publication number
- JPH10124500A JPH10124500A JP8275954A JP27595496A JPH10124500A JP H10124500 A JPH10124500 A JP H10124500A JP 8275954 A JP8275954 A JP 8275954A JP 27595496 A JP27595496 A JP 27595496A JP H10124500 A JPH10124500 A JP H10124500A
- Authority
- JP
- Japan
- Prior art keywords
- rule
- conversion
- kana
- next candidate
- 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
Landscapes
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】
【課題】 次候補変換時にも規則を検索することによっ
て、不要な候補を除き、効率よくかな漢字変換処理を行
うことができるかな漢字変換装置を提供することであ
る。
【解決手段】 次候補変換の対象となる文節の読み全体
に対して通常のかな漢字変換処理を行い、その変換結果
を変換結果記憶領域22の対象となった文節と入れ替え
る(S52)。次に、変換結果記憶領域22の対象とな
った文節を規則辞書中の次候補選択フラグを持つ規則と
比較し(S54)、もしも、一致する規則が存在する場
合には(S56:YES)、変換結果記憶領域22の対
象となった文節を次候補として選択しないとういう処理
を行う(S58)。
(57) [Problem] To provide a Kana-Kanji conversion apparatus capable of efficiently performing Kana-Kanji conversion processing by searching for a rule also at the time of next candidate conversion, thereby eliminating unnecessary candidates. SOLUTION: A normal kana-kanji conversion process is performed on the entire reading of a phrase to be subjected to the next candidate conversion, and the conversion result is replaced with the target phrase in the conversion result storage area 22 (S52). Next, the target phrase in the conversion result storage area 22 is compared with a rule having a next candidate selection flag in the rule dictionary (S54). If there is a matching rule (S56: YES), A process of not selecting the target phrase in the conversion result storage area 22 as the next candidate is performed (S58).
Description
【0001】[0001]
【発明の属する技術分野】本発明は、日本語ワードプロ
セッサ等に用いるかな漢字変換装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a kana-kanji conversion device used for a Japanese word processor or the like.
【0002】[0002]
【従来の技術】従来、この種のかな漢字変換装置は、特
開平3―142658号公報に開示されているように、
単語の読みに対する漢字等の表記を記憶した基本辞書に
基づいてかな漢字変換を行い、変換結果記憶部にかな漢
字変換結果を記憶し、そして、複数の単語列のパターン
とその書き換え情報とを一組の規則として格納したもの
を規則辞書とし、その規則辞書中の規則と一致した規則
が検索されたとき、前記かな漢字変換結果の内容を書き
換え、表示装置により表示するようにしたものであっ
た。このような一連の作用は、規則変換と称していた。2. Description of the Related Art Conventionally, a kana-kanji conversion device of this kind has been disclosed in Japanese Patent Application Laid-Open No. 3-142658.
Performs Kana-Kanji conversion based on a basic dictionary that stores notation such as Kanji for reading words, stores the Kana-Kanji conversion result in the conversion result storage unit, and stores a set of word string patterns and their rewriting information as a set. The rules stored as rules are used as a rule dictionary, and when a rule that matches a rule in the rule dictionary is searched, the contents of the Kana-Kanji conversion result are rewritten and displayed on a display device. Such a series of actions was called rule conversion.
【0003】さらに、特開平5―120265号公報で
は、規則変換によって書き換えられたかな漢字変換結果
を再変換する次候補変換の処理を提供している。Further, Japanese Patent Application Laid-Open No. 5-120265 provides a next candidate conversion process for re-converting a kana-kanji conversion result rewritten by rule conversion.
【0004】例えば、「ごりょうしんにあい」と入力し
た場合に、通常のかな漢字変換では、変換結果として
「ご両親に愛」が出力される場合がある。これが、規則
変換を利用すると、規則辞書中に<U−ご:N><U−
両親:N><U−に:N><D−あい:会い>というパ
ターンが記憶されていた場合には、「ご両親に愛」の
「愛」の部分を「会い」に書き換えて、「ご両親に会
い」という正しい変換結果にすることができる。さら
に、そのまま文字列を削除することなしに「会い」の部
分を次候補変換によって「逢い」と変更することができ
る。[0004] For example, when "Goryushin ni Ai" is input, "Love to parents" may be output as a conversion result in normal kana-kanji conversion. If this is done by using rule conversion, <U-go: N><U-
If the pattern of "Parents: N><U-:N><D-Ai:Meeting" is stored, the part of "Love" of "Love my parents" is rewritten to "Meet" and "Meet my parents" can be the correct conversion result. Furthermore, the part of "meet" can be changed to "meet" by the next candidate conversion without deleting the character string as it is.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、前記次
候補変換の処理を行った場合に、絶対に使わないと思わ
れるので、できれば表示したくないが、接続等の関係か
ら次候補となる文字列が表示される場合があった。例え
ば、規則変換によって「ご両親に会う」と変換された
が、「ご両親」の部分を「御両親」に再変換するために
次候補変換の処理を行った場合に、接頭辞「ご」と名詞
「寮」と接尾辞「心」が接続の関係で「ご寮心」という
文字列を作成し、次候補として表示される場合である。
そのため、利用者は不要な文字列をも候補として扱わな
ければならず、所望の変換候補を見つけるまでに時間が
かかり、使い勝手が悪いという問題点があった。However, when the processing of the next candidate conversion is performed, it is considered that the character string will not be used. Was sometimes displayed. For example, if the rule conversion converts "meet parents", but the next candidate conversion process is performed to convert "parents" to "parents" again, the prefix "go" This is a case where a character string "dormitory" is created because the noun "dormitory" and the suffix "heart" are connected and displayed as the next candidate.
For this reason, the user has to handle unnecessary character strings as candidates, and it takes time to find a desired conversion candidate, and there is a problem that the usability is poor.
【0006】本発明は、上述した問題点を解決するため
になされたものであり、次候補変換時にも、規則を検索
することによって不要な文字列を識別し、候補からはず
すことにより、より短時間で、効率良く所望のかな漢字
変換処理を行うことができる使い勝手の良いかな漢字変
換装置を提供することを目的としている。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem. Even during the conversion to the next candidate, a rule is searched to identify an unnecessary character string and remove the character string from the candidate, thereby shortening the character string. It is an object of the present invention to provide an easy-to-use kana-kanji conversion device capable of efficiently performing a desired kana-kanji conversion process in a short time.
【0007】[0007]
【課題を解決するための手段】この目的を達成するため
に、本発明のかな漢字変換装置は、かな読み文字列を入
力するための入力手段と、少なくとも単語の読みに対す
る表記を記憶した基本辞書と、前記基本辞書に基づい
て、前記入力手段により入力されたかな読み文字列のか
な漢字変換を行うかな漢字変換手段と、そのかな漢字変
換手段による変換結果を記憶する変換結果記憶手段と、
前記基本辞書に記憶された単語の読みや表記等の情報の
複数の単語についての組み合わせからなるパターンと、
そのパターン内の単語の表記を書き換えるための書き換
え情報とを有する規則を記憶した規則辞書と、前記変換
結果記憶手段に記憶された前記変換結果と一致するパタ
ーンを持つ規則を、前記規則辞書から検索する規則検索
手段と、その規則検索手段により一致したパターンを持
つ規則が検索されたとき、その規則の書き換え情報に従
って前記変換結果を書き換える規則書換え手段と、前記
規則検索手段及び前記規則書換え手段による処理を実行
した結果、候補表示された文字列について、再変換を行
う次候補変換手段とを備えたものを対象としたものであ
る。In order to achieve this object, a kana-kanji conversion device according to the present invention comprises an input means for inputting a kana reading character string, a basic dictionary storing at least a notation for reading a word, and A kana-kanji conversion means for performing kana-kanji conversion of a kana reading character string input by the input means based on the basic dictionary, and a conversion result storage means for storing a conversion result by the kana-kanji conversion means,
A pattern consisting of a combination of a plurality of words of information such as word reading and notation stored in the basic dictionary,
A rule dictionary storing rules having rewriting information for rewriting words in the pattern, and a rule having a pattern matching the conversion result stored in the conversion result storage means are searched from the rule dictionary. Rule retrieving means, a rule rewriting means for rewriting the conversion result in accordance with rewriting information of the rule when a rule having a matched pattern is retrieved by the rule retrieving means, and processing by the rule retrieving means and the rule rewriting means And a next candidate conversion means for re-converting the character string displayed as a candidate as a result of the execution.
【0008】そして、特に、この発明の前記規則辞書
は、前記基本辞書に記憶された単語の読みや表記等の情
報の複数の単語についての組み合わせからなるパターン
と、そのパターン内の単語の表記を書き換えるための書
き換え情報及び次候補変換時に使用することを指定する
フラグ情報を持つ次候補規則とを予め記憶しており、前
記次候補手段によって前記変換結果記憶手段に記憶され
た文字列が書き換えられたときに、その変換結果と一致
するパターンを持つ規則を前記フラグ情報に基づいて、
前記規則辞書中の前記次候補規則から検索し、一致した
パターンを持つ次候補規則が検索されたときに、その文
字列を次候補として選択しない次候補規則検索手段を備
えている。[0008] In particular, the rule dictionary of the present invention includes a pattern composed of a combination of a plurality of words of information such as word reading and notation stored in the basic dictionary, and a notation of a word in the pattern. Rewriting information for rewriting and a next candidate rule having flag information designating that it is used at the time of next candidate conversion are stored in advance, and the character string stored in the conversion result storage means is rewritten by the next candidate means. When the rule having a pattern that matches the conversion result, based on the flag information,
There is provided a next candidate rule search unit that searches from the next candidate rule in the rule dictionary and does not select the character string as a next candidate when a next candidate rule having a matching pattern is searched.
【0009】この発明のかな漢字変換装置によれば、次
候補変換時も規則を検索し、一致したパターンを持つ規
則が検索されたときに、その次候補を候補から除くこと
ができるので、不要な候補を減らし、より短時間で、効
率よくかな漢字変換をすることができる。According to the kana-kanji conversion apparatus of the present invention, the rule is searched for during the conversion of the next candidate, and when a rule having a matching pattern is searched, the next candidate can be excluded from the candidates. Candidates can be reduced and kana-kanji conversion can be performed efficiently in a shorter time.
【0010】[0010]
【発明の実施の形態】以下に、本発明のかな漢字変換装
置を具体化した実施の形態について図面を参照して説明
する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a kana-kanji conversion device according to the present invention will be described below with reference to the drawings.
【0011】かな漢字変換装置の概略的な電気的制御構
成を示すブロック図を図1に示していす。FIG. 1 is a block diagram showing a schematic electrical control configuration of the kana-kanji conversion device.
【0012】同図に示すように、本実施の形態のかな漢
字変換装置は、かな漢字変換をする文字列を入力した
り、変換・再変換等の各種指示を行うためのキーボード
等によって構成される入力装置10は、装置全体を制御
するための中央処理演算装置(CPU)12に接続され
ている。RAM20は、前記CPU12に接続され、か
な漢字変換された結果を記憶するための変換結果記憶領
域22、入力されたかな読み文字列を記憶するための読
み入力バッファ領域24、前記変換結果記憶領域22の
内容をかな漢字文字列として記憶するための出力バッフ
ァ領域26、及びポインタ情報やフラグ情報等を記録す
るワークエリア28を備えている。前記入力装置10が
本発明の入力手段を構成し、変換結果記憶領域22が、
本発明の変換結果記憶手段を構成している。As shown in FIG. 1, the kana-kanji conversion apparatus according to the present embodiment has a keyboard or the like for inputting a character string for kana-kanji conversion and for performing various instructions such as conversion and re-conversion. The device 10 is connected to a central processing unit (CPU) 12 for controlling the entire device. The RAM 20 is connected to the CPU 12 and stores a conversion result storage area 22 for storing a result of the Kana-Kanji conversion, a reading input buffer area 24 for storing an input Kana reading character string, An output buffer area 26 for storing the contents as a Kana-Kanji character string, and a work area 28 for recording pointer information, flag information, and the like are provided. The input device 10 constitutes the input means of the present invention, and the conversion result storage area 22
It constitutes the conversion result storage means of the present invention.
【0013】変換結果記憶領域22には、入力されたか
な読み文字列を後述する基本辞書62と接続テーブル6
4を用いてかな漢字変換した結果が単語単位で情報を付
して記憶されており、この内容がさらに、規則変換ある
いは次候補変換時に参照更新される。The conversion result storage area 22 stores an input kana reading character string in a basic dictionary 62 and a connection table 6 described later.
The result of the Kana-Kanji conversion using No. 4 is stored with information attached in word units, and this content is further referenced and updated at the time of rule conversion or next candidate conversion.
【0014】ROM40は、前記CPU12に接続さ
れ、各種プログラムを格納しているプログラム部42と
複数の辞書を格納した辞書部60とを備えている。プロ
グラム部42は、かな漢字変換プログラム44と、規則
検索プログラム46と、規則書き換えプログラム48
と、次候補変換プログラム50と、次候補規則検索プロ
グラム52とを格納している。The ROM 40 is connected to the CPU 12 and includes a program section 42 for storing various programs and a dictionary section 60 for storing a plurality of dictionaries. The program unit 42 includes a kana-kanji conversion program 44, a rule search program 46, and a rule rewriting program 48
, A next candidate conversion program 50, and a next candidate rule search program 52.
【0015】なお、前記規則検索プログラム46が、本
発明の規則検索手段を構成し、規則書き換えプログラム
48が、本発明の規則書き換え手段を構成しており、規
則検索プログラム46と規則書き換えプログラム48と
により行われる処理を規則変換処理と呼ぶ。The rule search program 46 constitutes rule search means of the present invention, and the rule rewriting program 48 constitutes rule rewrite means of the present invention. Is called rule conversion processing.
【0016】そして、前記かな漢字変換プログラム44
が、本発明のかな漢字変換手段を構成し、次候補変換プ
ログラム50が本発明の次候補変換手段を構成してい
る。The kana-kanji conversion program 44
Constitute the kana-kanji conversion means of the present invention, and the next candidate conversion program 50 constitutes the next candidate conversion means of the present invention.
【0017】また、次候補規則検索プログラム52が、
本発明の次候補規則検索手段を構成している。Also, the next candidate rule search program 52
It constitutes the next candidate rule search means of the present invention.
【0018】辞書部60は、基本辞書62、接続テーブ
ル64及び規則辞書66を格納している。The dictionary section 60 stores a basic dictionary 62, a connection table 64, and a rule dictionary 66.
【0019】基本辞書62は、それぞれの単語の読み
と、その単語の漢字表記と、その単語の品詞情報と、そ
の単語の属するカテゴリーを表す意味コード情報とが記
憶されている。The basic dictionary 62 stores reading of each word, kanji notation of the word, part of speech information of the word, and meaning code information indicating a category to which the word belongs.
【0020】接続テーブル64は、単語同士の接続関係
の可否を品詞情報により判断するためのデータを記憶し
ている。例えば、名詞と格助詞との接続は可能という情
報や、動詞と格助詞との接続はできないという情報をテ
ーブルデータとして記憶している。The connection table 64 stores data for determining whether or not there is a connection relationship between words based on part of speech information. For example, information that a noun can be connected to a case particle and information that a verb cannot be connected to a case particle are stored as table data.
【0021】規則辞書66は、図2に示すように、規則
項目66a〜66eと次候補規則選択フラグ66fを一
組とし、一つの規則として記憶している。一般に規則の
項目は、<検索因子―単語パターン:書き換え情報>と
いう形で格納されており、この項目の組み合わせで一つ
の規則が作られる仕組みになっている。検索因子とは、
変換結果と規則とが一致する方法の種類を示すもので、
U因子、D因子、M因子等があり、U因子は変換結果記
憶領域22に記憶されている単語についての読み及び表
記と完全一致を意味し、D因子は変換結果記憶領域22
に記憶されている単語についての読みつまりその単語と
同音で一致することを意味する。また、M因子は変換結
果記憶領域22に記憶されている単語の意味コードで一
致することを意味する。単語パターンとは、その規則を
変換結果記憶領域22中の項目に一致させる単語のこと
を示し、ここには単語の読みまたは表記または意味コー
ドまたは単語グループが入る。単語グループとは66e
の「Pカ行5段」のことで、これはカ行5段活用の活用
語尾全てに一致させることを示す。The rule dictionary 66, as shown in FIG. 2, stores rule items 66a to 66e and a next candidate rule selection flag 66f as one set. Generally, rule items are stored in the form of <search factor-word pattern: rewrite information>, and a combination of these items is used to create one rule. What are search factors?
Indicates the type of method that the conversion result matches with the rule.
There are a U factor, a D factor, an M factor, and the like. The U factor means reading and notation of a word stored in the conversion result storage area 22 and a perfect match, and the D factor is a conversion result storage area 22.
Means the reading of the word stored in. Further, the M factor means that they match with the meaning code of the word stored in the conversion result storage area 22. The word pattern indicates a word that matches the rule with an item in the conversion result storage area 22, and includes a word reading or notation, a meaning code, or a word group. 66e is a word group
"5 lines of P lines" indicates that all the endings of the utilization of 5 lines of lines are used.
【0022】書き換え情報は、無変化マーカーN、削除
マーカーD、または、単語列のいづれかであり、無変化
マーカーNが格納されているときは規則辞書66の項目
に一致した変換結果記憶領域22の中の単語をそのまま
にし、書き換えないことを表す。また、削除マーカーD
が格納されているときはその項目を削除することを表
す。書き換え情報として、単語列があるときは規則辞書
66の項目と一致した変換結果記憶領域22中の単語を
その単語列に書き換えることを表している。ここでいう
単語列とは、複数の単語(一つの単語だけでもよい)が
規則辞書66に記憶されたものであり、実際には基本辞
書62中の単語を指し示すためのアドレス情報等が設定
されており、このアドレス情報に基づいて基本辞書62
を参照することによって利用される。なお、図2におい
ては、理解しやすいように単語を読み、または表記で表
している。The rewriting information is any one of the unchangeable marker N, the delete marker D, and the word string. When the unchangeable marker N is stored, the rewrite information of the conversion result storage area 22 corresponding to the item of the rule dictionary 66 is stored. Indicates that the words inside are not changed and are not rewritten. Also, delete marker D
Indicates that the item is to be deleted. When there is a word string as rewriting information, it indicates that a word in the conversion result storage area 22 that matches an item of the rule dictionary 66 is rewritten to the word string. The word string referred to here is a plurality of words (only one word may be stored) stored in the rule dictionary 66. In practice, address information or the like for indicating a word in the basic dictionary 62 is set. Based on the address information, the basic dictionary 62
Utilized by referring to In FIG. 2, words are read or represented by notation for easy understanding.
【0023】次候補規則選択フラグ66fは、本発明の
フラグ情報を構成しており、再変換が指示され、変換結
果記憶領域22中の文字列が書き換えられた場合の処理
について、「0」か「1」かの値に基づいて、後述する
次候補規則検索処理に使用する規則の選択を行う。この
次候補規則選択フラグ66fは、予め設定されており、
不要な単語の組み合わせからなる規則に設定がなされ
る。The next candidate rule selection flag 66f constitutes flag information of the present invention, and is set to "0" for processing when reconversion is instructed and a character string in the conversion result storage area 22 is rewritten. Based on the value of “1”, a rule to be used in the next candidate rule search process described later is selected. This next candidate rule selection flag 66f is set in advance,
The rule is set to a combination of unnecessary words.
【0024】次に、以上のように構成されたかな漢字変
換装置の動作について、図3のフローチャートを参照し
て説明する。なお、規則辞書66内の格納状況は、図2
に示すような状態であるものとする。Next, the operation of the kana-kanji conversion device configured as described above will be described with reference to the flowchart of FIG. The storage status in the rule dictionary 66 is shown in FIG.
It is assumed that the state is as shown in FIG.
【0025】入力装置10からキー入力されると(S1
0、Sはステップ、以下同様)、その入力が読み文字で
あるか否かが判断され(S12)、読み文字であった場
合には(S12:YES)、そのかな文字コードがRA
M20の読み入力バッファ領域24に記憶される(S1
4)。例えば、読み文字列として「ごりょうしんにあ
い」が入力されると、そのかな文字コードが読み入力バ
ッファ領域24に記憶される。その後、キー入力待ちと
なる。一方、入力されたキーが読み文字でない場合は
(S12:NO)、入力操作されたキーが変換キーであ
るか否かを判断し(S16)、変換キーでない場合には
(S16:NO)、その他の処理が行われる(S1
8)。その後、キー入力待ちとなる。When a key is input from the input device 10 (S1)
(Steps 0 and S are the same in the following.) It is determined whether or not the input is a reading character (S12). If the input is a reading character (S12: YES), the kana character code is RA.
It is stored in the read input buffer area 24 of M20 (S1
4). For example, when “Reading character string” is input as a reading character string, the kana character code is stored in the reading input buffer area 24. Then, it waits for a key input. On the other hand, if the input key is not a reading character (S12: NO), it is determined whether the input key is a conversion key (S16). If the input key is not a conversion key (S16: NO), Other processing is performed (S1
8). Then, it waits for a key input.
【0026】また、入力操作されたキーが、変換キーの
場合は(S16:YES)、かな漢字変換が行われ、R
OM40のかな漢字変換プログラム44により基本辞書
62と接続テーブル64に基づいて、読み入力バッファ
領域24に記憶されているかな文字コードがかな漢字混
じり文に変換され、変換結果記憶領域22にそれぞれの
単語が記憶される(S20)。When the input key is a conversion key (S16: YES), kana-kanji conversion is performed, and
The kana-kanji conversion program 44 of the OM 40 converts the kana character code stored in the reading input buffer area 24 into a kana-kanji mixed sentence based on the basic dictionary 62 and the connection table 64, and stores each word in the conversion result storage area 22. Is performed (S20).
【0027】例えば、基本辞書に基づいて通常のかな漢
字変換を行うと、漢字かな混じり文「ご両親に愛」と変
換されることがある。そして、それぞれの単語、
「ご」、「両親」、「に」、「愛」が変換結果記憶領域
22に記憶される。For example, when ordinary kana-kanji conversion is performed based on the basic dictionary, the sentence “kana kana mixed” may be converted to “love your parents”. And each word,
“Go”, “Parents”, “Ni”, and “Love” are stored in the conversion result storage area 22.
【0028】次に、ROM40の規則検索プログラム4
6により、変換結果記憶領域22の単語の組み合わせと
一致する単語パターンの組み合わせを持つ規則が、規則
辞書66中に存在するか否かを判断する検索処理が行わ
れる(S22)。求める規則が存在しない場合には(S
24:NO)、規則変換処理を終了し、変換結果記憶領
域22の内容は、出力バッファ領域26に格納され、出
力装置70に表示される(S28)。Next, the rule search program 4 in the ROM 40
6, a search process is performed to determine whether or not a rule having a combination of word patterns matching the combination of words in the conversion result storage area 22 exists in the rule dictionary 66 (S22). If the rule to be found does not exist (S
24: NO), the rule conversion process is terminated, and the contents of the conversion result storage area 22 are stored in the output buffer area 26 and displayed on the output device 70 (S28).
【0029】求める規則が存在する場合には(S24:
YES)、ROM40の規則書き換えプログラム48に
よって、変換結果記憶領域22中の単語の内、規則の単
語パターンの組み合わせと一致した単語の組み合わせの
部分を、その規則の書き換え情報に従って書き換えると
いう処理が行われる(S26)。これで規則変換処理は
終了し、規則変換処理によって書き換えられた変換結果
記憶領域22の内容は、出力バッファ領域26に格納さ
れ、出力装置70に表示される(S28)。If the rule to be found exists (S24:
YES), the rule rewriting program 48 of the ROM 40 performs a process of rewriting, in accordance with the rule rewriting information, a word combination part that matches a rule word pattern combination among words in the conversion result storage area 22. (S26). This completes the rule conversion processing, and the contents of the conversion result storage area 22 rewritten by the rule conversion processing are stored in the output buffer area 26 and displayed on the output device 70 (S28).
【0030】例えば、変換結果記憶領域22中の単語の
内、「ご」、「両親」、「に」、「愛」、の部分が、規
則辞書66中の66a〜66eの規則の単語パターンの
組み合わせと一致したとすると、その規則の書き換え情
報に従って、「愛」が「会」「い」に書き換えられ、変
換結果の表示は「ご両親に会い」になる。For example, of the words in the conversion result storage area 22, “go”, “parents”, “ni”, and “love” correspond to the word patterns of the rules 66 a to 66 e in the rule dictionary 66. If a match is found, "love" is rewritten to "me" or "i" according to the rewriting information of the rule, and the display of the conversion result is "meet my parents".
【0031】その後、ユーザーからのキー入力による指
示を受け取り(S30)、入力操作されたキーが確定を
指示する確定キーであるか否かを判断し(S32)、確
定キーであった場合には(S32:YES)、出力装置
70に表示されている変換結果を確定する確定処理が行
われる(S34)。入力操作されたキーが確定キーでな
かった場合には、さらに、再変換を指示する次候補キー
か否かを判断し(S36)、次候補キーであった場合に
は(S36:YES)、文節カーソルが位置している文
節を対象として、後述する次候補変換処理が行われる
(S40)。次候補キーでもなかった場合には(S3
6:NO)、文節カーソルの移動等のその他の処理が行
われる(S38)。その後、キー入力待ちとなる。Thereafter, an instruction by a key input from the user is received (S30), and it is determined whether or not the input key is a determination key for instructing determination (S32). (S32: YES), a determination process for determining the conversion result displayed on the output device 70 is performed (S34). If the input key is not the final key, it is further determined whether or not it is the next candidate key for instructing reconversion (S36). If it is the next candidate key (S36: YES), The next candidate conversion process, which will be described later, is performed on the phrase where the phrase cursor is located (S40). If it is not the next candidate key (S3
6: NO), and other processing such as movement of the phrase cursor is performed (S38). Then, it waits for a key input.
【0032】次に、前記次候補変換処理の詳細につい
て、図4に示すフローチャートを参照して説明する。Next, the details of the next candidate conversion process will be described with reference to the flowchart shown in FIG.
【0033】次候補キーが押下されることによって、次
候補変換処理が開始される。先ず、対象となる文節の読
みがRAM20の読み入力バッファ領域24から取り出
され、ワークエリア28に記憶される(S50)。そし
て、その読み全体に対して通常のかな漢字変換処理が行
われ、その変換結果を変換結果記憶領域22の対象とな
った文節のものと入れ替える(S52)。When the next candidate key is pressed, the next candidate conversion process starts. First, the target phrase is read from the reading input buffer area 24 of the RAM 20 and stored in the work area 28 (S50). Then, a normal kana-kanji conversion process is performed on the entire reading, and the conversion result is replaced with that of the target phrase in the conversion result storage area 22 (S52).
【0034】なお、次候補変換処理においてなされる通
常のかな漢字変換処理は、ワープロ等の分野において一
般的になされている次候補の抽出処理であり、その詳細
な説明は省略する。The normal kana-kanji conversion process performed in the next candidate conversion process is a next candidate extraction process generally performed in a field such as a word processor, and a detailed description thereof will be omitted.
【0035】次に、ROM40の次候補規則検索プログ
ラム42により、変換結果記憶領域22の対象となった
文節の単語の組み合わせと一致する単語パターンの組み
合わせを持ち、かつ、次候補規則選択フラグを持ってい
る規則が存在するか否かを検索する(S54)。一致す
る規則が存在しなければ(S56:NO)、出力バッフ
ァ領域26に格納され、出力装置70に表示される(S
60)。一方、一致する規則が存在する場合には(S5
6:YES)、その変換結果記憶領域22の対象となっ
た文節の単語の組み合わせを次候補として選択せず(S
58)、さらに、次候補抽出が行われる。Next, the next candidate rule search program 42 in the ROM 40 has a combination of word patterns that match the combination of words of the target phrase in the conversion result storage area 22, and has a next candidate rule selection flag. A search is performed to determine whether or not a rule exists (S54). If there is no matching rule (S56: NO), the rule is stored in the output buffer area 26 and displayed on the output device 70 (S56).
60). On the other hand, if there is a matching rule (S5
6: YES), the combination of words of the phrase targeted in the conversion result storage area 22 is not selected as the next candidate (S:
58) Then, the next candidate is extracted.
【0036】例えば、「ご両親に会い」という変換結果
の「ご両親」の部分を指定して次候補変換し、「ご」、
「寮」、「心」が次候補として抽出されたとする。この
抽出された変換結果に対して、規則辞書66中の次候補
規則選択フラグが立っている規則から、一致する単語の
組み合わせを持つ規則が検索され、一致する規則(66
x〜66z)が存在すると、その規則の単語毎の書き換
え情報、削除マーカーDに従って、それぞれの単語
「ご」、「寮」、「心」は削除され、次候補として採用
されず、さらに、別の候補「御」、「両親」が次候補と
して抽出される。For example, by specifying the "parents" part of the conversion result "meet parents", the next candidate is converted, and "go",
It is assumed that “dormitory” and “heart” are extracted as next candidates. With respect to the extracted conversion result, a rule having a matching word combination is searched from the rules with the next candidate rule selection flag set in the rule dictionary 66, and the matching rule (66
x to 66z), the words “go”, “dormitory”, and “heart” are deleted according to the rewriting information for each word of the rule and the deletion marker D, and are not adopted as the next candidate, and further, Are extracted as the next candidate.
【0037】このようにして、本実施の形態のかな漢字
変換装置によれば、規則辞書に次候補規則選択フラグを
持つ規則を加え、次候補変換時にも、規則検索処理をか
けることによって、不要な候補を除くことができるた
め、より早く所望の変換結果を得ることができる。As described above, according to the kana-kanji conversion device of the present embodiment, unnecessary rules can be obtained by adding a rule having a next candidate rule selection flag to the rule dictionary and performing a rule search process during the next candidate conversion. Since candidates can be eliminated, a desired conversion result can be obtained more quickly.
【0038】[0038]
【発明の効果】以上説明したことから明かなように、本
発明のかな漢字変換装置によれば、予め規則辞書に記憶
されている次候補規則を使って、次候補変換時にも規則
検索処理をかけて、不要な文字列を候補から除くことが
できるので、より短時間で、効率よくかな漢字変換処理
を行うことができる。As is apparent from the above description, according to the kana-kanji conversion apparatus of the present invention, a rule search process is performed during the conversion of the next candidate using the next candidate rule stored in the rule dictionary in advance. As a result, unnecessary character strings can be excluded from candidates, so that kana-kanji conversion processing can be performed efficiently in a shorter time.
【図1】本実施の形態のかな漢字変換装置の概略的な電
気的制御構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic electrical control configuration of a kana-kanji conversion device according to the present embodiment.
【図2】規則辞書の記憶内容を示す模式図である。FIG. 2 is a schematic diagram showing stored contents of a rule dictionary.
【図3】本実施の形態のかな漢字変換装置の動作を示す
フローチャートである。FIG. 3 is a flowchart showing an operation of the kana-kanji conversion device of the present embodiment.
【図4】本実施の形態のかな漢字変換装置の動作を示す
フローチャートである。FIG. 4 is a flowchart showing the operation of the kana-kanji conversion device of the present embodiment.
10 入力装置 12 CPU 20 RAM 22 変換結果記憶領域 24 読み入力バッファ領域 26 出力バッファ領域 40 ROM 42 プログラム部 44 かな漢字変換プログラム 46 規則検索プログラム 48 規則書き換えプログラム 50 次候補変換プログラム 52 次候補規則検索プログラム 60 辞書部 62 基本辞書 66 規則辞書 Reference Signs List 10 input device 12 CPU 20 RAM 22 conversion result storage area 24 reading input buffer area 26 output buffer area 40 ROM 42 program unit 44 kana-kanji conversion program 46 rule search program 48 rule rewriting program 50 next candidate conversion program 52 next candidate rule search program 60 Dictionary unit 62 Basic dictionary 66 Rule dictionary
Claims (1)
段と、 少なくとも単語の読みに対する表記を記憶した基本辞書
と、 前記基本辞書に基づいて、前記入力手段により入力され
たかな読み文字列のかな漢字変換を行うかな漢字変換手
段と、 そのかな漢字変換手段による変換結果を記憶する変換結
果記憶手段と、 前記基本辞書に記憶された単語の読みや表記等の情報の
複数の単語についての組み合わせからなるパターンと、
そのパターン内の単語の表記を書き換えるための書き換
え情報とを有する規則を記憶した規則辞書と、 前記変換結果記憶手段に記憶された前記変換結果と一致
するパターンを持つ規則を、前記規則辞書から検索する
規則検索手段と、 その規則検索手段により一致したパターンを持つ規則が
検索されたとき、その規則の書き換え情報に従って前記
変換結果を書き換える規則書換え手段と、 前記規則検索手段及び前記規則書換え手段による処理を
実行した結果、候補表示された文字列について、再変換
を行う次候補変換手段とを備えたかな漢字変換装置にお
いて、 前記規則辞書は、前記基本辞書に記憶された単語の読み
や表記等の情報の複数の単語についての組み合わせから
なるパターンと、そのパターン内の単語の表記を書き換
えるための書き換え情報及び次候補変換時に使用するこ
とを指定するフラグ情報を持つ次候補規則とを予め記憶
しており、 前記次候補変換手段によって、前記変換結果記憶手段に
記憶された文字列が書き換えられたときに、その変換結
果と一致するパターンを持つ規則を前記フラグ情報に基
づいて、前記規則辞書中の前記次候補規則から検索し、
一致したパターンを持つ次候補規則が検索されたとき、
その文字列を次候補として選択しない次候補規則検索手
段を備えたことを特徴とするかな漢字変換装置。An input unit for inputting a kana reading character string; a basic dictionary storing at least a notation for reading a word; and a kana reading character string input by the input unit based on the basic dictionary. Kana-Kanji conversion means for performing Kana-Kanji conversion, conversion result storage means for storing the conversion result of the Kana-Kanji conversion means, and a pattern comprising a combination of a plurality of words of information such as word reading and notation stored in the basic dictionary When,
A rule dictionary storing rules having rewriting information for rewriting words in the pattern; and a rule having a pattern matching the conversion result stored in the conversion result storage means is searched from the rule dictionary. Rule retrieving means, a rule rewriting means for rewriting the conversion result according to rewriting information of the rule when a rule having a matched pattern is retrieved by the rule retrieving means, processing by the rule retrieving means and the rule rewriting means The kana-kanji conversion device provided with a next candidate conversion means for re-converting a character string displayed as a candidate as a result of the execution of the rule dictionary, wherein the rule dictionary includes information such as reading and notation of words stored in the basic dictionary. A pattern consisting of combinations of multiple words in The replacement candidate information and the next candidate rule having flag information designating that it is used at the time of the next candidate conversion are stored in advance, and the character string stored in the conversion result storage unit is rewritten by the next candidate conversion unit. When, the rule having a pattern that matches the conversion result is searched from the next candidate rule in the rule dictionary based on the flag information,
When a next candidate rule with a matching pattern is found,
A kana-kanji conversion device comprising a next candidate rule search unit that does not select the character string as a next candidate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8275954A JPH10124500A (en) | 1996-10-18 | 1996-10-18 | Kana-Kanji conversion device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8275954A JPH10124500A (en) | 1996-10-18 | 1996-10-18 | Kana-Kanji conversion device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH10124500A true JPH10124500A (en) | 1998-05-15 |
Family
ID=17562746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8275954A Pending JPH10124500A (en) | 1996-10-18 | 1996-10-18 | Kana-Kanji conversion device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH10124500A (en) |
-
1996
- 1996-10-18 JP JP8275954A patent/JPH10124500A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH10124500A (en) | Kana-Kanji conversion device | |
JP2000057134A (en) | Documentation device | |
JP3498635B2 (en) | Information retrieval method and apparatus, and computer-readable recording medium | |
JP2592793B2 (en) | Character processing method | |
JP3350070B2 (en) | Kana-Kanji conversion device | |
JPS58151677A (en) | Editing method of translated sentence | |
JPS59100941A (en) | Kana (japanese syllabary)-kanji (chinese character) converter | |
JP3847869B2 (en) | Character string conversion apparatus and method | |
JP3342026B2 (en) | Kana-Kanji conversion device | |
JP2864418B2 (en) | Document processing device | |
JPH1055360A (en) | Device and method for address book processing | |
JPH08292954A (en) | Kana-Kanji converter | |
JPH05143579A (en) | Kana-Kanji converter | |
JPH09160909A (en) | Kana-Kanji conversion device | |
JPH10254869A (en) | Kana-Kanji conversion device | |
JPH09212520A (en) | Electronic dictionary formation device | |
JPH1125079A (en) | Character processor and method therefor and recording medium | |
JPH1125087A (en) | Character processor, its method and recording medium | |
JPH09282316A (en) | Kanji-to-kana conversion device | |
JPH10154141A (en) | Kana-Kanji conversion device | |
JPS62115568A (en) | Kana-kanji converting device | |
JPH05108622A (en) | Kana-Kanji converter | |
JPH0581239A (en) | 'kana'/'kanji' converter | |
JPH0944484A (en) | Kana-Kanji converter | |
JPH05108626A (en) | Kana to kanji converter |