JP3263190B2 - Character processing method and device - Google Patents
Character processing method and deviceInfo
- Publication number
- JP3263190B2 JP3263190B2 JP17425893A JP17425893A JP3263190B2 JP 3263190 B2 JP3263190 B2 JP 3263190B2 JP 17425893 A JP17425893 A JP 17425893A JP 17425893 A JP17425893 A JP 17425893A JP 3263190 B2 JP3263190 B2 JP 3263190B2
- Authority
- JP
- Japan
- Prior art keywords
- priority
- correction
- character string
- input
- keyboard
- 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.)
- Expired - Fee Related
Links
Landscapes
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、文字入力時のタイプミ
スを補正して辞書検索する文字処理方法およびその装置
に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character processing method and apparatus for correcting a typographical error at the time of character input and performing a dictionary search.
【0002】[0002]
【従来の技術】一般に、日本語の入力方式としてかな漢
字変換方式が主流となっているが、この方式では表記を
指定するのにその読みを使う。この読みを指定する際
に、タイプミス、シフトキーの押下洩れなどに起因する
読みの指示間違いが多く発生している。2. Description of the Related Art In general, a kana-kanji conversion method is mainly used as a Japanese input method. In this method, the reading is used to designate a notation. When specifying this reading, there are many reading instructions errors caused by typos, omission of the shift key, and the like.
【0003】従来、既にこのような間違って入力された
読みに対して所望の漢字かな交じり列を得るためのかな
漢字変換方式が考案されている。(例えば、特公昭56
−67435号公報の「誤り自動訂正装置」など参
照。)以下、従来の文字処理装置について図6を参照し
ながら説明する。図6において、50は入力キーボード
コード列一時記憶部であり、キーボードから入力された
順にコード列として一時記憶する。51は入力キーボー
ドコード列読み替え部であり、入力キーボードコード列
一時記憶部50で記憶しているキーボードコード列を仮
名文字列として読み替える。52は補正仮名文字列作成
部であり、入力キーボードコード列読み替え部51で読
み替えた仮名文字列に対して文字の置換、削除、挿入、
前後入替を行って補正仮名文字列を作成する。53は補
正仮名文字列一時記憶部であり、補正仮名文字列作成部
52で作成した補正仮名文字列を一時記憶する。54は
仮名見出し辞書であり、仮名を見出しとして、表記など
を付随させて記憶している。56は辞書検索制御部であ
り、補正仮名文字列一時記憶部53で一時記憶している
補正仮名文字列を仮名見出し辞書54から検索する。5
7は検索結果一時記憶部であり、辞書検索制御部56で
検索した結果を一時記憶する。Heretofore, a kana-kanji conversion method has been devised for obtaining a desired kana-kana combination string for such erroneously inputted reading. (For example,
See, for example, "Automatic Error Correction Device" in JP-A-67435. Hereinafter, a conventional character processing apparatus will be described with reference to FIG. In FIG. 6, reference numeral 50 denotes an input keyboard code string temporary storage unit, which temporarily stores a code string in the order of input from the keyboard. Reference numeral 51 denotes an input keyboard code string reading unit that reads the keyboard code string stored in the input keyboard code string temporary storage unit 50 as a kana character string. Reference numeral 52 denotes a corrected kana character string creating unit which replaces, deletes, inserts, and replaces characters in the kana character string read by the input keyboard code string reading unit 51.
Create a corrected kana character string by exchanging before and after. Reference numeral 53 denotes a corrected kana character string temporary storage unit, which temporarily stores the corrected kana character string created by the corrected kana character string creation unit 52. Reference numeral 54 denotes a kana heading dictionary, which stores the kana as a heading along with a notation. Reference numeral 56 denotes a dictionary search control unit that searches the corrected kana character string temporarily stored in the corrected kana character string temporary storage unit 53 from the kana headline dictionary 54. 5
Reference numeral 7 denotes a search result temporary storage unit, which temporarily stores the result searched by the dictionary search control unit 56.
【0004】これら以外にも構成要素が存在するが、本
発明との対比のためには必要がないので省略する。[0004] There are components other than the above, but they are not necessary for comparison with the present invention, and will not be described.
【0005】[0005]
【発明が解決しようとする課題】しかしながら上記のよ
うな構成では、1つの入力キーボードコード列に対し
て、複数の補正仮名文字列が検索できた場合、それらの
うちどの検索結果がもっとも確からしいかを判断するこ
とができなかった。タイプミスの発生について、起こり
易いパターンと、殆ど起こらないパターンがあると考え
られる。例えば、左右の手の指で順にキーを押下する場
合と、一方の手の指で続けて押下する場合では、左右の
手の指で順に押下する場合の方が前後で文字が入れ替わ
る可能性が高いと考えられる。またシフトキーを押下し
忘れることはあるが、シフトキーを押下する必要がない
ときに余分にシフトキーを押下するタイプミスは殆どな
いと考えられる。つまり、「や」と入力すべきところを
「ゃ」(シフトキー+「や」)とタイプミスすることは
殆どないと考えられる。これらの傾向は、キーの位置関
係によるものなので、キーボードの形式(JISキーボ
ード、新JISキーボードなど)に大きく依存するもの
である。However, in the above configuration, when a plurality of corrected kana character strings can be searched for one input keyboard code string, which search result is most likely to be searched among them. Could not be determined. Regarding the occurrence of typos, it is considered that there are patterns that are likely to occur and patterns that hardly occur. For example, when keys are pressed sequentially with the left and right fingers and when the keys are pressed successively with one finger, the characters may be interchanged between the front and the rear when the keys are pressed sequentially with the left and right fingers. It is considered high. Although the user sometimes forgets to press the shift key, it is considered that there is almost no typo in which the user presses the extra shift key when it is not necessary to press the shift key. In other words, it is conceivable that there is almost no typo in the place where "ya" is to be entered as "@" (shift key + "ya"). These tendencies depend on the positional relationship of the keys, and therefore greatly depend on the type of keyboard (JIS keyboard, new JIS keyboard, etc.).
【0006】また、入力キーボードコード列を仮名文字
列に読み替えてから補正仮名文字列を作成していたた
め、仮名文字列に読み替えられないようなタイプミスの
場合、たとえば、「か」の次に半濁点が押下された時に
は補正することができなかった。濁点と次の文字が前後
で入れ替わった場合、たとえば、「がくひ(か、濁点、
く、ひ)」と入力すべきところを「か、く、濁点、ひ」
と入力してしまったとき、1文字の置換によって補正す
ることができなかった。In addition, since the corrected kana character string is created after the input keyboard code string is replaced with a kana character string, in the case of a typo that cannot be read with a kana character string, for example, a half of a character following "ka" No correction could be made when the cloud point was pressed. If the voice letter and the next character are interchanged before and after, for example, "Gakuhi (
"Ku, hi)" should be entered as "ka, k, cloud point, hi"
Could not be corrected by replacing one character.
【0007】本発明は上記問題点に鑑み、複数の補正文
字列が検索できた場合に、どの補正文字列がもっとも確
からしいかを判断できる文字処理方法およびその装置を
提供することを目的とする。また、文字列に読み替えら
れないようなタイプミスも補正して辞書検索できる文字
処理方法およびその装置を提供することを目的とする。SUMMARY OF THE INVENTION In view of the above problems, it is an object of the present invention to provide a character processing method and apparatus which can determine which correction character string is most likely when a plurality of correction character strings can be searched. . It is another object of the present invention to provide a character processing method and apparatus capable of correcting a typographical error that cannot be read as a character string and performing a dictionary search.
【0008】さらに、入力キーボードのコード列のタイ
プミスを補正して辞書検索できる文字処理方法およびそ
の装置を提供することを目的とする。It is another object of the present invention to provide a character processing method and a character processing method capable of correcting a typo in a code string of an input keyboard and searching a dictionary.
【0009】[0009]
【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の発明に係る文字処理方法は、キー
ボードより入力されたキーをコードとして入力された順
に一時記憶する入力キーボードコード列一時記憶ステッ
プと、一時記憶している入力キーボードコード列を文字
列として読み替える入力キーボードコード列読み替えス
テップと、読み替えに際して少なくとも文字の置換、削
除、挿入、前後入替の1つを行って補正文字列を作成す
る補正文字列作成ステップと、作成した補正文字列を一
時記憶する補正文字列一時記憶ステップと、一時記憶し
た補正文字列を文字列を見出しとする辞書から検索する
辞書検索制御ステップと、キーボードのキー配置に依存
する補正パターン別にあらかじめ定められた優先度にし
たがって辞書検索制御ステップで検索した結果を優先順
に並びかえる優先順整列ステップと、優先順に並びかえ
た検索結果をその優先順とともに一時記憶する検索結果
一時記憶ステップとを有し、前記優先順整列ステップ
は、キーボード上で左手で押下するキー配置の文字と右
手で押下するキー配置の文字が前後に並ぶ場合の前後入
替による補正を、片方の手で押下するキー配置の文字ど
うしの前後入替による補正よりも優先させることを特徴
とする。According to a first aspect of the present invention, there is provided a character processing method according to the first aspect of the present invention, wherein an input keyboard code for temporarily storing keys input from a keyboard as codes. A column temporary storage step, an input keyboard code column replacement step for replacing a temporarily stored input keyboard code string as a character string, and a correction character string by performing at least one of substitution, deletion, insertion, and replacement of characters at the time of replacement A correction character string creation step of creating a correction character string temporary storage step of temporarily storing the created correction character string, and a dictionary search control step of searching the temporarily stored correction character string from a dictionary with the character string as a heading, Dictionary search according to the priority determined in advance for each correction pattern that depends on the key arrangement of the keyboard Possess the priority alignment step of rearranging the result of searching in your step in order of preference, with rearranged search results that priority in the priority order of the search results temporary storage step of temporarily storing the priority alignment step
Is the character of the key arrangement pressed with the left hand on the keyboard and the right
Front / rear entry when characters with key arrangement pressed by hand are lined up
Characters with the key arrangement to be pressed with one hand
It is characterized by giving priority to correction by rearranging the back and forth of a cow .
【0010】又、請求項2に記載の発明に係る文字処理
方法は、シフトキーが余分に押下されることによるタイ
プミスは優先度を低くする優先順整列ステップを有する
ことを特徴とする。[0010] Also, the character processing method according to the invention of claim 2, typos due to the shift key is pressed extra is characterized by having a priority alignment step of low priority.
【0011】[0011]
【0012】[0012]
【0013】さらに、請求項3、4に記載の発明に係る
文字処理装置は、それぞれ請求項1、、2に記載の文字
処理方法に対応している。Further, the character processing apparatus according to the third and fourth aspects of the present invention corresponds to the character processing method according to the first and second aspects, respectively.
【0014】[0014]
【作用】請求項1に記載の発明によると、入力キーボー
ドコード列一時記憶部で記憶しているキーボードコード
列を文字列として読み替え、読み替えに際して少なくと
も文字列について文字の置換、削除、挿入、前後入替の
1つをおこなって補正文字列を作成し、補正文字列を文
字列を見出しとする辞書から検索した後、キーボードの
キー配置に依存する補正パターン別にあらかじめ定めら
れた優先度にしたがって検索結果に優先順を付け、検索
結果をその優先順とともに一時記憶するので、どの補正
文字列が最も確からしいかを判断することができる。According to the first aspect of the invention, the keyboard code string stored in the input keyboard code string temporary storage unit is read as a character string , and at least the reading is replaced.
Character of the replacement for the well string, delete, insert, No replacement before and after
Performs one to create a corrected character string, searches for the corrected character string from a dictionary with the character string as a heading, and gives priority to the search result according to a predetermined priority for each correction pattern that depends on the keyboard key layout. Since the search order is assigned and the search result is temporarily stored together with the priority order, it is possible to determine which correction character string is most likely.
【0015】さらに、優先度の設定において右手と左手
によるキー入力の前後入替を、片手によるキー入力の前
後入替よりも優先するので、キー入力時に生じ易い誤入
力に対して高い優先度が与えられ、確からしさの判断が
容易となる。又、請求項2に記載の発明によると、優先
度の設定においてシフトキーが余分に押下されることに
よるタイプミスの優先度を低くしているので、キー入力
時に生じにくい誤入力に対して低い優先度が与えられ、
確からしさの判断が容易となる。 Further , in setting the priority, the order of the key input by the right hand and the left hand is changed before and after the order of the key input by one hand. It is easy to determine the certainty. According to the second aspect of the present invention, the priority of typographical errors caused by extra pressing of the shift key in setting the priority is reduced, so that a low priority is given to an erroneous input that is unlikely to occur during key input. Given a degree,
Judgment of certainty becomes easy.
【0016】[0016]
【0017】[0017]
【0018】さらに、請求項3、4に記載の発明におい
ても、それぞれ請求項1、2に記載の発明に対応した作
用を奏する。Further, the inventions according to the third and fourth aspects also have an effect corresponding to the inventions according to the first and second aspects.
【0019】[0019]
【実施例】以下、本発明の各実施例の文字処理装置につ
いて、図面を参照しながら説明する。 (実施例1)図1に、本発明の実施例1における文字処
理装置の構成を示す。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A character processing apparatus according to each embodiment of the present invention will be described below with reference to the drawings. (Embodiment 1) FIG. 1 shows the configuration of a character processing apparatus according to Embodiment 1 of the present invention.
【0020】図1において、10は入力キーボードコー
ド列一時記憶部であり、キーボードより入力されたキー
をコードとして入力された順に記憶する。11は入力キ
ーボードコード列読み替え部であり、入力キーボードコ
ード列一時記憶部10で一時記憶している入力キーボー
ドコード列を仮名文字列として読み替える。12は補正
文字列作成部であり、入力キーボードコード列読み替え
部11で読み替えた仮名文字列について文字の置換、削
除、挿入、前後入替をおこなって補正仮名文字列を作成
する。13は補正文字列一時記憶部であり、補正文字列
作成部12で作成した補正仮名文字列を一時記憶する。
14は辞書であり、仮名文字列を見出しとし、表記など
の単語の情報を付随させて記憶している。16は辞書検
索制御部であり、補正文字列一時記憶部13で一時記憶
した補正仮名文字列を辞書14から検索する。15は優
先順整列部であり、辞書検索制御部16で検索された結
果を、キーボードのキー配置に依存する補正パターン別
にあらかじめ定められた優先度にしたがって優先順をつ
ける。17は検索結果一時記憶部であり、辞書検索制御
部16の検索結果を優先順整列部15で付けられた優先
順とともに一時記憶する。In FIG. 1, reference numeral 10 denotes an input keyboard code string temporary storage unit which stores keys input from the keyboard as codes in the order of input. Reference numeral 11 denotes an input keyboard code string reading unit that reads the input keyboard code string temporarily stored in the input keyboard code string temporary storage unit 10 as a kana character string. Reference numeral 12 denotes a corrected character string creation unit which replaces, deletes, inserts, and replaces the kana character string read by the input keyboard code string replacement unit 11 to create a corrected kana character string. A correction character string temporary storage unit 13 temporarily stores the correction kana character string created by the correction character string creation unit 12.
Reference numeral 14 denotes a dictionary, which stores a kana character string as a heading and information about words such as a notation. A dictionary search control unit 16 searches the dictionary 14 for the corrected kana character string temporarily stored in the corrected character string temporary storage unit 13. Reference numeral 15 denotes a priority order arranging unit, which assigns priorities to the results searched by the dictionary search control unit 16 according to a predetermined priority for each correction pattern depending on the key arrangement of the keyboard. Reference numeral 17 denotes a search result temporary storage unit, which temporarily stores the search results of the dictionary search control unit 16 together with the priority assigned by the priority ordering unit 15.
【0021】18は左右キーの前後入替優先規則テーブ
ルであり、キーボード上で左手で押下するキー配置の文
字と右手で押下するキー配置の文字が前後に並ぶ場合の
前後入替による補正を片方の手で押下するキー配置の文
字どうしの前後入替よりも優先させる規則を記憶する。
19はシフト洩れ優先規則テーブルであり、シフトキー
が余分に押下されることによるタイプミスは優先度を低
くするという規則を記憶する。Reference numeral 18 denotes a right-and-left key rearrangement priority rule table, which corrects a front-and-rear permutation when one key is pressed with the left hand and another key is pressed with the right hand. Stores a rule that gives priority to replacement of the characters of the key arrangement to be pressed before and after.
Reference numeral 19 denotes a shift omission priority rule table, which stores a rule that a typo caused by an extra press of the shift key lowers the priority.
【0022】図2は入力文字列の補正検索の動作を説明
するフローチャートであり、これについて各ステップ毎
に説明する。 (ステップS1) キーボードから入力されたキーボー
ドコード列を入力キーボードコード列一時記憶部10で
一時記憶する。ステップS2に行く。 (ステップS2) ステップS1で入力キーボードコー
ド列一時記憶部10に一時記憶したキーボードコード列
について、仮名文字列に読み替える。ステップS3に行
く。FIG. 2 is a flowchart for explaining the operation of the correction search of the input character string, which will be described for each step. (Step S1) The keyboard code string input from the keyboard is temporarily stored in the input keyboard code string temporary storage unit 10. Go to step S2. (Step S2) The keyboard code string temporarily stored in the input keyboard code string temporary storage unit 10 in step S1 is replaced with a kana character string. Go to step S3.
【0023】(ステップS3) ステップS2で読み替
えた仮名文字列について文字の置換、削除、挿入、前後
入替をおこなって補正仮名文字列を作成し、補正文字列
一時記憶部13で一時記憶する。。ステップS4に行
く。 (ステップS4) ステップS3で一時記憶した補正仮
名文字列がなくなるまで1つずつとり出してステップS
5に行く。補正文字文字列が無くなったら終了する。(Step S3) The kana character string read in step S2 is replaced, deleted, inserted, and replaced before and after to create a corrected kana character string and temporarily stored in the corrected character string temporary storage unit 13. . Go to step S4. (Step S4) Until the corrected kana character strings temporarily stored in step S3 are exhausted, one by one is taken out and step S
Go to 5. The process ends when the correction character string is gone.
【0024】(ステップS5) 辞書14の中にステッ
プS4でとり出した補正仮名文字列と一致する見出しが
あった場合、ステップS6に行く。無かった場合、ステ
ップS4に行く。 (ステップS6) 一致した文字列の補正パターンを優
先順整列部15で記憶している規則と比較し、優先度を
算出する。優先度が大きい順に検索結果一時記憶部に辞
書14中の表記などの単語情報、優先度を一時記憶す
る。ステップS4に行く。(Step S5) If there is a headline in the dictionary 14 that matches the corrected kana character string extracted in step S4, the flow proceeds to step S6. If not, go to step S4. (Step S6) The correction pattern of the matched character string is compared with the rule stored in the priority ordering unit 15, and the priority is calculated. The word information such as the notation in the dictionary 14 and the priority are temporarily stored in the search result temporary storage unit in the descending order of the priority. Go to step S4.
【0025】図3に、JISキーボードコードと仮名文
字、アルファベット文字の対応を示す。例えば、キーボ
ードコード「D10」は、仮名文字の「せ」、アルファ
ベットの「P」に対応する。以下、本実施例の文字処理
装置の動作を具体的に説明する。仮名入力モードで「整
理(せいり)」と入力すべきところを、誤って「せり
い」と入力した場合を考える。FIG. 3 shows the correspondence between JIS keyboard codes, kana characters, and alphabetic characters. For example, the keyboard code “D10” corresponds to the kana character “se” and the alphabet “P”. Hereinafter, the operation of the character processing device of the present embodiment will be specifically described. Consider a case in which "Seri" is erroneously entered in the kana input mode, where "Arrange" is to be entered.
【0026】表1は左手と右手で入力されるキーを示
し、表2に左右キーの前後入替優先テーブル18に記述
されている内容の一例を示す。Table 1 shows keys input with the left and right hands, and Table 2 shows an example of the contents described in the front / rear exchange priority table 18 for left and right keys.
【0027】[0027]
【表1】 [Table 1]
【0028】[0028]
【表2】 [Table 2]
【0029】キーボードから「せりい」が入力される
と、キーボードコード列「D10、C09、D03」を
入力キーボードコード列一時記憶部10が一時記憶す
る。入力キーボードコード列読み替え部11は「D03
→い」、「D10→せ」、「C09→り」と読み替え
て、仮名文字列「せりい」を生成する。補正文字列作成
部12は、表3に示すように補正仮名文字列を作成し、
補正文字列一時記憶部13が一時記憶する。When "Seri" is input from the keyboard, the input keyboard code string temporary storage unit 10 temporarily stores the keyboard code string "D10, C09, D03". The input keyboard code string reading replacement unit 11 outputs “D03
The word “seeri” is generated by reading “i”, “D10 → se” and “C09 → ri”. The correction character string creation unit 12 creates a correction kana character string as shown in Table 3,
The correction character string temporary storage unit 13 temporarily stores the correction character string.
【0030】[0030]
【表3】 [Table 3]
【0031】表4に、辞書14で記憶している内容の一
部を示す。Table 4 shows a part of the contents stored in the dictionary 14.
【0032】[0032]
【表4】 [Table 4]
【0033】辞書検索制御部16は、補正文字列一時記
憶部13で記憶している補正仮名文字列と辞書14の中
の見出しと一致するものがあるかどうかを調べる。この
場合、「せいり」と「りせい」が一致する。左右キーの
前後入替優先規則テーブル18に、あてはまる補正パタ
ーンがあるかどうかを調べる。「せいり」の場合、
「せ」は右手、「い」は左手であり、優先度は1であ
る。「りせい」の場合、「せ」も「り」も右手なので、
優先度は0である。検索結果一時記憶部17は、表5の
ように一時記憶する。The dictionary search control unit 16 checks whether or not there is any one of the corrected kana character strings stored in the corrected character string temporary storage unit 13 and the index in the dictionary 14. In this case, "sei" coincides with "sei". It is checked whether or not there is a correction pattern that applies to the left-right key front / rearrangement priority rule table 18. In the case of "Seri",
“Se” is the right hand, “I” is the left hand, and the priority is 1. In the case of "Risei", both "Rise" and "Rise" are on the right,
The priority is 0. The search result temporary storage unit 17 temporarily stores as shown in Table 5.
【0034】[0034]
【表5】 [Table 5]
【0035】次に、「十(じゅう)」を入力する場合を
考える。表6はシフトなしの文字とシフトありの文字例
を示し、表7にシフト洩れ優先規則テーブルに記述され
ている内容の一例を示す。Next, consider the case of inputting "ten". Table 6 shows examples of characters without shift and characters with shift, and Table 7 shows an example of contents described in the shift omission priority rule table.
【0036】[0036]
【表6】 [Table 6]
【0037】[0037]
【表7】 [Table 7]
【0038】キーボードから「じゅう」が入力される
と、キーボードコード列「C03、D11、B00、E
08、E04」を入力キーボードコード列一時記憶部1
0が一時記憶する。入力キーボードコード列読み替え部
11は、「C03、D11→じ」、「B00、E08→
ゅ」、「E04→う」と読み替えて、仮名文字列「じゅ
う」を生成する。補正文字列作成部12は、表8のよう
に補正仮名文字列を作成し、補正文字列一時記憶部13
が一時記憶する。When "10" is input from the keyboard, the keyboard code string "C03, D11, B00, E
08, E04 ”as input keyboard code string temporary storage unit 1
0 is temporarily stored. The input keyboard code string reading and replacing unit 11 outputs “C03, D11 → J”, “B00, E08 →
ゅ ”and“ E04 → U ”to generate the kana character string“ ju ”. The correction character string creation unit 12 creates a correction kana character string as shown in Table 8, and stores the correction character string temporary storage unit 13
Temporarily memorize.
【0039】[0039]
【表8】 [Table 8]
【0040】辞書検索制御部16は、補正文字列一時記
憶部13で記憶している補正仮名文字列と辞書14の中
の見出しと一致するものがあるかどうかを調べる。この
場合、「じゅう」と「じゆう」が一致する。シフト洩れ
優先規則テーブル19に、あてはまる補正パターンがあ
るかどうかを調べる。「じゆう」の場合、「ゆ」を「ゅ
(シフトキー+ゆ)」に間違えたことになるので、優先
度は低くなる。検索結果一時記憶部17は、表9のよう
に一時記憶する。The dictionary search control unit 16 checks whether or not there is any one of the corrected kana character strings stored in the corrected character string temporary storage unit 13 and the index in the dictionary 14. In this case, "ju" and "jiyu" match. It is checked whether or not there is an applicable correction pattern in the shift leakage priority rule table 19. In the case of “Jiyu”, “Y” is mistaken for “ゅ (shift key + Y)”, so the priority is low. The search result temporary storage unit 17 temporarily stores as shown in Table 9.
【0041】[0041]
【表9】 [Table 9]
【0042】以上のように、入力に対して複数の補正候
補が出た場合、優先順をつけて辞書検索の結果を求める
ことができる。 (実施例2)図4に、本発明の実施例2における文字処
理装置の構成を示す。図4において、10、13、1
4、17は、実施例1と同じものなので説明を省略す
る。31は入力キーボードコード列補正読み替え部であ
り、入力キーボードコード列一時記憶部10で記憶して
いるキーボードコード列を仮名文字列として読み替える
際にキーボードのコード列についてキーボードコードの
置換、削除、挿入、前後入替をおこなって補正キーボー
ドコード列を作成した後に、作成した補正キーボードコ
ード列を仮名文字列に読み替えて、補正仮名文字列を作
成する。32は辞書検索制御部であり、補正文字列一時
記憶部13で一時記憶した補正仮名文字列を辞書14か
ら検索する。As described above, when a plurality of correction candidates appear for an input, the results of the dictionary search can be obtained with priorities. (Embodiment 2) FIG. 4 shows the configuration of a character processing apparatus according to Embodiment 2 of the present invention. In FIG. 4, 10, 13, 1
Reference numerals 4 and 17 are the same as those in the first embodiment, and a description thereof will be omitted. Reference numeral 31 denotes an input keyboard code string correction reading unit that replaces, deletes, and inserts a keyboard code string in a keyboard code string when reading a keyboard code string stored in the input keyboard code string temporary storage unit 10 as a kana character string. After creating a corrected keyboard code string by performing a back and forth exchange, the created corrected keyboard code string is replaced with a kana character string to create a corrected kana character string. Reference numeral 32 denotes a dictionary search control unit which searches the dictionary 14 for a corrected kana character string temporarily stored in the corrected character string temporary storage unit 13.
【0043】以下、本実施例の文字処理装置の動作を具
体的に説明する。「がくひ」と入力すべきところを「か
ぐひ」と入力した場合を考える。キーボードから「かぐ
ひ」が入力されると、キーボードコード列「D05、C
06、D11、B04」」を入力キーボードコード列一
時記憶部10が一時記憶する。入力キーボードコード列
補正読み替え部31は、表10のように補正キーボード
コード列を作成して、仮名文字列に読み替える。補正文
字列一時記憶部13は、補正されて読み替えられた補正
仮名文字列を一時記憶する。Hereinafter, the operation of the character processing apparatus of this embodiment will be described in detail. Consider the case where "Kakuhi" is entered where "gakuhi" should be entered. When “Kaghi” is input from the keyboard, the keyboard code string “D05, C
06, D11, B04 "" is temporarily stored in the input keyboard code string temporary storage unit 10. The input keyboard code string correction reading unit 31 creates a correction keyboard code string as shown in Table 10 and reads the corrected keyboard code string into a kana character string. The corrected character string temporary storage unit 13 temporarily stores the corrected kana character string corrected and read.
【0044】[0044]
【表10】 [Table 10]
【0045】辞書検索制御部32は、補正文字列一時記
憶部13で記憶している補正仮名文字列と辞書14の中
の見出しと一致するものがあるかどうかを調べる。この
場合、「がくひ」が一致する。検索結果一時記憶部17
は、表11のように一時記憶する。The dictionary search control unit 32 checks whether or not there is a match between the corrected kana character string stored in the corrected character string temporary storage unit 13 and a heading in the dictionary 14. In this case, "gakuhi" matches. Search result temporary storage unit 17
Is temporarily stored as shown in Table 11.
【0046】[0046]
【表11】 [Table 11]
【0047】(実施例3)図5に、本発明の実施例3に
おける文字処理装置の構成を示す。図5において10、
18は、実施例1と同じものなので説明を省略する。4
1は補正入力キーボードコード列作成部であり、入力キ
ーボードコード列一時記憶部10で記憶しているキーボ
ードコード列についてキーボードコード列の置換、削
除、挿入、前後入替をおこなって補正キーボードコード
列を作成する。42は補正キーボードコード列一時記憶
部であり、補正入力キーボードコード列作成部41で作
成した補正キーボードコード列を一時記憶する。43は
キーボードコード見出し辞書であり、キーボードのコー
ド列を見出しとし、表記などの単語の情報を付随させて
記憶している。44は辞書検索制御部であり、補正キー
ボードコード列一時記憶部42で一時記憶した補正キー
ボードコード列により補正仮名文字列をキーボードコー
ド見出し辞書43から検索する。(Embodiment 3) FIG. 5 shows the configuration of a character processing apparatus according to Embodiment 3 of the present invention. In FIG. 5, 10,
Reference numeral 18 is the same as that in the first embodiment, and a description thereof will not be repeated. 4
Reference numeral 1 denotes a corrected input keyboard code string creation unit that creates a corrected keyboard code string by replacing, deleting, inserting, and rearranging the keyboard code string in the keyboard code string stored in the input keyboard code string temporary storage unit 10. I do. Reference numeral 42 denotes a correction keyboard code string temporary storage unit, which temporarily stores the correction keyboard code string created by the correction input keyboard code string creation unit 41. Reference numeral 43 denotes a keyboard code index dictionary, which uses a keyboard code string as an index and stores word information such as notation along with the index. Reference numeral 44 denotes a dictionary search control unit which searches the keyboard code index dictionary 43 for a corrected kana character string based on the corrected keyboard code string temporarily stored in the corrected keyboard code string temporary storage unit 42.
【0048】以下、本実施例の文字処理装置の動作を具
体的に説明する。表12に、キーボードコード見出し辞
書43で記憶している内容の一部を示す。Hereinafter, the operation of the character processing apparatus of this embodiment will be described in detail. Table 12 shows a part of the contents stored in the keyboard code index dictionary 43.
【0049】[0049]
【表12】 [Table 12]
【0050】実施例2と同様に「がくひ」と入力すべき
ところを「かぐひ」と入力した場合を考える。キーボー
ドから「かぐひ」が入力されると、キーボードコード列
「D05、C06、D11、B04」」を入力キーボー
ドコード列一時記憶部10が一時記憶する。補正入力キ
ーボードコード列作成部41は、表13に示すような補
正キーボードコード列を作成する。補正キーボードコー
ド文字列一時記憶部42は、補正された補正キーボード
コード列を一時記憶する。As in the case of the second embodiment, the case where "Kakuhi" is entered where "gakuhi" should be entered is considered. When “Kaghi” is input from the keyboard, the input keyboard code string temporary storage unit 10 temporarily stores the keyboard code string “D05, C06, D11, B04”. The correction input keyboard code string creation unit 41 creates a correction keyboard code string as shown in Table 13. The corrected keyboard code string temporary storage unit 42 temporarily stores the corrected corrected keyboard code string.
【0051】[0051]
【表13】 [Table 13]
【0052】辞書検索制御部44は、補正キーボードコ
ード列一時記憶部42で一時記憶している補正キーボー
ドコード列とキーボードコード見出し辞書43の中の見
出しと一致するものがあるかどうかを調べる。この場
合、「がくひ」が一致する。検索結果一時記憶部17
は、実施例2と同様に、表11のように一時記憶する。
なお、上記実施例1においては、1つの優先規則で優先
順を算出したが、複数の方法を組み合わせてもよい。The dictionary search control unit 44 checks whether or not there is any one of the corrected keyboard code sequence temporarily stored in the corrected keyboard code sequence temporary storage unit 42 and the entry in the keyboard code entry dictionary 43. In this case, "gakuhi" matches. Search result temporary storage unit 17
Is temporarily stored as shown in Table 11 as in the second embodiment.
In the first embodiment, the priority order is calculated by one priority rule, but a plurality of methods may be combined.
【0053】また、上記実施例1、2、3においては、
JISキーボードを使用したが、新JISキーボードな
ど他のキーボードを使用しても良い。この場合、タイプ
ミスし易いパターンがキーボードのキー配置に依存する
ので、優先規則は本実施例とは異なる。また、キーボー
ドコードをJISで定められたコード体系としたが、キ
ーボード固有のコード体系でもよい。In Examples 1, 2, and 3,
Although the JIS keyboard is used, another keyboard such as a new JIS keyboard may be used. In this case, the priority rule is different from that in the present embodiment, because the pattern in which typographical errors are likely depends on the key arrangement of the keyboard. Although the keyboard code is a code system defined by JIS, a keyboard-specific code system may be used.
【0054】また、上記実施例1、2においては、入力
キーボードコード列読み替え部では仮名文字列に読み替
えたが英語などの外国語の文字列でもよい。この場合、
辞書の見出し文字列も英語などになる。又、上記実施例
3においては、表記に対応する部分は日本語の文字列に
限らず、英語などの外国語の表記でもよい。Also, in the first and second embodiments, the input keyboard code string reading unit reads the character string in a kana character string, but may use a character string in a foreign language such as English. in this case,
The dictionary entry string is also English. In the third embodiment, the part corresponding to the notation is not limited to a Japanese character string, but may be a notation in a foreign language such as English.
【0055】さらに、入力モードは、仮名入力モードの
場合としたが、ローマ字入力モード入力でもよい。実施
例3におけるローマ字入力モードの場合、キーボードコ
ード見出し辞書は、表12で示すようになる。Although the input mode is the kana input mode, the input mode may be a Roman character input mode. In the case of the Roman character input mode in the third embodiment, the keyboard code index dictionary is as shown in Table 12.
【0056】[0056]
【発明の効果】請求項1に記載の発明によると、補正文
字列を文字列を見出しとする辞書から検索した後、キー
ボードのキー配置に依存する補正パターン別にあらかじ
め定められた優先度にしたがって優先順を付け、その優
先順とともに検索結果を一時記憶するので、入力に対す
る補正候補が複数あった場合にどの補正文字列が最も確
からしいかを容易に判断することができる。According to the first aspect of the present invention, after a correction character string is searched from a dictionary in which a character string is a heading, priority is given in accordance with a priority determined in advance for each correction pattern depending on a key arrangement of a keyboard. Since the search results are temporarily stored together with the priority order, it is possible to easily determine which correction character string is most likely when there are a plurality of correction candidates for the input.
【0057】さらに、優先度の設定において右手と左手
によるキー入力の前後入替を、片手によるキー入力の前
後入替よりも優先するので、キー入力時に生じ易い誤入
力に対して高い優先度が与えられ、確からしさの判断が
容易となる。又、請求項2に記載の発明によると、優先
度の設定においてシフトキーが余分に押下されることに
よるタイプミスの優先度を低くしているので、キー入力
時に生じにくい誤入力に対して低い優先度が与えられ、
確からしさの判断が容易となる。 Further , in setting the priority, the order of the key input by the right hand and the left hand is changed before and after the order of the key input by the one hand. It is easy to determine the certainty. According to the second aspect of the present invention, the priority of typographical errors caused by extra pressing of the shift key in setting the priority is reduced, so that a low priority is given to an erroneous input that is unlikely to occur at the time of key input. Given a degree,
Judgment of certainty becomes easy.
【0058】[0058]
【0059】[0059]
【0060】さらに、請求項3、4に記載の発明におい
ても、それぞれ請求項1、2に記載の発明に対応した効
果を奏することができる。Further, also in the inventions according to the third and fourth aspects, effects corresponding to the inventions according to the first and second aspects can be obtained.
【図1】本発明の実施例1における文字処理装置の構成
図である。FIG. 1 is a configuration diagram of a character processing device according to a first embodiment of the present invention.
【図2】同実施例における文字処理動作を説明するフロ
ーチャートである。FIG. 2 is a flowchart illustrating a character processing operation in the embodiment.
【図3】キーボードコードの説明図である。FIG. 3 is an explanatory diagram of a keyboard code.
【図4】本発明の実施例2における文字処理装置の構成
図である。FIG. 4 is a configuration diagram of a character processing device according to a second embodiment of the present invention.
【図5】本発明の実施例3における文字処理装置の構成
図である。FIG. 5 is a configuration diagram of a character processing device according to a third embodiment of the present invention.
【図6】従来例の文字入力装置の構成図である。FIG. 6 is a configuration diagram of a conventional character input device.
10 入力キーボードコード列一時記憶部 11 入力キーボードコード列読み替え部 12 補正文字列作成部 13 補正文字列一時記憶部 14 辞書 15 優先順整列部 16 辞書検索制御部 17 検索結果一時記憶部 18 左右キーの前後入替優先規則テーブル 19 シフト洩れ優先規則テーブル 31 入力キーボードコード列補正読み替え部 32 辞書検索制御部 41 補正入力キーボードコード列作成部 42 補正キーボードコード列一時記憶部 43 キーボードコード見出し辞書 44 辞書検索制御部 DESCRIPTION OF SYMBOLS 10 Input keyboard code string temporary storage part 11 Input keyboard code string reading part 12 Correction character string creation part 13 Correction character string temporary storage part 14 Dictionary 15 Priority ordering part 16 Dictionary search control part 17 Search result temporary storage part 18 Left and right key Rearrangement priority rule table 19 Shift leakage priority rule table 31 Input keyboard code string correction reading and replacing section 32 Dictionary search control section 41 Correction input keyboard code string creation section 42 Correction keyboard code string temporary storage section 43 Keyboard code index dictionary 44 Dictionary search control section
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−85660(JP,A) 実開 平3−13527(JP,U) (58)調査した分野(Int.Cl.7,DB名) G06F 17/21 - 17/24 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-4-85660 (JP, A) JP-A-3-13527 (JP, U) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 17/21-17/24
Claims (4)
として入力された順に一時記憶する入力キーボードコー
ド列一時記憶ステップと、一時記憶している入力キーボ
ードコード列を文字列として読み替える入力キーボード
コード列読み替えステップと、読み替えに際して少なく
とも文字の置換、削除、挿入、前後入替の1つを行って
補正文字列を作成する補正文字列作成ステップと、作成
した補正文字列を一時記憶する補正文字列一時記憶ステ
ップと、一時記憶した補正文字列を文字列を見出しとす
る辞書から検索する辞書検索制御ステップと、キーボー
ドのキー配置に依存する補正パターン別にあらかじめ定
められた優先度にしたがって辞書検索制御ステップで検
索した結果を優先順に並びかえる優先順整列ステップ
と、優先順に並びかえた検索結果をその優先順とともに
一時記憶する検索結果一時記憶ステップとを有し、 前記優先順整列ステップは、キーボード上で左手で押下
するキー配置の文字と右手で押下するキー配置の文字が
前後に並ぶ場合の前後入替による補正を、片方の手で押
下するキー配置の文字どうしの前後入替による補正より
も優先させる ことを特徴とする文字処理方法。1. An input keyboard code string temporary storing step of temporarily storing keys input from a keyboard as codes in the order of input, and an input keyboard code string replacing step of reading the temporarily stored input keyboard code string as a character string. and, at least when it replaced
With substitution of characters, deletion, insertion, and correction strings generating step of generating a corrected character string by performing one of the replacement before and after a correction string temporary storage step for temporarily storing the corrected character string created and temporarily stored A dictionary search control step of searching for a corrected character string from a dictionary with a character string as a heading, and the search results in the dictionary search control step are arranged in a priority order according to a predetermined priority for each correction pattern depending on a key arrangement of a keyboard. and priority alignment step of changing, possess a search result temporary storage step of temporarily storing with reordering the search results the priority in order of priority, the priority alignment step is pressed in the left hand on the keyboard
Key arrangement and the key arrangement pressed with the right hand
Use one hand to press the
Than the correction by replacing the characters of the key arrangement that goes down before and after
A character processing method characterized by giving priority to
るタイプミスは優先度を低くする優先順整列ステップを
有することを特徴とする請求項1記載の文字処理方法。2. A character processing method according to claim 1, further comprising a priority ordering step for lowering a priority level when a typo caused by an extra press of the shift key.
として入力された順に一時記憶する入力キーボードコー
ド列一時記憶部と、一時記憶している入力キーボードコ
ード列を文字列として読み替える入力キーボードコード
列読み替え部と、読み替えに際して少なくとも文字の置
換、削除、挿入、前後入替の1つを行って補正文字列を
作成する補正文字列作成部と、作成した補正文字列を一
時記憶する補正文字列一時記憶部と、文字列を見出しと
する辞書と、一時記憶した補正文字列を辞書から検索す
る辞書検索制御部と、キーボードのキー配置に依存する
補正パターン別にあらかじめ定められた優先度にしたが
って辞書検索制御部で検索した結果を優先順に並びかえ
る優先順整列部と、優先順に並びかえた検索結果をその
優先順とともに一時記憶する検索結果一時記憶部とを有
し、 前記優先順整列部は、キーボード上で左手で押下するキ
ー配置の文字と右手で押下するキー配置の文字が前後に
並ぶ場合の前後入替による補正を、片方の手で押下する
キー配置の文字どうしの前後入替による補正よりも優先
させる ことを特徴とする文字処理装置。3. An input keyboard code string temporary storage unit for temporarily storing keys input from a keyboard as codes in the order of input, and an input keyboard code string replacement unit for reading the temporarily stored input keyboard code strings as character strings. When substitution of at least characters when replaced, deleted, inserted, and correction strings creation unit that creates a correction character string by performing one of the replacement before and after a correction string temporary storage unit for temporarily storing the corrected character string created A dictionary with a character string as a heading, a dictionary search control unit for searching the temporarily stored correction character string from the dictionary, and a dictionary search control unit according to a priority determined in advance by a correction pattern depending on a key arrangement of a keyboard. A priority sorting unit that sorts search results in priority order, and temporarily sorts search results sorted in priority order together with their priority order. Search result temporary storage unit
The priority ordering unit is a key pressed with the left hand on the keyboard.
-The letter of the key arrangement and the letter of the key arrangement pressed with the right hand
Press with one hand to correct by rearranging in the case of lining up
Takes precedence over correction by replacing the key layout characters
Character processing apparatus characterized by causing.
るタイプミスは優先度を低くする優先順整列部を有する
ことを特徴とする請求項3記載の文字処理装置。4. The character processing apparatus according to claim 3, further comprising a priority ordering unit for lowering a priority level when a typo caused by an extra press of the shift key.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17425893A JP3263190B2 (en) | 1993-07-14 | 1993-07-14 | Character processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17425893A JP3263190B2 (en) | 1993-07-14 | 1993-07-14 | Character processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0728810A JPH0728810A (en) | 1995-01-31 |
| JP3263190B2 true JP3263190B2 (en) | 2002-03-04 |
Family
ID=15975493
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17425893A Expired - Fee Related JP3263190B2 (en) | 1993-07-14 | 1993-07-14 | Character processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3263190B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2897743B2 (en) * | 1996-11-22 | 1999-05-31 | 日本電気株式会社 | English word search apparatus and method |
| JP2006155262A (en) * | 2004-11-30 | 2006-06-15 | Sourcenext Corp | Input support system, input support method and program |
| JP6089982B2 (en) * | 2013-06-07 | 2017-03-08 | 富士通株式会社 | Word input program, information processing apparatus, and word input method |
| CN108271041B (en) * | 2016-12-30 | 2021-01-22 | 北京国双科技有限公司 | Garbled code processing method and device |
-
1993
- 1993-07-14 JP JP17425893A patent/JP3263190B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0728810A (en) | 1995-01-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0277356B1 (en) | Spelling error correcting system | |
| CA1189976A (en) | Displaying and correcting method for machine translation system | |
| EP0394633A2 (en) | Method for language-independent text tokenization using a character categorization | |
| JP2741835B2 (en) | How to separate input text strings by words | |
| US4894779A (en) | Translating apparatus | |
| JPH0916598A (en) | Character string correction system and method using error pattern | |
| JPH0877173A (en) | String correction system and method | |
| JPH11505052A (en) | System and method for reducing search range of lexical dictionary | |
| JPH1153384A (en) | Keyword extraction device, keyword extraction method, and computer-readable recording medium storing keyword extraction program | |
| US20020169763A1 (en) | Method and system for expanding document retrieval information | |
| JPH0528183A (en) | Text original analyzing method | |
| EP0054658A1 (en) | Automatic spelling checking and correction process in a text processing system | |
| JP3263190B2 (en) | Character processing method and device | |
| EP0097818B1 (en) | Spelling verification method and typewriter embodying said method | |
| KR100736561B1 (en) | Typing correction device and method and mobile communication terminal | |
| Lehal | Design and implementation of Punjabi spell checker | |
| JPH08180066A (en) | Index creating method, document search method, and document search device | |
| JPH0546594A (en) | Input device | |
| Giangardella et al. | Spelling correction by vector representation using a digital computer | |
| JP3103179B2 (en) | Document creation device and document creation method | |
| JP3693694B2 (en) | Automatic input error repair device | |
| JPH0244459A (en) | Japanese text correction candidate extracting device | |
| JPH04257965A (en) | character correction device | |
| JPS58151677A (en) | Editing method of translated sentence | |
| JPS62249269A (en) | Document processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |