JPH08329068A - Character string processing method and apparatus thereof - Google Patents
Character string processing method and apparatus thereofInfo
- Publication number
- JPH08329068A JPH08329068A JP7131335A JP13133595A JPH08329068A JP H08329068 A JPH08329068 A JP H08329068A JP 7131335 A JP7131335 A JP 7131335A JP 13133595 A JP13133595 A JP 13133595A JP H08329068 A JPH08329068 A JP H08329068A
- Authority
- JP
- Japan
- Prior art keywords
- character string
- input
- unit
- error
- error detection
- 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
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】
【目的】 入力誤りをオペレータに知らるとともに、入
力誤りの訂正作業を簡略化する。
【構成】 入力部201は文字列を編集しながら入力文
字列一時記憶部202に一時記憶するとともに、出力部
210に入力文字列を出力する。オペレータが変換指示
手段103を通じて変換を指示すると、誤り検出部10
8が誤りを検出する。誤りが検出された場合、カーソル
制御部112は誤入力箇所にカーソルを移動させ、編集
モード設定部114は、御入力の種類が置換または交換
ならば編集モードレジスタを上書きモードに書き換え、
御入力の種類が脱落なら編集モードレジスタを挿入モー
ドに書き換える。誤りが検出されなかった場合、変換結
果表示制御部109は、形態素の表記を出力部110に
を出力する。
(57) [Summary] [Purpose] To inform the operator of input errors and simplify the work of correcting input errors. [Configuration] The input unit 201 temporarily stores the input character string in the input character string temporary storage unit 202 while editing the character string, and outputs the input character string to the output unit 210. When the operator instructs conversion through the conversion instructing means 103, the error detecting unit 10
8 detects an error. If an error is detected, the cursor control unit 112 moves the cursor to the erroneous input location, and the edit mode setting unit 114 rewrites the edit mode register to the overwrite mode if the type of input is replacement or exchange,
If the type of input is dropped, rewrite the edit mode register to insert mode. When no error is detected, the conversion result display control unit 109 outputs the morpheme notation to the output unit 110.
Description
【0001】[0001]
【産業上の利用分野】本発明は、文字列の誤り箇所を検
出する文字列処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string processing device for detecting an error portion of a character string.
【0002】[0002]
【従来の技術】文字列処理装置は、例えばワードプロセ
ッサ等に組み込まれ、ユーザがキーボードなどの入力装
置から入力する文字列に対し、かな漢字変換処理等を行
って所望の文節候補を生成するものである。2. Description of the Related Art A character string processing device is incorporated in, for example, a word processor or the like, and performs a kana-kanji conversion process or the like on a character string input by a user from an input device such as a keyboard to generate a desired phrase candidate. .
【0003】図13は、従来の文字列処理装置の構成図
である。図13において、201は、例えばキーボード
装置から構成される入力部であり、文字列を入力する。FIG. 13 is a block diagram of a conventional character string processing device. In FIG. 13, reference numeral 201 denotes an input unit including a keyboard device for inputting a character string.
【0004】202は入力文字列一時記憶部であり、入
力された文字列を一時記憶する。203は変換指示手段
であり、かな漢字変換を指示する。An input character string temporary storage unit 202 temporarily stores the input character string. Reference numeral 203 denotes a conversion instructing means for instructing kana-kanji conversion.
【0005】204は辞書であり、文法情報等の形態素
の情報を入力文字列と対応付づけて格納している。A dictionary 204 stores morpheme information such as grammatical information in association with an input character string.
【0006】205は拡張辞書検索部であり、入力文字
列に従って、あるいは適宜入力文字列を書き換えながら
辞書204を検索して入力文字列中の形態素の情報を抽
出する。Reference numeral 205 denotes an extended dictionary search unit which searches the dictionary 204 according to the input character string or while rewriting the input character string as appropriate to extract morpheme information in the input character string.
【0007】206は形態素解析部であり、拡張辞書検
索部205が検索した形態素を参照して形態素解析す
る。A morpheme analysis unit 206 refers to the morpheme searched by the extended dictionary search unit 205 to perform morpheme analysis.
【0008】207は形態素列一時記憶部であり、形態
素解析部206で分割された形態素を一時記憶する。A morpheme string temporary storage unit 207 temporarily stores the morphemes divided by the morpheme analysis unit 206.
【0009】209は変換結果表示制御部であり、かな
漢字変換結果の表示を制御する。210はディスプレイ
装置等から構成される出力部であり、文字列を表示す
る。A conversion result display control unit 209 controls the display of kana-kanji conversion results. Reference numeral 210 denotes an output unit including a display device or the like, which displays a character string.
【0010】前述のように構成された従来の文字列処理
装置の動作を図14のフローチャートにしたがって説明
する。 (2000)オペレータが文字列編集操作を指示したな
ら(2001)に進む。そうでないなら(2002)に
進む。 (2001)入力部201は文字列を編集しながら入力
文字列一時記憶部202に一時記憶するとともに、出力
部210に入力文字列を出力し、(2000)に戻る。 (2002)オペレータが変換指示手段203を通じて
変換を指示したなら(2003)に進む。そうでないな
ら(2000)に戻る。 (2003)拡張辞書検索部205は、入力文字列の中
に誤りがあることを想定し、一定の規則に基づいて入力
文字列の一部を書き換えるながら辞書204を検索す
る。 (2004)形態素解析部206は、形態素間の接続関
係を調べて文法的に接続可能な形態素列を求める。 (2005)形態素解析部206は、選択された形態素
列を形態素列一時記憶部207に一時記憶する。 (2006)変換結果表示制御部209は、形態素列一
時記憶部207に一時記憶された形態素の表記を出力部
210にを出力して、(2000)に戻る。 (おわり)以上のように動作する従来の文字列処理装置
における具体的な動作を次に説明する。ここで、変換指
示手段203は、実際にはキーボードであり、変換キー
を押下することでかな漢字変換の実行を指示するものと
する。The operation of the conventional character string processing apparatus configured as described above will be described with reference to the flowchart of FIG. (2000) If the operator instructs a character string editing operation, the process proceeds to (2001). If not, proceed to (2002). (2001) The input unit 201 temporarily stores the input character string in the input character string temporary storage unit 202 while editing the character string, outputs the input character string to the output unit 210, and returns to (2000). (2002) If the operator instructs conversion through the conversion instructing means 203, the process proceeds to (2003). If not, return to (2000). (2003) The extended dictionary search unit 205 assumes that there is an error in the input character string, and searches the dictionary 204 while rewriting a part of the input character string based on a certain rule. (2004) The morpheme analysis unit 206 finds a morphologically connectable morpheme string by examining the connection relationship between morphemes. (2005) The morpheme analysis unit 206 temporarily stores the selected morpheme sequence in the morpheme sequence temporary storage unit 207. (2006) The conversion result display control unit 209 outputs the morpheme notation temporarily stored in the morpheme string temporary storage unit 207 to the output unit 210, and returns to (2000). (End) A specific operation in the conventional character string processing device that operates as described above will be described below. Here, the conversion instruction means 203 is actually a keyboard, and it is assumed that the conversion key is pressed to instruct execution of kana-kanji conversion.
【0011】いま、ユーザが「入力を」という文を作成
する場合に、キーボード等の入力部201より、誤って
「にゅーりょくを」を入力したとすると、「にゅーりょ
くを」を入力文字列一時記憶部202に一時記憶する。Now, when the user creates a sentence "input", if he mistakenly inputs "new record" from the input unit 201 such as a keyboard, "new record" is input. It is temporarily stored in the input character string temporary storage unit 202.
【0012】オペレータが変換キーを押下すると、拡張
辞書検索部205は、入力文字列の中に誤りがあること
を想定し、入力文字列の一部を書き換えながら辞書20
4を検索する。誤りパターンは種々のものが考えられる
が、ここでは以下の4つのパターンを想定する。 (a)置換 誤ったキーを押下した場合に発生するもので、例えば
「う」と入力すべきところを、キーボード上でその隣に
ある「え」を入力した場合である。 (b)脱落 キー入力が欠落するもので、例えば「にゅうりょく」と
入力すべきところを「う」が欠落して「にゅりょく」と
入力してしまった場合である。 (c)挿入 余分なキーを押下した場合に発生するもので、例えば
「にゅうりょく」と入力すべきところを「う」を余分に
押下して「にゅううりょく」と入力してしまった場合で
ある。 (d)交換 キー入力の順序が逆転した場合に発生するもので、例え
ば「そうち」と入力すべきところを「そ」と「う」を逆
に入力して「うそち」と入力してしまった場合である。When the operator presses the conversion key, the extended dictionary search unit 205 assumes that there is an error in the input character string and, while rewriting a part of the input character string, the dictionary 20.
Search for 4. Although various error patterns can be considered, the following four patterns are assumed here. (A) Substitution This occurs when an incorrect key is pressed, for example, when "u" is to be input and "e" next to it is input on the keyboard. (B) Missing Key input is missing, for example, when “U” is missing and “Nyuryoku” is entered where “Nyuryoku” should be entered. (C) Insert This occurs when you press an extra key. For example, when you want to enter "Nyuryoku", press "U" extra and enter "Nyuryoku". This is the case. (D) Exchange This occurs when the order of key input is reversed. For example, when you want to enter "Sochi", enter "So" and "U" in reverse and enter "Usochi". This is the case.
【0013】拡張辞書検索部205は、上記4つの誤り
があることを想定し、入力文字列の一部を書き換えなが
ら辞書204を検索する。こうして検索できた形態素を
取り出し、例えば、図3の結果を得る。誤りを想定した
辞書の検索については、例えば特願平5―167989
に詳細に記されており、本発明の主眼ではないので説明
を省略する。The extended dictionary search unit 205 searches the dictionary 204 while rewriting a part of the input character string on the assumption that there are the above four errors. The morphemes that can be searched in this way are taken out, and for example, the result of FIG. 3 is obtained. For a dictionary search assuming an error, see, for example, Japanese Patent Application No. 5-167989.
Are described in detail and are not the main object of the present invention, and thus the description thereof will be omitted.
【0014】次に、形態素解析部206は、入力文字列
を形態素解析して、入力文字列の先頭から最後までを構
成する形態素列の中で文法的に矛盾のない形態素列を求
めて、形態素列「入力」と「を」を得る。文法規則と形
態素解析については、例えば「情報処理Vol.34,No.10,p
p1242-1244」に解説されており、さらに誤りを許容した
形態素解析については特願平5―261208に記され
ており、本発明の主眼ではないので説明を省略する。Next, the morpheme analysis unit 206 performs a morpheme analysis on the input character string to obtain a morpheme string that is grammatically consistent among the morpheme strings forming the input character string from the beginning to the end, and the morpheme. Get the columns "input" and "w". For grammatical rules and morphological analysis, see, for example, "Information Processing Vol.34, No.10, p.
p1242-1244 ”, and the morphological analysis that allows an error is described in Japanese Patent Application No. 5-261208, which is not the main subject of the present invention, and the description thereof will be omitted.
【0015】形態素解析部206は、形態素列「入力」
と「を」を形態素列一時記憶部207に一時記憶する。The morpheme analysis unit 206 uses the morpheme sequence “input”.
And “” are temporarily stored in the morpheme string temporary storage unit 207.
【0016】変換結果表示制御部209は、ディスプレ
イ装置等から構成される出力部210に得られた形態素
列「入力を」を出力する。The conversion result display control unit 209 outputs the obtained morpheme string "input" to the output unit 210 composed of a display device or the like.
【0017】[0017]
【発明が解決しようとする課題】従来の文字列処理方法
およびその装置においては、前述の具体例で示したよう
に、かな漢字変換時に自動的に入力ミスを訂正するので
便利ではあるが、オペレータが誤って入力したことを気
づかないという問題点が生じる。入力ミスの中には、キ
ーボード誤りと認知誤りがある。前者は、例えば、誤っ
て近隣キーを押下するような場合で、キーボード操作時
の指の運動のミスによって生じるものである。また、後
者は、例えば、「づ」と「ず」を間違うかな遣いの誤り
や、「宗右衛門町」の読みを、正しくは「そうえもんち
ょう」であるのに、「そえもんちょう」と記憶違いして
いる場合である。キーボード誤りはたまたま入力をミス
した一時的な誤りとみなせるが、認知誤りはくり返して
犯す可能性があるので、誤りを自動的に訂正して変換す
ると、オペレータは誤った綴りを正しい綴りと思い込ん
でしまう可能性がある。In the conventional character string processing method and apparatus, it is convenient because the input error is automatically corrected at the time of Kana-Kanji conversion, as shown in the above-mentioned concrete example. There is a problem that you do not notice that you made a mistake. Some typos include keyboard and cognitive errors. The former is caused, for example, by mistakenly pressing a neighboring key, and is caused by an error in the movement of the finger when operating the keyboard. In the latter case, for example, the mistake of mistaking "zu" and "zu" and the correct reading of "Souemoncho" are "Soemonchu", but "Soemonchu". It is when you have a wrong memory. A keyboard error can be regarded as a temporary error that happens to be a mistake in input, but a recognition error can be repeated, so if the error is automatically corrected and converted, the operator assumes that the spelling is correct. There is a possibility that it will end up.
【0018】また、従来の文字列処理方法およびその装
置においては、多数の文字列を入力した後で文字列の誤
りに気がついた場合には、誤り箇所を編集するためにカ
ーソル移動キーを何度も押下してカーソルを移動させ、
さらに文字列の削除や入力の操作をしなければならず、
操作が煩わしいという問題点があった。Further, in the conventional character string processing method and its apparatus, when an error in the character string is noticed after inputting a large number of character strings, the cursor movement key is repeatedly pressed to edit the error portion. Press also to move the cursor,
In addition, you have to delete the character string and input it,
There was a problem that the operation was troublesome.
【0019】本発明は、従来の文字列処理方法およびそ
の装置が有していた前記の問題点に鑑み、入力文字列の
編集時に誤り箇所を検出する機能を設けて、オペレータ
に誤りがあることを知らせるとともに、誤りの訂正操作
を簡略化できる文字列処理方法およびその装置を提供す
ることを目的とする。In view of the above-mentioned problems of the conventional character string processing method and apparatus, the present invention provides a function for detecting an error portion when editing an input character string so that the operator has an error. It is an object of the present invention to provide a character string processing method and an apparatus thereof that can notify the user of the error and simplify the error correction operation.
【0020】[0020]
【課題を解決するための手段】請求項1の発明に係る文
字列処理装置は、キーボードから文字列を入力する入力
部と、入力文字列中の誤入力箇所を検出する誤り検出部
と、入力文字列中の誤入力箇所の表示を制御する誤り箇
所表示制御部とを備えたことを特徴とする文字列処理装
置を構成する。According to a first aspect of the present invention, there is provided a character string processing device, an input unit for inputting a character string from a keyboard, an error detecting unit for detecting an erroneous input portion in the input character string, and an input unit. A character string processing device comprising: an error portion display control unit for controlling display of an erroneous input portion in a character string.
【0021】請求項2の発明に係る文字列処理装置は、
キーボードから文字列を入力する入力部と、入力文字列
中の誤入力箇所を検出する誤り検出部と、入力文字列中
の誤入力箇所へのカーソルの移動を制御するカーソル制
御部とを備えたことを特徴とする文字列処理装置を構成
する。A character string processing device according to the invention of claim 2 is
An input unit for inputting a character string from the keyboard, an error detection unit for detecting an erroneous input portion in the input character string, and a cursor control unit for controlling the movement of the cursor to the erroneous input portion in the input character string are provided. A character string processing device characterized by the above.
【0022】請求項3の発明に係る文字列処理装置は、
キーボードから文字列を入力する入力部と、入力文字列
中の誤入力箇所を検出する誤り検出部と、入力編集モー
ドを一時記憶する編集モードレジスタと、前記誤り検出
部が検出した誤入力のパターンに基づいて編集モードレ
ジスタに一時記憶された編集モードを変更する編集モー
ド変更部とを備えたことを特徴とする文字列処理装置を
構成する。A character string processing device according to the invention of claim 3 is
An input unit for inputting a character string from a keyboard, an error detection unit for detecting an erroneous input portion in the input character string, an edit mode register for temporarily storing an input edit mode, and an erroneous input pattern detected by the error detection unit. And an edit mode changing unit for changing the edit mode temporarily stored in the edit mode register based on the above.
【0023】請求項4の発明に係る文字列処理装置は、
キーボードから文字列を入力する入力部と、入力文字列
中の誤入力箇所を検出する誤り検出部と、入力文字列の
誤入力箇所に対する正しい文字または文字列の表示を制
御する正解文字列表示制御部とを備えたことを特徴とす
る文字列処理装置を構成する。A character string processing device according to the invention of claim 4 is
Input section that inputs a character string from the keyboard, error detection section that detects erroneous input points in the input character string, and correct character string display control that controls the display of correct characters or character strings at the incorrect input points of the input character string And a character string processing device.
【0024】請求項5の発明に係る文字列処理装置は、
キーボードから文字列を入力する入力部と、入力文字列
を一時記憶する入力文字列一時記憶部と、入力文字列中
の誤入力箇所を検出する誤り検出部と、前記入力文字列
一時記憶部に一時記憶された入力文字列中の誤入力箇所
を正しい文字列で置き換える入力文字列更新部とを備え
たことを特徴とする文字列処理装置を構成する。A character string processing device according to the invention of claim 5 is
An input unit for inputting a character string from a keyboard, an input character string temporary storage unit for temporarily storing the input character string, an error detection unit for detecting an erroneous input portion in the input character string, and the input character string temporary storage unit. A character string processing device, comprising: an input character string updating unit that replaces an erroneous input portion in a temporarily stored input character string with a correct character string.
【0025】請求項6の発明に係る文字列処理装置は、
キーボードから文字列を入力する入力部と、誤り検出の
実行を指示する誤り検出指示手段と、前記誤り検出指示
手段の誤り検出指示に応動して入力文字列中の誤入力箇
所を検出する誤り検出部とを備えたことを特徴とする文
字列処理装置を構成する。A character string processing device according to the invention of claim 6 is
An input unit for inputting a character string from a keyboard, an error detection instructing means for instructing execution of error detection, and an error detection for detecting an erroneous input portion in an input character string in response to an error detection instruction of the error detection instructing means. And a character string processing device.
【0026】請求項7の発明に係る文字列処理装置は、
キーボードから文字列を入力する入力部と、かな漢字変
換の実行を指示する変換指示手段と、前記かな漢字変換
指示手段に応動して入力文字列中の誤入力箇所を検出す
る誤り検出部と、前記誤り検出部が誤入力を検出した場
合に入力文字列中の誤入力箇所の表示を制御する誤り箇
所表示制御部と、前記誤り検出部が誤入力を検出しない
場合にかな漢字変換結果を表示する変換結果表示制御部
とを備えたことを特徴とする文字列処理装置を構成す
る。A character string processing device according to the invention of claim 7 is
An input unit for inputting a character string from a keyboard, a conversion instructing unit for instructing execution of Kana-Kanji conversion, an error detection unit for detecting an erroneous input portion in an input character string in response to the Kana-Kanji conversion instructing unit, and the error An error location display control unit that controls the display of an incorrect input location in the input character string when the detection unit detects an incorrect input, and a conversion result that displays the Kana-Kanji conversion result when the error detection unit does not detect an incorrect input. A character string processing device comprising a display control unit.
【0027】[0027]
【作用】請求項1の文字列処理装置では、入力部がキー
ボードから文字列を入力し、誤り検出部が入力文字列中
の誤入力箇所を検出し、誤り箇所表示制御部が入力文字
列中の誤入力箇所の表示を制御して、入力文字列中の誤
入力箇所の表示を可能とするものである。In the character string processing device according to claim 1, the input unit inputs the character string from the keyboard, the error detection unit detects an erroneous input position in the input character string, and the error position display control unit detects the input character string. It is possible to display the erroneous input portion in the input character string by controlling the display of the erroneous input portion.
【0028】請求項2の文字列処理装置では、入力部が
キーボードから文字列を入力し、誤り検出部が入力文字
列中の誤入力箇所を検出し、カーソル制御部が入力文字
列中の誤入力箇所へのカーソルの移動を制御して、入力
文字列中の誤入力箇所へカーソルを移動させること可能
とするものである。According to another aspect of the character string processing device of the present invention, the input unit inputs the character string from the keyboard, the error detection unit detects an erroneous input portion in the input character string, and the cursor control unit detects an erroneous input character string. It is possible to control the movement of the cursor to the input position and move the cursor to the erroneous input position in the input character string.
【0029】請求項3の文字列処理装置では、入力部が
キーボードから文字列を入力し、誤り検出部が入力文字
列中の誤入力箇所を検出し、編集モード変更部が誤入力
のパターンに基づいて編集モードレジスタの編集モード
を変更することを可能とするものである。According to another aspect of the character string processing device of the present invention, the input unit inputs the character string from the keyboard, the error detecting unit detects an erroneous input portion in the input character string, and the edit mode changing unit forms an erroneous input pattern. Based on this, it is possible to change the edit mode of the edit mode register.
【0030】請求項4の文字列処理装置では、入力部が
キーボードから文字列を入力し、誤り検出部が入力文字
列中の誤入力箇所を検出し、正解文字列表示制御部が入
力文字列の誤入力箇所に対する正しい文字または文字列
の表示を制御して、入力文字列中の誤入力に対応する正
解文字列を表示することを可能とするものである。According to another aspect of the character string processing device of the present invention, the input unit inputs the character string from the keyboard, the error detection unit detects an erroneous input portion in the input character string, and the correct answer character string display control unit inputs the input character string. It is possible to display the correct character string corresponding to the erroneous input in the input character string by controlling the display of the correct character or the character string in the erroneous input part.
【0031】請求項5の文字列処理装置では、入力部が
キーボードから文字列を入力し、入力文字列一時記憶部
が入力文字列を一時記憶し、誤り検出部が入力文字列中
の誤入力箇所を検出し、入力文字列更新部が前記入力文
字列一時記憶部に一時記憶された入力文字列中の誤入力
箇所を正しい文字列で置き換えて、入力文字列中の誤り
箇所を訂正することを可能とするものである。According to another aspect of the character string processing device of the present invention, the input unit inputs the character string from the keyboard, the input character string temporary storage unit temporarily stores the input character string, and the error detection unit makes an erroneous input in the input character string. The input character string updating unit replaces an erroneous input position in the input character string temporarily stored in the input character string temporary storage unit with a correct character string, and corrects an error position in the input character string. Is possible.
【0032】請求項6の文字列処理装置では、入力部が
キーボードから文字列を入力し、オペレータが誤り検出
指示手段で誤り検出の実行を指示すると、誤り検出部が
入力文字列中の誤入力箇所を検出するものである。According to another aspect of the character string processing apparatus of the present invention, when the input unit inputs a character string from the keyboard and the operator instructs the error detection instructing means to execute error detection, the error detecting unit makes an erroneous input in the input character string. It is to detect the location.
【0033】請求項7の文字列処理装置では、入力部が
キーボードから文字列を入力し、オペレータが変換指示
手段でかな漢字変換の実行を指示すると、誤り検出部が
入力文字列中の誤入力箇所を検出し、入力文字列中に誤
入力があった場合には誤り箇所表示制御部が入力文字列
中の誤入力箇所の表示を制御し、誤入力がなかった場合
には変換結果表示制御部がかな漢字変換結果を表示する
ものである。According to another aspect of the character string processing apparatus of the present invention, when the input unit inputs a character string from the keyboard and the operator instructs the conversion instruction means to execute kana-kanji conversion, the error detection unit causes an erroneous input location in the input character string. If there is an erroneous input in the input character string, the error location display control unit controls the display of the erroneous input location in the input character string, and if there is no erroneous input, the conversion result display control unit It displays the Kana-Kana conversion result.
【0034】[0034]
【実施例】以下、本発明の第一の実施例を図面を用いて
説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention will be described below with reference to the drawings.
【0035】図1は本発明の第一の実施例における文字
列処理装置の構成図である。図1において、101は、
例えばキーボード装置から構成される入力部であり、文
字列を入力する。FIG. 1 is a block diagram of a character string processing device in a first embodiment of the present invention. In FIG. 1, 101 is
For example, it is an input unit composed of a keyboard device and inputs a character string.
【0036】102は入力文字列一時記憶部であり、入
力された文字列を一時記憶する。103は変換指示手段
であり、かな漢字変換を指示する。An input character string temporary storage unit 102 temporarily stores the input character string. Reference numeral 103 is a conversion instructing means for instructing kana-kanji conversion.
【0037】104は辞書であり、文法情報等の形態素
の情報を入力文字列と対応付づけて格納している。A dictionary 104 stores morpheme information such as grammatical information in association with an input character string.
【0038】105は拡張辞書検索部であり、入力文字
列に従って、あるいは適宜入力文字列を書き換えながら
辞書104を検索して入力文字列中の形態素の情報を抽
出する。Reference numeral 105 denotes an extended dictionary search unit which searches the dictionary 104 according to the input character string or while appropriately rewriting the input character string to extract morpheme information in the input character string.
【0039】106は形態素解析部であり、拡張辞書検
索部105が検索した形態素を参照して形態素解析す
る。Reference numeral 106 denotes a morpheme analysis unit, which performs morpheme analysis with reference to the morphemes searched by the extended dictionary search unit 105.
【0040】107は形態素列一時記憶部であり、形態
素解析部106で分割された形態素を一時記憶する。A morpheme string temporary storage unit 107 temporarily stores the morphemes divided by the morpheme analysis unit 106.
【0041】108は誤り検出部であり、辞書104、
拡張辞書検索部105、形態素解析部106、形態素列
一時記憶部107より構成され、形態素列一時記憶部1
07に一時記憶された形態素の中で補正された形態素が
あれば、その形態素中の誤り位置を誤入力箇所とみな
す。Reference numeral 108 denotes an error detector, which is a dictionary 104,
The extended dictionary search unit 105, the morpheme analysis unit 106, and the morpheme string temporary storage unit 107 are provided.
If there is a corrected morpheme among the morphemes temporarily stored in 07, the error position in the morpheme is regarded as an erroneous input location.
【0042】109は変換結果表示制御部であり、かな
漢字変換結果の表示を制御する。110はディスプレイ
装置等から構成される出力部であり、文字列を表示す
る。A conversion result display control unit 109 controls the display of kana-kanji conversion results. Reference numeral 110 denotes an output unit including a display device or the like, which displays a character string.
【0043】111は誤り箇所表示制御部であり、誤り
検出部108が検出した誤り箇所の表示を制御する。An error portion display control unit 111 controls the display of the error portion detected by the error detection unit 108.
【0044】前述のように構成された本実施例の第一の
実施例における文字列処理装置の動作を図2に示すフロ
ーチャートにしたがって説明する。 (1000)オペレータが文字列編集操作を指示したな
ら(1001)に進む。そうでないなら(1002)に
進む。 (1001)入力部101は文字列を編集しながら入力
文字列一時記憶部102に一時記憶するとともに、出力
部210に入力文字列を出力し、(1000)に戻る。 (1002)オペレータが変換指示手段103を通じて
変換を指示したなら(1003)に進む。そうでないな
ら(1000)に戻る。 (1003)拡張辞書検索部105は、入力文字列の中
に誤りがあることを想定し、一定の規則に基づいて入力
文字列の一部を書き換えながら辞書104を検索する。 (1004)形態素解析部106は、形態素間の接続関
係を調べて文法的に接続可能な形態素列を求める。 (1005)形態素解析部106は、選択された形態素
列の誤り位置、補正の種類、文法情報、漢字表記等とと
もに形態素列一時記憶部107に一時記憶する。 (1006)形態素列一時記憶部107に一時記憶され
た形態素の誤り位置を調べることにより、補正された形
態素があるかどうかを調べる。誤り位置の値が0以上の
形態素があるなら形態素が補正されているので(100
7)に進む。また、誤り位置の値が全て負値であるなら
形態素は補正されていないので(1008)に進む。 (1007)誤り箇所表示制御部111は、補正された
形態素の誤り位置を誤入力箇所とみなし出力部110に
表示して、(1000)に戻る。 (1008)変換結果表示制御部109は、形態素列一
時記憶部107に一時記憶された形態素の表記を出力部
110にを出力して、(1000)に戻る。 (おわり)以上のように動作する本発明の第一の実施例
における文字列処理装置の具体的な動作を次に説明す
る。ここで、変換指示手段103は、実際にはキーボー
ドであり、変換キーを押下することでかな漢字変換の実
行を指示するものとする。The operation of the character string processing apparatus in the first embodiment of the present invention configured as described above will be described with reference to the flow chart shown in FIG. (1000) If the operator gives an instruction for a character string editing operation, the process proceeds to (1001). If not, proceed to (1002). (1001) The input unit 101 edits the character string, temporarily stores it in the input character string temporary storage unit 102, outputs the input character string to the output unit 210, and returns to (1000). (1002) If the operator instructs conversion through the conversion instructing means 103, the process proceeds to (1003). If not, return to (1000). (1003) The extended dictionary search unit 105 assumes that there is an error in the input character string and searches the dictionary 104 while rewriting a part of the input character string based on a certain rule. (1004) The morpheme analysis unit 106 checks the connection relationship between morphemes to obtain a morphologically connectable morpheme string. (1005) The morpheme analysis unit 106 temporarily stores in the morpheme string temporary storage unit 107 together with the error position of the selected morpheme string, the type of correction, the grammatical information, the kanji notation, and the like. (1006) It is checked whether or not there is a corrected morpheme by checking the error position of the morpheme temporarily stored in the morpheme string temporary storage unit 107. If there is a morpheme whose error position value is 0 or more, the morpheme has been corrected (100
Proceed to 7). If all the error position values are negative values, the morpheme has not been corrected, and the process proceeds to (1008). (1007) The error point display control unit 111 regards the error position of the corrected morpheme as an erroneous input position, displays it on the output unit 110, and returns to (1000). (1008) The conversion result display control unit 109 outputs the notation of the morpheme temporarily stored in the morpheme string temporary storage unit 107 to the output unit 110, and returns to (1000). (End) A specific operation of the character string processing device according to the first embodiment of the present invention which operates as described above will be described below. Here, the conversion instruction means 103 is actually a keyboard, and it is assumed that the conversion key is pressed to instruct execution of kana-kanji conversion.
【0045】いま、ユーザが「入力を」という文を作成
する場合に、キーボード等の入力部101より、誤って
「にゅーりょくを」を入力したとすると、「にゅーりょ
くを」を入力文字列一時記憶部102に一時記憶する。If the user creates a sentence "input" by mistake and inputs "new input" from the input unit 101 such as a keyboard, "new input" is input. It is temporarily stored in the input character string temporary storage unit 102.
【0046】オペレータが変換キーを押下すると、拡張
辞書検索部105は、入力文字列の中に誤りがあること
を想定し、入力文字列の一部を書き換えながら辞書10
4を検索する。誤りパターンは種々のものが考えられる
が、ここでは以下の4つのパターンを想定する。 (a)置換 誤ったキーを押下した場合に発生するもので、例えば
「う」と入力すべきところを、キーボード上でその隣に
ある「え」を入力した場合である。 (b)脱落 キー入力が欠落するもので、例えば「にゅうりょく」と
入力すべきところを「う」が欠落して「にゅりょく」と
入力してしまった場合である。 (c)挿入 余分なキーを押下した場合に発生するもので、例えば
「にゅうりょく」と入力すべきところを「う」を余分に
押下して「にゅううりょく」と入力してしまった場合で
ある。 (d)交換 キー入力の順序が逆転した場合に発生するもので、例え
ば「そうち」と入力すべきところを「そ」と「う」を逆
に入力して「うそち」と入力してしまった場合である。When the operator presses the conversion key, the extended dictionary search unit 105 assumes that there is an error in the input character string, and rewrites a part of the input character string to update the dictionary 10
Search for 4. Although various error patterns can be considered, the following four patterns are assumed here. (A) Substitution This occurs when an incorrect key is pressed, for example, when "u" is to be input and "e" next to it is input on the keyboard. (B) Missing Key input is missing, for example, when “U” is missing and “Nyuryoku” is entered where “Nyuryoku” should be entered. (C) Insert This occurs when you press an extra key. For example, when you want to enter "Nyuryoku", press "U" extra and enter "Nyuryoku". This is the case. (D) Exchange This occurs when the order of key input is reversed. For example, when you want to enter "Sochi", enter "So" and "U" in reverse and enter "Usochi". This is the case.
【0047】拡張辞書検索部105は、上記4つの誤り
があることを想定し、入力文字列の一部を書き換えなが
ら辞書104を検索する。こうして検索できた形態素を
取り出し、例えば、図3の結果を得る。誤りを想定した
辞書の検索については、例えば特願平5―167989
に詳細に記されており、本発明の主眼ではないので説明
を省略する。The extended dictionary search unit 105 searches the dictionary 104 while rewriting a part of the input character string on the assumption that there are the above four errors. The morphemes that can be searched in this way are taken out, and for example, the result of FIG. 3 is obtained. For a dictionary search assuming an error, see, for example, Japanese Patent Application No. 5-167989.
Are described in detail and are not the main object of the present invention, and thus the description thereof will be omitted.
【0048】次に、形態素解析部106は、入力文字列
を形態素解析して、入力文字列の先頭から最後までを構
成する形態素列の中で文法的に矛盾のない形態素列を求
めて、図4に示す形態素列を得る。文法規則と形態素解
析については、例えば「情報処理Vol.34,No.10,pp1242-
1244」に解説されており、さらに誤りを許容した形態素
解析については特願平5―261208に記されてお
り、本発明の主眼ではないので説明を省略する。Next, the morpheme analysis unit 106 performs morpheme analysis on the input character string to obtain a morpheme string that is grammatically consistent among the morpheme strings forming the input character string from the beginning to the end, and The morpheme sequence shown in FIG. For grammatical rules and morphological analysis, see "Information Processing Vol.34, No.10, pp1242-
1244 ”, and the morphological analysis that allows an error is described in Japanese Patent Application No. Hei 5-261208, which is not the main subject of the present invention, and therefore its explanation is omitted.
【0049】形態素解析部106は、図4に示す形態素
列を形態素列一時記憶部107に一時記憶する。The morpheme analysis unit 106 temporarily stores the morpheme sequence shown in FIG. 4 in the morpheme sequence temporary storage unit 107.
【0050】形態素列一時記憶部107に一時記憶され
た形態素の誤り位置の値を調べると、先頭の形態素「入
力」の誤り位置の値が3であり、0以上であるので補正
されていることがわかる。そこで誤り箇所表示制御部1
11は、入力文字列上の3の位置を他の文字と区別して
出力部110に表示する。例えば、図5(a)のよう
に、誤り位置の値が3の位置にある文字「ー」を点滅し
て表示する。なお、図5では都合上、点滅のかわりにあ
みかけ表示をしている。When the value of the error position of the morpheme temporarily stored in the morpheme string temporary storage unit 107 is examined, the value of the error position of the leading morpheme “input” is 3 and is 0 or more, so it has been corrected. I understand. Therefore, the error point display control unit 1
11 distinguishes the position 3 on the input character string from other characters and displays it on the output unit 110. For example, as shown in FIG. 5A, the character "-" at the position where the error position value is 3 is displayed by blinking. Note that, in FIG. 5, for the sake of convenience, an apparent display is displayed instead of blinking.
【0051】上述のように本発明の第一の実施例におけ
る文字列処理装置においては、誤って「にゅーりょく」
と入力したまま仮名漢字変換を指示した場合に、自動的
に誤りを訂正して「入力を」と表示するかわりに誤り位
置の「ー」の部分の表示属性を変えて表示するので、オ
ペレータが入力を誤ったことを認識することができる。As described above, in the character string processing device according to the first embodiment of the present invention, the "new call" is mistakenly made.
When Kana-Kanji conversion is instructed while inputting, instead of automatically correcting the error and displaying "Input", the display attribute of the part "-" at the error position is changed and displayed. You can recognize that you made a mistake.
【0052】次に、本発明の第二の実施例を説明する。
図6は本発明の第二の実施例における文字列処理装置の
構成図である。Next, a second embodiment of the present invention will be described.
FIG. 6 is a block diagram of the character string processing device in the second embodiment of the present invention.
【0053】図6において、101は、例えばキーボー
ド装置から構成される入力部であり、文字列を入力す
る。In FIG. 6, reference numeral 101 denotes an input unit composed of, for example, a keyboard device for inputting a character string.
【0054】102は入力文字列一時記憶部であり、入
力された文字列を一時記憶する。103は変換指示手段
であり、かな漢字変換を指示する。An input character string temporary storage unit 102 temporarily stores the input character string. Reference numeral 103 is a conversion instructing means for instructing kana-kanji conversion.
【0055】104は辞書であり、文法情報等の形態素
の情報を入力文字列と対応付づけて格納している。A dictionary 104 stores morpheme information such as grammatical information in association with an input character string.
【0056】105は拡張辞書検索部であり、入力文字
列に従って、あるいは適宜入力文字列を書き換えながら
辞書104を検索して入力文字列中の形態素の情報を抽
出する。Reference numeral 105 denotes an extended dictionary search unit which searches the dictionary 104 according to the input character string or while appropriately rewriting the input character string to extract morpheme information in the input character string.
【0057】106は形態素解析部であり、拡張辞書検
索部105が検索した形態素を参照して形態素解析す
る。A morpheme analysis unit 106 refers to the morpheme searched by the extended dictionary search unit 105 to perform morpheme analysis.
【0058】107は形態素列一時記憶部であり、形態
素解析部106で分割された形態素を一時記憶する。A morpheme string temporary storage unit 107 temporarily stores the morphemes divided by the morpheme analysis unit 106.
【0059】108は誤り検出部であり、辞書104、
拡張辞書検索部105、形態素解析部106、形態素列
一時記憶部107より構成され、形態素列一時記憶部1
07に一時記憶された形態素の中で補正された形態素が
あれば、その形態素中の誤り位置を誤入力箇所とみな
す。Reference numeral 108 denotes an error detection unit, which is a dictionary 104,
The extended dictionary search unit 105, the morpheme analysis unit 106, and the morpheme string temporary storage unit 107 are provided.
If there is a corrected morpheme among the morphemes temporarily stored in 07, the error position in the morpheme is regarded as an erroneous input location.
【0060】109は変換結果表示制御部であり、かな
漢字変換結果の表示を制御する。110はディスプレイ
装置等から構成される出力部であり、文字列を表示す
る。A conversion result display control unit 109 controls the display of the kana-kanji conversion result. Reference numeral 110 denotes an output unit including a display device or the like, which displays a character string.
【0061】112はカーソル制御部であり、誤り箇所
へのカーソルの移動を制御する。113は編集モードレ
ジスタであり、入力文字列中に文字列をを挿入するか、
または上書きするかを示す編集モードを一時記憶する。Reference numeral 112 denotes a cursor control unit, which controls the movement of the cursor to the error location. Reference numeral 113 denotes an edit mode register, which inserts a character string into the input character string or
Alternatively, the edit mode indicating whether to overwrite is temporarily stored.
【0062】114は編集モード設定部であり、形態素
列一時記憶部107中の形態素の補正の種類に基づいて
編集モードレジスタ113を書きかえる。An edit mode setting unit 114 rewrites the edit mode register 113 based on the type of morpheme correction in the morpheme string temporary storage unit 107.
【0063】前述のように構成された本実施例の第二の
実施例における文字列処理装置の動作を図7に示すフロ
ーチャートにしたがって説明する。 (1100)オペレータが文字列編集操作を指示したな
ら(1101)に進む。そうでないなら(1102)に
進む。 (1101)入力部201は文字列を編集しながら入力
文字列一時記憶部202に一時記憶するとともに、出力
部210に入力文字列を出力し、(1100)に戻る。 (1102)オペレータが変換指示手段103を通じて
変換を指示したなら(1103)に進む。そうでないな
ら(1100)に戻る。 (1103)拡張辞書検索部105は、入力文字列の中
に誤りがあることを想定し、一定の規則に基づいて入力
文字列の一部を書き換えるながら辞書104を検索す
る。 (1104)形態素解析部106は、形態素間の接続関
係を調べて文法的に接続可能な形態素列を求める。 (1105)形態素解析部106は、選択された形態素
列を形態素列一時記憶部107に一時記憶する。 (1106)形態素列一時記憶部107に一時記憶され
た形態素の誤りの種類を調べることにより、補正された
形態素があるかどうかを調べる。誤りの種類が空白でな
い形態素があるなら形態素が補正されているので(11
07)に進む。また、誤りの種類が全て空白なら形態素
は補正されていないので(1112)に進む。 (1107)カーソル制御部112は、補正された形態
素の誤り位置にカーソルを移動させ出力部110に表示
する。 (1108)編集モード設定部114は、補正された形
態素の補正の種類を調べる。補正の種類が置換または交
換ならば(1110)に進む。また、補正の種類が置換
でも交換でもないなら(1109)に進む。 (1109)編集モード設定部114は、補正された形
態素の補正の種類を調べる。補正の種類が脱落ならば
(1111)に進む。また、補正の種類が脱落でないな
ら、(1100)に戻る。 (1110)編集モード設定部114は、編集モードレ
ジスタを上書きモードに書き換え、(1100)に戻
る。 (1111)編集モード設定部114は、編集モードレ
ジスタを挿入モードに書き換え、(1100)に戻る。 (1112)変換結果表示制御部109は、形態素列一
時記憶部107に一時記憶された形態素の表記を出力部
110にを出力し、(1100)に戻る。 (おわり)以上のように動作する本発明の第二の実施例
における文字列処理装置の具体的な動作を次に説明す
る。ここで、変換指示手段103は、実際にはキーボー
ドであり、変換キーを押下することでかな漢字変換の実
行を指示するものとする。また、編集モードが挿入モー
ドの場合には0が編集モードレジスタ113に一時記憶
され、上書きモードの場合には1が一時記憶されるもの
とする。The operation of the character string processing apparatus according to the second embodiment of the present embodiment configured as described above will be described with reference to the flowchart shown in FIG. (1100) If the operator instructs the character string editing operation, the process proceeds to (1101). If not, proceed to (1102). (1101) The input unit 201 temporarily stores the input character string in the input character string temporary storage unit 202 while editing the character string, outputs the input character string to the output unit 210, and returns to (1100). (1102) If the operator instructs conversion through the conversion instructing means 103, the process proceeds to (1103). If not, return to (1100). (1103) The extended dictionary search unit 105 assumes that there is an error in the input character string and searches the dictionary 104 while rewriting a part of the input character string based on a certain rule. (1104) The morpheme analysis unit 106 checks the connection relationship between morphemes to obtain a morphologically connectable morpheme string. (1105) The morpheme analysis unit 106 temporarily stores the selected morpheme sequence in the morpheme sequence temporary storage unit 107. (1106) It is checked whether or not there is a corrected morpheme by checking the type of error of the morpheme temporarily stored in the morpheme string temporary storage unit 107. If there is a morpheme whose error type is not blank, the morpheme has been corrected (11
Proceed to 07). If all the error types are blank, the morpheme has not been corrected, so the process proceeds to (1112). (1107) The cursor control unit 112 moves the cursor to the error position of the corrected morpheme and displays it on the output unit 110. (1108) The edit mode setting unit 114 checks the type of correction of the corrected morpheme. If the type of correction is replacement or exchange, proceed to (1110). If the type of correction is neither replacement nor exchange, the process proceeds to (1109). (1109) The edit mode setting unit 114 checks the type of correction of the corrected morpheme. If the type of correction is omission, proceed to (1111). If the correction type is not missing, the process returns to (1100). (1110) The edit mode setting unit 114 rewrites the edit mode register to the overwrite mode, and returns to (1100). (1111) The edit mode setting unit 114 rewrites the edit mode register to the insert mode, and returns to (1100). (1112) The conversion result display control unit 109 outputs the notation of the morpheme temporarily stored in the morpheme string temporary storage unit 107 to the output unit 110, and returns to (1100). (End) A specific operation of the character string processing device according to the second embodiment of the present invention which operates as described above will be described below. Here, the conversion instruction means 103 is actually a keyboard, and it is assumed that the conversion key is pressed to instruct execution of kana-kanji conversion. Further, when the edit mode is the insert mode, 0 is temporarily stored in the edit mode register 113, and when the edit mode is the overwrite mode, 1 is temporarily stored.
【0064】いま、ユーザが「入力を」という文を作成
する場合に、キーボード等の入力部101より、誤って
文字列「にゅーりょくを」を入力したとすると、「にゅ
ーりょくを」を入力文字列一時記憶部102に一時記憶
する。Now, when the user composes the sentence "input", if the user mistakenly inputs the character string "new record" from the input unit 101 such as a keyboard, "new record Is temporarily stored in the input character string temporary storage unit 102.
【0065】オペレータが変換キーを押下すると、拡張
辞書検索部105は、入力文字列の中に誤りがあること
を想定し、入力文字列の一部を書き換えながら辞書10
4を検索する。こうして検索できた形態素を取り出し、
例えば、図3の結果を得る。When the operator presses the conversion key, the extended dictionary search unit 105 assumes that there is an error in the input character string and, while rewriting a part of the input character string, the dictionary 10
Search for 4. Extract the morphemes that can be searched in this way,
For example, the result of FIG. 3 is obtained.
【0066】次に、形態素解析部106は、入力文字列
を形態素解析して、入力文字列の先頭から最後までを構
成する形態素列の中で文法的に矛盾のない形態素列を求
めて、図4に示す形態素列を得て、得られた形態素列を
形態素列一時記憶部107に一時記憶する。Next, the morpheme analysis unit 106 morphologically analyzes the input character string to obtain a morpheme string which is grammatically consistent among the morpheme strings constituting the input character string from the beginning to the end, and 4 is obtained, and the obtained morpheme sequence is temporarily stored in the morpheme sequence temporary storage unit 107.
【0067】形態素列一時記憶部107に一時記憶され
た形態素の誤りの種類のフィールドを調べると、先頭の
形態素「入力」の誤りの種類が置換であるので補正され
ていることがわかる。そこでカーソル制御部112は、
補正された形態素の誤り位置のフィールドを参照して誤
り位置の値の3を得て、3の位置にカーソルを移動させ
て出力部110に表示する。When the field of the morpheme error type temporarily stored in the morpheme string temporary storage unit 107 is examined, it is found that the error type of the leading morpheme “input” is a replacement and is thus corrected. Therefore, the cursor control unit 112
The error position value of 3 is obtained by referring to the corrected morpheme error position field, and the cursor is moved to the position of 3 and displayed on the output unit 110.
【0068】図4に示すように、補正された形態素「入
力」の誤りの種類が置換であるので、編集モード設定部
114は、上書きモードを示す1を編集モードレジスタ
113に一時記憶する。As shown in FIG. 4, since the error type of the corrected morpheme "input" is substitution, the edit mode setting unit 114 temporarily stores 1 indicating the overwrite mode in the edit mode register 113.
【0069】一般に、誤りの種類が置換または交換の場
合には、オペレータは文字または文字列を削除し、さら
に新たな文字を入力する必要となるが、編集モードを自
動的に上書きモードとすることで文字または文字列削除
の操作が不要となり、キー操作が簡略化される。また、
誤りの種類が脱落の場合には、オペレータは文字または
文字列を入力文字列中に挿入する必要があるので、編集
モードを挿入モードに変更する必要があるが、編集モー
ドを自動的に挿入モードに設定するのでキー操作が簡略
化される。Generally, when the type of error is substitution or exchange, the operator must delete the character or character string and input a new character, but the edit mode should be automatically set to the overwrite mode. The operation of deleting characters or character strings is not required and the key operation is simplified. Also,
If the type of error is missing, the operator needs to insert a character or string into the input string, so the edit mode must be changed to insert mode, but the edit mode is automatically changed to insert mode. Since it is set to, the key operation is simplified.
【0070】上述のように本発明の第二の実施例におけ
る文字列処理装置においては、誤って「にゅーりょく
を」と入力したとき、誤入力箇所の「ー」の位置に自動
的にカーソルを移動させるので、誤った箇所にカーソル
を移動させるためにカーソルキーを何度も押下する必要
がない。さらに、編集モードを自動的に上書きモードに
変更するため、文字列削除の操作が不要となり、即座に
文字の「う」を入力するだけで誤りを編集することがで
きる。As described above, in the character string processing device according to the second embodiment of the present invention, when the user accidentally inputs "new ryoku", it is automatically placed at the "-" position of the erroneous input position. Since the cursor is moved, it is not necessary to repeatedly press the cursor key to move the cursor to the wrong place. Furthermore, since the edit mode is automatically changed to the overwrite mode, the operation of deleting the character string is not necessary, and the error can be edited by immediately inputting the letter "U".
【0071】次に、本発明の第三の実施例を説明する。
図8は本発明の第三の実施例における文字列処理装置の
構成図である。Next, a third embodiment of the present invention will be described.
FIG. 8 is a block diagram of the character string processing device in the third embodiment of the present invention.
【0072】図8において、101は、例えばキーボー
ド装置から構成される入力部であり、文字列を入力す
る。In FIG. 8, reference numeral 101 denotes an input unit composed of, for example, a keyboard device for inputting a character string.
【0073】102は入力文字列一時記憶部であり、入
力された文字列を一時記憶する。103は変換指示手段
であり、かな漢字変換を指示する。An input character string temporary storage unit 102 temporarily stores the input character string. Reference numeral 103 is a conversion instructing means for instructing kana-kanji conversion.
【0074】104は辞書であり、文法情報等の形態素
の情報を入力文字列と対応付づけて格納している。A dictionary 104 stores morpheme information such as grammatical information in association with an input character string.
【0075】105は拡張辞書検索部であり、入力文字
列に従って、あるいは適宜入力文字列を書き換えながら
辞書104を検索して入力文字列中の形態素の情報を抽
出する。Reference numeral 105 denotes an extended dictionary search unit which searches the dictionary 104 according to the input character string or while appropriately rewriting the input character string to extract information on morphemes in the input character string.
【0076】106は形態素解析部であり、拡張辞書検
索部105が検索した形態素を参照して形態素解析す
る。Reference numeral 106 denotes a morpheme analysis unit, which performs morpheme analysis with reference to the morphemes searched by the extended dictionary search unit 105.
【0077】107は形態素列一時記憶部であり、形態
素解析部106で分割された形態素を一時記憶する。A morpheme string temporary storage unit 107 temporarily stores the morphemes divided by the morpheme analysis unit 106.
【0078】108は誤り検出部であり、辞書104、
拡張辞書検索部105、形態素解析部106、形態素列
一時記憶部107より構成され、形態素列一時記憶部1
07に一時記憶された形態素の中で補正された形態素が
あれば、その形態素中の誤り位置を誤入力箇所とみな
す。Reference numeral 108 denotes an error detector, which is a dictionary 104,
The extended dictionary search unit 105, the morpheme analysis unit 106, and the morpheme string temporary storage unit 107 are provided.
If there is a corrected morpheme among the morphemes temporarily stored in 07, the error position in the morpheme is regarded as an erroneous input location.
【0079】109は変換結果表示制御部であり、かな
漢字変換結果の表示を制御する。110はディスプレイ
装置等から構成される出力部であり、文字列を表示す
る。A conversion result display control unit 109 controls the display of kana-kanji conversion results. Reference numeral 110 denotes an output unit including a display device or the like, which displays a character string.
【0080】115は正解文字列表示制御部であり、入
力文字列の誤入力箇所に対する正しい文字または文字列
の候補を出力部110に表示する。Reference numeral 115 is a correct character string display control unit, which displays on the output unit 110 a correct character or character string candidate for an erroneous input portion of the input character string.
【0081】116は入力文字列更新部で、入力文字列
一時記憶部102に一時記憶された入力文字列の誤入力
箇所を正しい文字列で置き換える。An input character string updating unit 116 replaces an erroneous input portion of the input character string temporarily stored in the input character string temporary storage unit 102 with a correct character string.
【0082】前述のように構成された本実施例の第三の
実施例における文字列処理装置の動作を図9に示すフロ
ーチャートにしたがって説明する。 (1200)オペレータが文字列編集操作を指示したな
ら(1201)に進む。そうでないなら(1202)に
進む。 (1201)入力部101は文字列を編集しながら入力
文字列一時記憶部102に一時記憶するとともに、出力
部110に入力文字列を出力し、(1200)に戻る。 (1202)オペレータが変換指示手段103を通じて
変換を指示したなら(1203)に進む。そうでないな
ら(1200)に戻る。 (1203)拡張辞書検索部105は、入力文字列の中
に誤りがあることを想定し、一定の規則に基づいて入力
文字列の一部を書き換えるながら辞書104を検索す
る。 (1204)形態素解析部106は、形態素間の接続関
係を調べて文法的に接続可能な形態素列を求める。 (1205)形態素解析部106は、選択された形態素
列を形態素列一時記憶部107に一時記憶する。 (1206)形態素列一時記憶部107に一時記憶され
た形態素の中に補正された形態素があるかどうかを調べ
る。補正された形態素があるなら(1207)に進む。
また、補正された形態素がないなら(1210)に進
む。 (1207)正解文字列表示制御部115は、入力文字
列の誤入力に対する正しい文字または文字列を出力部1
10に表示する。 (1208)オペレータが正解文字列の確定操作を実行
したなら(1209)に進む。そうでないなら(120
0)に戻る。 (1209)入力文字列更新部116は、入力文字列一
時記憶部102に一時記憶された入力文字列中の誤入力
箇所を、正しい文字または文字列に置き換え、(120
0)に戻る。 (1210)変換結果表示制御部109は、形態素列一
時記憶部107に一時記憶された形態素の表記を出力部
110にを出力し、(1200)に戻る。 (おわり)以上のように動作する本発明の第三の実施例
における文字列処理装置における具体的な動作を次に説
明する。ここで、変換指示手段103は、実際にはキー
ボードであり、変換キーを押下することでかな漢字変換
の実行を指示するものとする。The operation of the character string processing apparatus according to the third embodiment of the present embodiment thus constructed will be described with reference to the flow chart shown in FIG. (1200) If the operator gives an instruction for a character string editing operation, the process proceeds to (1201). If not, proceed to (1202). (1201) The input unit 101 temporarily stores the input character string in the input character string temporary storage unit 102 while editing the character string, outputs the input character string to the output unit 110, and returns to (1200). (1202) If the operator instructs conversion through the conversion instructing means 103, the process proceeds to (1203). If not, return to (1200). (1203) The extended dictionary search unit 105 assumes that there is an error in the input character string and searches the dictionary 104 while rewriting a part of the input character string based on a certain rule. (1204) The morpheme analysis unit 106 examines the connection relationship between morphemes to obtain a morphemeally connectable morpheme string. (1205) The morpheme analysis unit 106 temporarily stores the selected morpheme sequence in the morpheme sequence temporary storage unit 107. (1206) It is checked whether or not there is a corrected morpheme among the morphemes temporarily stored in the morpheme string temporary storage unit 107. If there is a corrected morpheme, proceed to (1207).
If there is no corrected morpheme, the process proceeds to (1210). (1207) The correct answer character string display control unit 115 outputs the correct character or character string for the incorrect input of the input character string to the output unit 1.
Display on 10. (1208) If the operator executes the correct character string confirming operation, the process proceeds to (1209). If not (120
Return to 0). (1209) The input character string updating unit 116 replaces an erroneous input location in the input character string temporarily stored in the input character string temporary storage unit 102 with a correct character or character string, and (120
Return to 0). (1210) The conversion result display control unit 109 outputs the notation of the morpheme temporarily stored in the morpheme string temporary storage unit 107 to the output unit 110, and returns to (1200). (End) A specific operation of the character string processing apparatus according to the third embodiment of the present invention which operates as described above will be described below. Here, the conversion instruction means 103 is actually a keyboard, and it is assumed that the conversion key is pressed to instruct execution of kana-kanji conversion.
【0083】いま、ユーザが「入力を」という文を作成
する場合に、キーボード等の入力部101より、誤って
文字列「にゅーりょくを」を入力したとすると、「にゅ
ーりょくを」を入力文字列一時記憶部102に一時記憶
する。Now, when the user composes the sentence "input", if the user mistakenly inputs the character string "new input" from the input unit 101 such as a keyboard, "new input Is temporarily stored in the input character string temporary storage unit 102.
【0084】オペレータが変換キーを押下すると、拡張
辞書検索部105は、入力文字列の中に誤りがあること
を想定し、入力文字列の一部を書き換えながら辞書10
4を検索する。こうして検索できた形態素を取り出し、
例えば、図3の結果を得る。When the operator presses the conversion key, the extended dictionary search unit 105 assumes that there is an error in the input character string, and rewrites a part of the input character string while the dictionary 10 is being rewritten.
Search for 4. Extract the morphemes that can be searched in this way,
For example, the result of FIG. 3 is obtained.
【0085】次に、形態素解析部106は、入力文字列
を形態素解析して、入力文字列の先頭から最後までを構
成する形態素列の中で文法的に矛盾のない形態素列を求
めて、図4に示す形態素列を得て、得られた形態素列を
形態素列一時記憶部107に一時記憶する。Next, the morpheme analysis unit 106 morphologically analyzes the input character string to obtain a morpheme string which is grammatically consistent among the morpheme strings constituting the input character string from the beginning to the end, and 4 is obtained, and the obtained morpheme sequence is temporarily stored in the morpheme sequence temporary storage unit 107.
【0086】形態素列一時記憶部107に一時記憶され
た形態素の「誤りの種類」のフィールドを調べると、先
頭の形態素「入力」が補正されている。そこで、正解文
字列表示制御部115は、正解文字列を、例えば図10
(a)のように出力部104に表示する。When the field of “error type” of the morpheme temporarily stored in the morpheme string temporary storage unit 107 is examined, the leading morpheme “input” is corrected. Therefore, the correct answer character string display control unit 115 displays the correct answer character string in, for example, FIG.
It is displayed on the output unit 104 as shown in FIG.
【0087】補正内容の確定操作として、例えば、オペ
レータが実行キーを押下すると、入力文字列更新部11
6は入力文字列を更新し、入力文字列一時記憶部102
に「にゅうりょくを」を一時記憶するとともに「にゅう
りょくを」を出力部110に表示する。As an operation for confirming the correction content, for example, when the operator presses the execution key, the input character string updating unit 11
6 updates the input character string, and the input character string temporary storage unit 102
“Nyuryoku” is temporarily stored in the display and “Nyuryoku” is displayed on the output unit 110.
【0088】上述のように本発明の第三の実施例におけ
る文字列処理装置においては、誤って「にゅーりょく
を」と入力した場合に、誤りを自動的に検出するととも
に正しい文字列「にゅうりょくを」を表示することがで
きる。また、オペレータは文字列の訂正のために文字を
削除したり入力したりするかわりに、実行キーを押下す
るだけで、入力文字列を正しい文字列に更新することが
できる。As described above, in the character string processing device according to the third embodiment of the present invention, when the user inputs "nyuryoku" by mistake, the error is automatically detected and the correct character string " Can be displayed. Further, the operator can update the input character string to the correct character string by merely pressing the execution key instead of deleting or inputting the character for correcting the character string.
【0089】次に、本発明の第四の実施例を説明する。
図11は本発明の第四の実施例における文字列処理装置
の構成図である。Next, a fourth embodiment of the present invention will be described.
FIG. 11 is a block diagram of a character string processing device in the fourth embodiment of the present invention.
【0090】図11において、101は、例えばキーボ
ード装置から構成される入力部であり、文字列を入力す
る。In FIG. 11, reference numeral 101 denotes an input unit composed of, for example, a keyboard device for inputting a character string.
【0091】102は入力文字列一時記憶部であり、入
力された文字列を一時記憶する。104は辞書であり、
文法情報等の形態素の情報を入力文字列と対応付づけて
格納している。An input character string temporary storage unit 102 temporarily stores the input character string. 104 is a dictionary,
Morphological information such as grammatical information is stored in association with the input character string.
【0092】105は拡張辞書検索部であり、入力文字
列に従って、あるいは適宜入力文字列を書き換えながら
辞書104を検索して入力文字列中の形態素の情報を抽
出する。Reference numeral 105 denotes an extended dictionary search unit, which searches the dictionary 104 according to the input character string or while appropriately rewriting the input character string to extract morpheme information in the input character string.
【0093】106は形態素解析部であり、拡張辞書検
索部105が検索した形態素を参照して形態素解析す
る。Reference numeral 106 is a morpheme analysis unit, which performs morpheme analysis with reference to the morphemes searched by the extended dictionary search unit 105.
【0094】107は形態素列一時記憶部であり、形態
素解析部106で分割された形態素を一時記憶する。A morpheme string temporary storage unit 107 temporarily stores the morphemes divided by the morpheme analysis unit 106.
【0095】108は誤り検出部であり、辞書104、
拡張辞書検索部105、形態素解析部106、形態素列
一時記憶部107より構成され、形態素列一時記憶部1
07に一時記憶された形態素の中で補正された形態素が
あれば、その形態素中の誤り位置を誤入力箇所とみな
す。Reference numeral 108 denotes an error detection unit, which is a dictionary 104,
The extended dictionary search unit 105, the morpheme analysis unit 106, and the morpheme string temporary storage unit 107 are provided.
If there is a corrected morpheme among the morphemes temporarily stored in 07, the error position in the morpheme is regarded as an erroneous input location.
【0096】110はディスプレイ装置等から構成され
る出力部であり、文字列を表示する。Reference numeral 110 denotes an output unit composed of a display device or the like, which displays a character string.
【0097】115は正解文字列表示制御部であり、入
力文字列の誤入力箇所に対する正しい文字または文字列
の候補を出力部110に表示する。A correct character string display control unit 115 displays on the output unit 110 the correct character or character string candidate for the incorrect input portion of the input character string.
【0098】116は入力文字列更新部で、入力文字列
一時記憶部102に一時記憶された入力文字列の誤入力
箇所を正しい文字列で置き換える。An input character string updating unit 116 replaces an erroneous input portion of the input character string temporarily stored in the input character string temporary storage unit 102 with a correct character string.
【0099】117は誤り検出指示手段であり、誤りの
検出を指示する。前述のように構成された本実施例の第
四の実施例における文字列処理装置の動作を図12に示
すフローチャートにしたがって説明する。 (1300)オペレータが文字列編集操作を指示したな
ら(1301)に進む。そうでないなら(1302)に
進む。 (1301)入力部101は文字列を編集しながら入力
文字列一時記憶部102に一時記憶するとともに、出力
部110に入力文字列を出力し、(1300)に戻る。 (1302)オペレータが誤り検出指示手段117を通
じて変換を指示したなら(1303)に進む。そうでな
いなら(1300)に戻る。 (1303)拡張辞書検索部105は、入力文字列の中
に誤りがあることを想定し、一定の規則に基づいて入力
文字列の一部を書き換えるながら辞書104を検索す
る。 (1304)形態素解析部106は、形態素間の接続関
係を調べて文法的に接続可能な形態素列を求める。 (1305)形態素解析部106は、選択された形態素
列を形態素列一時記憶部107に一時記憶する。 (1306)形態素列一時記憶部107に一時記憶され
た形態素の中に補正された形態素があるかどうかを調べ
る。補正された形態素があるなら(1307)に進む。
また、補正された形態素がないなら(1300)に戻
る。 (1307)正解文字列表示制御部115は、入力文字
列の誤入力に対する正しい文字または文字列を出力部1
10に表示する。 (1308)オペレータが正解文字列の確定操作を実行
したなら(1309)に進む。そうでないなら(130
0)に戻る。 (1309)入力文字列更新部116は、入力文字列一
時記憶部102に一時記憶された入力文字列中の誤入力
箇所を、正しい文字または文字列に置き換え、(130
0)に戻る。 (おわり)以上のように動作する本発明の第四の実施例
における文字列処理装置における具体的な動作を次に説
明する。ここで、誤り検出指示手段117は、実際には
キーボードであり、誤り検出キーを押下することで誤り
検出の実行を指示するものとする。Reference numeral 117 denotes an error detection instructing means, which gives an instruction to detect an error. The operation of the character string processing apparatus according to the fourth embodiment of the present embodiment configured as described above will be described with reference to the flowchart shown in FIG. (1300) If the operator gives an instruction for a character string editing operation, the process proceeds to (1301). Otherwise, proceed to (1302). (1301) The input unit 101 temporarily stores the input character string in the input character string temporary storage unit 102 while editing the character string, outputs the input character string to the output unit 110, and returns to (1300). (1302) If the operator instructs conversion through the error detection instructing means 117, the process proceeds to (1303). If not, return to (1300). (1303) The extended dictionary search unit 105 assumes that there is an error in the input character string, and searches the dictionary 104 while rewriting a part of the input character string based on a certain rule. (1304) The morpheme analysis unit 106 examines the connection relation between morphemes and obtains a morpheme sequence that is grammatically connectable. (1305) The morpheme analysis unit 106 temporarily stores the selected morpheme sequence in the morpheme sequence temporary storage unit 107. (1306) It is checked whether or not there is a corrected morpheme among the morphemes temporarily stored in the morpheme string temporary storage unit 107. If there is a corrected morpheme, proceed to (1307).
If there is no corrected morpheme, the process returns to (1300). (1307) The correct answer character string display control unit 115 outputs the correct character or character string for the incorrect input of the input character string to the output unit 1.
Display on 10. (1308) If the operator executes the correct character string confirming operation, the process proceeds to (1309). If not (130
Return to 0). (1309) The input character string updating unit 116 replaces an erroneous input location in the input character string temporarily stored in the input character string temporary storage unit 102 with a correct character or character string, and (130
Return to 0). (End) A specific operation of the character string processing apparatus according to the fourth embodiment of the present invention which operates as described above will be described below. Here, the error detection instruction means 117 is actually a keyboard, and it is assumed that the error detection key is pressed to instruct execution of error detection.
【0100】いま、ユーザが「入力を」という文を作成
する場合に、キーボード等の入力部101より、誤って
文字列「にゅーりょくを」を入力したとすると、「にゅ
ーりょくを」を入力文字列一時記憶部102に一時記憶
する。Now, when the user composes the sentence "input", if the user mistakenly inputs the character string "new input" from the input unit 101 such as the keyboard, "new input Is temporarily stored in the input character string temporary storage unit 102.
【0101】オペレータが誤り検出キーを押下すると、
拡張辞書検索部105は、入力文字列の中に誤りがある
ことを想定し、入力文字列の一部を書き換えながら辞書
104を検索する。こうして検索できた形態素を取り出
し、例えば、図3の結果を得る。When the operator presses the error detection key,
The extended dictionary search unit 105, assuming that there is an error in the input character string, searches the dictionary 104 while rewriting a part of the input character string. The morphemes that can be searched in this way are taken out, and the result of FIG.
【0102】次に、形態素解析部106は、入力文字列
を形態素解析して、入力文字列の先頭から最後までを構
成する形態素列の中で文法的に矛盾のない形態素列を求
めて、図4に示す形態素列を得て、得られた形態素列を
形態素列一時記憶部107に一時記憶する。Next, the morpheme analysis unit 106 morphologically analyzes the input character string to obtain a morpheme string that is grammatically consistent among the morpheme strings forming the input character string from the beginning to the end, and 4 is obtained, and the obtained morpheme sequence is temporarily stored in the morpheme sequence temporary storage unit 107.
【0103】形態素列一時記憶部107に一時記憶され
た形態素の「誤りの種類」のフィールドを調べると、先
頭の形態素「入力」が補正されている。そこで、正解文
字列表示制御部115は、正解文字列を、例えば図10
(a)のように出力部104に表示する。When the "error type" field of the morpheme temporarily stored in the morpheme string temporary storage unit 107 is examined, the leading morpheme "input" is corrected. Therefore, the correct answer character string display control unit 115 displays the correct answer character string in, for example, FIG.
It is displayed on the output unit 104 as shown in FIG.
【0104】補正内容の確定操作として、例えば、オペ
レータが実行キーを押下すると、入力文字列更新部11
6は入力文字列を更新し、入力文字列一時記憶部102
に「にゅうりょくを」を一時記憶するとともに「にゅう
りょくを」を出力部110に表示する。As an operation for confirming the correction content, for example, when the operator presses the execution key, the input character string updating unit 11
6 updates the input character string, and the input character string temporary storage unit 102
“Nyuryoku” is temporarily stored in the display and “Nyuryoku” is displayed on the output unit 110.
【0105】上述のように本発明の第四の実施例におけ
る文字列処理装置においては、オペレータが入力文字列
中に誤りがあることに気づいた場合に、文字列の編集の
ためにカーソルの移動や誤った文字列の削除や正しい文
字列の入力といった煩わしい操作をする必要がなく、誤
り検出キーを押下するだけで、誤った入力「にゅーりょ
くを」に対して正しい文字列「にゅうりょくを」を表示
することができる。さらに、オペレータは実行キーを押
下するだけで、入力文字列を正しい文字列に更新するこ
とができる。As described above, in the character string processing apparatus in the fourth embodiment of the present invention, when the operator notices that there is an error in the input character string, the cursor is moved to edit the character string. There is no need to perform a troublesome operation such as deleting an incorrect character string or inputting a correct character string, and by pressing the error detection key, the correct character string `` Cucumber Can be displayed. Furthermore, the operator can update the input character string to a correct character string simply by pressing the execution key.
【0106】なお、実施例において、誤り検出部は形態
素解析をベースとする方法をとったが、例えば情報処理
学会研究報告93―NL―94―7「べた書き日本語文
の脱落・挿入誤りの検出法」のようにマルコフモデルを
用いる方法や、特許公開番号62―140164のよう
に辞書中に間違いやすいパターンを格納しておく方法を
用いてもよい。In the embodiment, the error detection unit employs a method based on morphological analysis. For example, IPSJ Research Report 93-NL-94-7 "Detection of Missing / Insertion Error of Japanese Text in Solid Writing" A method of using a Markov model such as “method” or a method of storing an easily erroneous pattern in a dictionary such as Japanese Patent Publication No. 62-140164 may be used.
【0107】また、第一の実施例においては誤り箇所を
点滅させる方法をとったが、誤り箇所を特定色や高輝度
で表示したり、反転やあみかけ表示するなど、他の文字
列と区別できる方法であればいずれの方法であってもよ
いし、例えば図5(a)から(d)のように、どのよう
に入力を誤ったかをオペレータが判別しやすいように誤
りの種類別に表示方法を変更してもよい。Further, in the first embodiment, the method of blinking the error portion is adopted, but the error portion can be distinguished from other character strings by displaying it in a specific color or high brightness, displaying it in reverse, or displaying it as a dummy. Any method may be used as long as it is a method. For example, as shown in FIGS. 5A to 5D, a display method for each type of error is provided so that the operator can easily determine how the input is wrong. You may change it.
【0108】また第三、第四の実施例では、正解文字列
を入力文字列と並べて表示する方法をとったが、正解文
字列だけを表示する方法でもよいし、複数の正解文字列
候補を表示してオペレータが候補を選択する方法を取っ
てもよい。また、図10の(a)から(d)に示すよう
に、どのように入力を誤ったかをオペレータが判別しや
すいように誤りの種類別に表示方法を変更してもよい。
さらに、第三、第四の実施例では正解文字列の誤り箇所
と誤りの種類を表示する方法を取ったが、これらを省略
してもよいことは明らかである。In the third and fourth embodiments, the correct answer character string is displayed side by side with the input character string. However, only the correct answer character string may be displayed, or a plurality of correct answer character string candidates may be displayed. A method of displaying and displaying an operator may be used. In addition, as shown in (a) to (d) of FIG. 10, the display method may be changed for each type of error so that the operator can easily determine how the input is wrong.
Furthermore, in the third and fourth embodiments, the method of displaying the error location and the error type of the correct answer character string is taken, but it is clear that these may be omitted.
【0109】また、第三、第四の実施例においては、正
解文字列を文節単位に表示したが、一つまたは複数の形
態素の単位で表示してもよいし、単に誤った文字だけを
表示する方法であってもよい。Also, in the third and fourth embodiments, the correct answer character string is displayed in units of phrases, but it may be displayed in units of one or a plurality of morphemes, or only incorrect characters are displayed. It may be a method of doing.
【0110】また、第三、第四の実施例においては、誤
り検出指示手段または変換指示手段の指示に応動して誤
入力に対する正解文字列を自動的に出力したが、誤り検
出指示手段または変換指示手段の指示に応動して誤り箇
所を表示するか、または誤り箇所へカーソルを移動し、
さらに、正解文字列表示指示手段の指示に応動して正解
文字列を表示する構成としてもよい。このように、実施
例に示す方法を適宜組み合わせて構成してもよいことは
明らかである。In the third and fourth embodiments, the correct character string for an erroneous input is automatically output in response to the instruction of the error detection instructing means or the conversion instructing means. In response to the instruction of the instruction means, display the error location, or move the cursor to the error location,
Furthermore, the correct answer character string may be displayed in response to an instruction from the correct answer character string display instruction means. As described above, it is obvious that the methods shown in the embodiments may be combined appropriately.
【0111】また、実施例においては、形態素と形態素
列の情報として誤り位置と誤りの種類を保持するが、誤
りがどのように補正されたかがわかればよくて、例えば
補正された文字列を保持し、補正された文字列と入力文
字列と比較して誤り箇所と誤りの種類を求める方法をと
ってもよい。In the embodiment, the error position and the error type are held as the information of the morpheme and the morpheme string, but it is sufficient to know how the error is corrected. For example, the corrected character string is held. Alternatively, a method of comparing the corrected character string and the input character string to obtain an error location and an error type may be adopted.
【0112】[0112]
【発明の効果】本発明の文字列処理方法およびその装置
においては、オペレータが入力に誤りに気づかずにかな
漢字変換を実行した場合に、自動的に誤りを訂正して変
換結果を出力するかわりに、誤り箇所をオペレータに提
示するので、オペレータは入力を誤ったことを認識する
ことができる。In the character string processing method and apparatus of the present invention, instead of automatically correcting the error and outputting the conversion result when the operator performs kana-kanji conversion without noticing the input error. Since the error portion is presented to the operator, the operator can recognize that the input is wrong.
【0113】また、誤りを検出した場合に、自動的にカ
ーソルを誤り箇所に移動するとともに編集モードを誤り
の種類に適したモードに設定するので、カーソルの移
動、文字列の削除、文字列の入力といった一連の煩わし
い文字列訂正操作を簡略化することができる。さらに、
誤った文字列に対する正しい文字列を提示して誤りを訂
正することができるので、文字列を簡単に訂正すること
ができる。When an error is detected, the cursor is automatically moved to the error position and the edit mode is set to a mode suitable for the type of error. Therefore, the cursor is moved, the character string is deleted, and the character string is deleted. It is possible to simplify a series of troublesome character string correction operations such as inputting. further,
Since it is possible to correct an error by presenting a correct character string for an erroneous character string, it is possible to easily correct the character string.
【0114】以上のように、オペレータに誤りがあるこ
とを知らせるとともに、誤りの訂正操作を簡略化できる
ので、その実用的価値は大きい。As described above, since the operator can be notified of an error and the error correction operation can be simplified, its practical value is great.
【図1】本発明の第一の実施例における文字列処理装置
の構成図FIG. 1 is a configuration diagram of a character string processing device according to a first embodiment of the present invention.
【図2】本発明の第一の実施例における文字列処理装置
の動作を示すフローチャートFIG. 2 is a flowchart showing the operation of the character string processing device in the first embodiment of the present invention.
【図3】辞書を検索して得られた形態素の一例を示す模
式図FIG. 3 is a schematic diagram showing an example of a morpheme obtained by searching a dictionary.
【図4】形態素解析をして得られた形態素列の一例を示
す模式図FIG. 4 is a schematic diagram showing an example of a morpheme sequence obtained by morphological analysis.
【図5】誤入力箇所の表示の一例を示す模式図FIG. 5 is a schematic diagram showing an example of a display of an erroneous input location.
【図6】本発明の第二の実施例における文字列処理装置
の構成図FIG. 6 is a configuration diagram of a character string processing device according to a second embodiment of the present invention.
【図7】本発明の第二の実施例における文字列処理装置
の動作を示すフローチャートFIG. 7 is a flowchart showing the operation of the character string processing device in the second embodiment of the present invention.
【図8】本発明の第三の実施例における文字列処理装置
の構成図FIG. 8 is a configuration diagram of a character string processing device according to a third embodiment of the present invention.
【図9】本発明の第三の実施例における文字列処理装置
の動作を示すフローチャートFIG. 9 is a flowchart showing the operation of the character string processing device in the third embodiment of the present invention.
【図10】誤入力箇所に対する正解文字列の表示の一例
を示す模式図FIG. 10 is a schematic diagram showing an example of a display of a correct character string for an erroneous input location.
【図11】本発明の第四の実施例における文字列処理装
置の構成図FIG. 11 is a configuration diagram of a character string processing device according to a fourth embodiment of the present invention.
【図12】本発明の第四の実施例における文字列処理装
置の動作を示すフローチャートFIG. 12 is a flowchart showing the operation of the character string processing device according to the fourth embodiment of the present invention.
【図13】従来の文字列処理装置の構成図FIG. 13 is a configuration diagram of a conventional character string processing device.
【図14】従来の文字列処理装置の動作を示すフローチ
ャートFIG. 14 is a flowchart showing the operation of a conventional character string processing device.
101 入力部 103 変換指示手段 108 誤り検出部 111 誤り箇所表示制御部 112 カーソル制御部 113 編集モードレジスタ 114 編集モード設定部 115 正解文字列表示制御部 116 入力文字列更新部 117 誤り検出指示手段 101 input unit 103 conversion instruction unit 108 error detection unit 111 error location display control unit 112 cursor control unit 113 edit mode register 114 edit mode setting unit 115 correct character string display control unit 116 input character string update unit 117 error detection instructing unit
Claims (14)
と、入力文字列中の誤入力箇所を検出する誤り検出部
と、入力文字列中の誤入力箇所の表示を制御する誤り箇
所表示制御部とを備えた文字列処理装置。1. An input unit for inputting a character string from a keyboard, an error detection unit for detecting an erroneous input portion in the input character string, and an error portion display control unit for controlling display of an erroneous input portion in the input character string. A character string processing device including and.
と、入力文字列中の誤入力箇所を検出する誤り検出部
と、入力文字列中の誤入力箇所へのカーソルの移動を制
御するカーソル制御部とを備えた文字列処理装置。2. An input unit for inputting a character string from a keyboard, an error detection unit for detecting an erroneous input portion in the input character string, and a cursor control for controlling movement of a cursor to the erroneous input portion in the input character string. And a character string processing device.
と、入力文字列中の誤入力箇所を検出する誤り検出部
と、入力編集モードを一時記憶する編集モードレジスタ
と、前記誤り検出部が検出した誤入力のパターンに基づ
いて編集モードレジスタに一時記憶された編集モードを
変更する編集モード変更部とを備えた文字列処理装置。3. An input unit for inputting a character string from a keyboard, an error detecting unit for detecting an erroneous input portion in the input character string, an edit mode register for temporarily storing an input edit mode, and the error detecting unit for detecting the input edit mode. A character string processing device comprising: an edit mode changing unit that changes the edit mode temporarily stored in the edit mode register based on the erroneous input pattern.
と、入力文字列中の誤入力箇所を検出する誤り検出部
と、入力文字列の誤入力箇所に対する正しい文字または
文字列の表示を制御する正解文字列表示制御部とを備え
た文字列処理装置。4. An input unit for inputting a character string from a keyboard, an error detection unit for detecting an erroneous input portion in the input character string, and a control for displaying a correct character or a character string at the erroneous input portion of the input character string. A character string processing device including a correct character string display control unit.
と、入力文字列を一時記憶する入力文字列一時記憶部
と、入力文字列中の誤入力箇所を検出する誤り検出部
と、前記入力文字列一時記憶部に一時記憶された入力文
字列中の誤入力箇所を正しい文字列で置き換える入力文
字列更新部とを備えた文字列処理装置。5. An input unit for inputting a character string from a keyboard, an input character string temporary storage unit for temporarily storing the input character string, an error detection unit for detecting an erroneous input portion in the input character string, and the input character. A character string processing device comprising: an input character string updating unit that replaces an erroneous input location in an input character string temporarily stored in a column temporary storage unit with a correct character string.
と、誤り検出の実行を指示する誤り検出指示手段と、前
記誤り検出指示手段の誤り検出指示に応動して入力文字
列中の誤入力箇所を検出する誤り検出部と、を備えた文
字列処理装置。6. An input unit for inputting a character string from a keyboard, error detection instructing means for instructing execution of error detection, and an erroneous input location in an input character string in response to an error detection instruction of said error detection instructing means. A character string processing device comprising: an error detection unit that detects
と、かな漢字変換の実行を指示する変換指示手段と、前
記かな漢字変換指示手段に応動して入力文字列中の誤入
力箇所を検出する誤り検出部と、前記誤り検出部が誤入
力を検出した場合に入力文字列中の誤入力箇所の表示を
制御する誤り箇所表示制御部と、前記誤り検出部が誤入
力を検出しない場合にかな漢字変換結果を表示する変換
結果表示制御部とを備えた文字列処理装置。7. An input section for inputting a character string from a keyboard, a conversion instructing means for instructing execution of kana-kanji conversion, and an error detection for detecting an erroneous input portion in the input character string in response to the kana-kanji conversion instructing means. Part, an error part display control part that controls the display of an erroneous input part in the input character string when the error detection part detects an erroneous input, and a kana-kanji conversion result when the error detection part does not detect an erroneous input A character string processing device having a conversion result display control unit for displaying.
ップと、入力文字列中の誤入力箇所を検出する誤り検出
ステップと、入力文字列中の誤入力箇所の表示を制御す
る誤り箇所表示制御ステップとを備えた文字列処理方
法。8. An input step of inputting a character string from a keyboard, an error detection step of detecting an erroneous input portion in the input character string, and an error portion display control step of controlling display of an erroneous input portion in the input character string. A character string processing method having and.
ップと、入力文字列中の誤入力箇所を検出する誤り検出
ステップと、入力文字列中の誤入力箇所へのカーソルの
移動を制御するカーソル制御ステップとを備えた文字列
処理方法。9. An input step of inputting a character string from a keyboard, an error detection step of detecting an erroneous input portion in the input character string, and a cursor control for controlling movement of a cursor to the erroneous input portion of the input character string. And a character string processing method including steps.
テップと、入力文字列中の誤入力箇所を検出する誤り検
出ステップと、前記誤り検出ステップが検出した誤入力
のパターンに基づいて編集モードを変更する編集モード
変更ステップとを備えた文字列処理方法。10. An input step of inputting a character string from a keyboard, an error detecting step of detecting an erroneous input portion in the input character string, and an edit mode change based on an erroneous input pattern detected by the error detecting step. A method for processing a character string, which comprises a step of changing an edit mode.
テップと、入力文字列中の誤入力箇所を検出する誤り検
出ステップと、入力文字列の誤入力箇所に対する正しい
文字または文字列の表示を制御する正解文字列表示制御
ステップと、を備えた文字列処理方法。11. An input step of inputting a character string from a keyboard, an error detection step of detecting an erroneous input portion in the input character string, and a control of displaying a correct character or a character string at the erroneous input portion of the input character string. A correct character string display control step, and a character string processing method.
テップと、入力文字列中の誤入力箇所を検出する誤り検
出ステップと、入力文字列中の誤入力箇所を正しい文字
列で置き換える入力文字列更新ステップとを備えた文字
列処理方法。12. An input step of inputting a character string from a keyboard, an error detection step of detecting an erroneous input portion in the input character string, and an input character string update for replacing the erroneous input portion of the input character string with a correct character string. And a character string processing method including steps.
テップと、誤り検出の実行を指示する誤り検出指示ステ
ップと、前記誤り検出指示ステップの誤り検出指示に応
動して入力文字列中の誤入力箇所を検出する誤り検出ス
テップとを備えた文字列処理方法。13. An input step of inputting a character string from a keyboard, an error detection instruction step of instructing execution of error detection, and an erroneous input location in the input character string in response to the error detection instruction of the error detection instruction step. A character string processing method comprising: an error detection step of detecting
テップと、かな漢字変換の実行を指示する変換指示ステ
ップと、前記かな漢字変換指示ステップに応動して入力
文字列中の誤入力箇所を検出する誤り検出ステップと、
前記誤り検出ステップが誤入力を検出した場合に入力文
字列中の誤入力箇所の表示を制御する誤り箇所表示制御
ステップと、前記誤り検出ステップが誤入力を検出しな
い場合にかな漢字変換結果を表示する変換結果表示制御
ステップとを備えた文字列処理方法。14. An input step for inputting a character string from a keyboard, a conversion instruction step for instructing execution of kana-kanji conversion, and an error detection for detecting an erroneous input portion in the input character string in response to the kana-kanji conversion instruction step. Steps,
When the error detection step detects an erroneous input, an error location display control step of controlling the display of an erroneous input location in the input character string, and a kana-kanji conversion result is displayed when the error detection step does not detect an erroneous input. A conversion result display control step, and a character string processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7131335A JPH08329068A (en) | 1995-05-30 | 1995-05-30 | Character string processing method and apparatus thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7131335A JPH08329068A (en) | 1995-05-30 | 1995-05-30 | Character string processing method and apparatus thereof |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH08329068A true JPH08329068A (en) | 1996-12-13 |
Family
ID=15055544
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7131335A Pending JPH08329068A (en) | 1995-05-30 | 1995-05-30 | Character string processing method and apparatus thereof |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH08329068A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103914099A (en) * | 2013-01-04 | 2014-07-09 | 宏碁股份有限公司 | Computer and keyboard error pressing operation method |
-
1995
- 1995-05-30 JP JP7131335A patent/JPH08329068A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103914099A (en) * | 2013-01-04 | 2014-07-09 | 宏碁股份有限公司 | Computer and keyboard error pressing operation method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0241646A2 (en) | Document processing apparatus | |
| JPS6355085B2 (en) | ||
| JPH08329068A (en) | Character string processing method and apparatus thereof | |
| JP2870375B2 (en) | Sentence correction device | |
| JP4189040B2 (en) | Sentence proofreading apparatus and proofreading method | |
| JP2721617B2 (en) | Information processing device | |
| JP3103179B2 (en) | Document creation device and document creation method | |
| JP2795930B2 (en) | Document creation support device | |
| JP3263211B2 (en) | Character processing method and device | |
| JP2001134564A (en) | Electronic dictionary | |
| JP3420333B2 (en) | Document processing apparatus and spell checking method thereof | |
| JPS61175855A (en) | Kana to kanji converting device | |
| JPS63229562A (en) | Back-up device for production/correction of document | |
| JPH05174003A (en) | Method and device for preparation of sentence | |
| JPH0922411A (en) | Document processing method and apparatus | |
| JPH05158923A (en) | Information processing equipment | |
| JPH0752443B2 (en) | Text processor | |
| JPH0721176A (en) | Character correction method and character correction device | |
| JPH09231211A (en) | Character processing device and character string processing method | |
| JPS60207948A (en) | Kana-kanji conversion processing device | |
| JPH09179858A (en) | Document creation device and display method | |
| JPH01237874A (en) | Printer | |
| JPH06168242A (en) | Method and device for correcting spelling error | |
| JPS62145317A (en) | character input device | |
| JPH06119325A (en) | Word correction device |