JP2005032111A - Character string processor, character string processing method, program and recording medium - Google Patents

Character string processor, character string processing method, program and recording medium Download PDF

Info

Publication number
JP2005032111A
JP2005032111A JP2003272523A JP2003272523A JP2005032111A JP 2005032111 A JP2005032111 A JP 2005032111A JP 2003272523 A JP2003272523 A JP 2003272523A JP 2003272523 A JP2003272523 A JP 2003272523A JP 2005032111 A JP2005032111 A JP 2005032111A
Authority
JP
Japan
Prior art keywords
character string
input
output
candidate
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003272523A
Other languages
Japanese (ja)
Inventor
Keiko Hirukawa
慶子 蛭川
Hiroyuki Kanza
浩幸 勘座
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2003272523A priority Critical patent/JP2005032111A/en
Publication of JP2005032111A publication Critical patent/JP2005032111A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a character string processor capable of reducing a user's input load as much as possible even if the number of words stored in a word dictionary increases and the number of predicted candidates increase in the character string processor outputting the predicted candidate obtained as a result of referring to the word dictionary based on a first character string showing reading and predicting a second character string. <P>SOLUTION: If there is an additional character input (adding a character "TO" to a character string "SOFU") indicating modification of the first character string (1026) or a character eliminating input etc., it is controlled to preferentially display candidates other than the predicted candidate already displayed on a candidate window 1401 when updating the predicted candidate displayed on the candidate window 1401 with the input. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、第1の文字列から第2の文字列を予測した結果を出力する文字列処理装置、文字列処理方法、プログラム及び記録媒体に関する。   The present invention relates to a character string processing device, a character string processing method, a program, and a recording medium that output a result of predicting a second character string from a first character string.

パーソナルコンピュータ(PC)、ワードプロセッサ等において文書を作成する場合など、キーボード等の入力デバイスを用いてかな文字の文字列を入力し、随時かな漢字変換を行って文書を作成していくのが通常である。このような場合においてユーザの文字列入力負担を軽減するべく、かな文字の文字列を入力した際、最初の数文字が入力された時点で単語辞書を検索することにより、入力された数文字から始まるような読み方の文字列の候補を表示するようにした文字列予測装置が特許文献1に開示されている。   When creating a document on a personal computer (PC), word processor, etc., it is usual to input a kana character string using an input device such as a keyboard and perform kana-kanji conversion at any time to create a document. . In such a case, when the character string of the kana character is input, the word dictionary is searched when the first few characters are input to reduce the burden of the user to input the character string. Japanese Patent Application Laid-Open No. H10-228707 discloses a character string predicting apparatus that displays a character string candidate that starts reading.

上記従来の文字列予測装置では、ユーザが例えば「そふ」といった文字列を入力した時点で当該文字列に基づいた予測処理が実行され、その結果、「祖父」、「祖父母」、「ソフト」、「ソフトウェア」、「ソフトボール」等の単語が予測候補として表示される。ユーザは表示された予測候補の中から所望の文字列を選択することができ、これにより文字列の入力負担を軽減することができる。
特開平11−39300号公報
In the conventional character string predicting device, when the user inputs a character string such as “Soft”, a prediction process based on the character string is executed. As a result, “grandfather”, “grandparent”, “soft” , “Software”, “softball” and the like are displayed as prediction candidates. The user can select a desired character string from the displayed prediction candidates, thereby reducing the input burden of the character string.
JP-A-11-39300

上記のような文字列予測装置では、単語辞書に記憶された単語の数が増加するに従い、予測した結果として得られる予測候補の数も増加する。予測候補の数が増加すると、ユーザにとっては、予測候補の中から所望の文字列を探し出すことが煩雑になるという問題点があった。特に、予測候補を表示するためのスペースが小さい場合には、次画面への切り替え操作を頻繁に行わなければならず、逆に入力負担が増加しかねない。一方、予測候補の絞込みのためには、結局、入力デバイスから入力するかな文字の文字列を長くする必要があり、入力負担の軽減効果が得られなくなってしまう。   In the character string prediction device as described above, the number of prediction candidates obtained as a result of prediction increases as the number of words stored in the word dictionary increases. When the number of prediction candidates increases, there is a problem that it becomes complicated for the user to find a desired character string from the prediction candidates. In particular, when the space for displaying the prediction candidates is small, it is necessary to frequently switch to the next screen, which may increase the input burden. On the other hand, in order to narrow down the prediction candidates, it is necessary to lengthen the character string of the kana character input from the input device after all, and the effect of reducing the input burden cannot be obtained.

本発明は、上記のような問題点に鑑みてなされたものであって、単語辞書中の単語の増加等により予測候補の数が増加したような場合であっても、ユーザの文字列入力負担を極力軽減することのできる文字列処理装置、文字列処理方法、プログラム及び記録媒体を提供することを目的としている。   The present invention has been made in view of the above problems, and even if the number of prediction candidates is increased due to an increase in the number of words in the word dictionary, the user's character string input burden is increased. It is an object of the present invention to provide a character string processing device, a character string processing method, a program, and a recording medium that can reduce as much as possible.

上記の問題点を解決するために、本発明に係る文字列処理装置は、第1の文字列から第2の文字列を予測した結果を出力する文字列処理装置において、第1の文字列に基づく予測の結果として得られる第2の文字列の候補を取得する予測候補取得手段と、前記予測候補取得手段により取得された候補を所定数出力する出力手段と、前記出力手段による出力内容を決定する出力決定手段と、外部からの入力を受け付ける入力受付手段とを備え、前記出力決定手段は、前記入力受付手段が前記第1の文字列の修正を示す入力を受け付け、それに伴い前記出力手段が再度第2の文字列の候補を出力する場合に、既に前記出力手段により出力された候補以外の候補が優先して出力されるように出力内容を決定することを特徴としている。   In order to solve the above problems, a character string processing device according to the present invention is a character string processing device that outputs a result of predicting a second character string from a first character string. A prediction candidate acquisition unit for acquiring a second character string candidate obtained as a result of prediction based on the output; an output unit for outputting a predetermined number of candidates acquired by the prediction candidate acquisition unit; and an output content by the output unit Output determining means, and an input receiving means for receiving an input from the outside. The output determining means receives an input indicating that the first character string is corrected by the input receiving means, and the output means accordingly When the second character string candidate is output again, the output contents are determined so that candidates other than those already output by the output means are output with priority.

前記出力決定手段の処理は、第1の文字列の修正を示す入力がされた場合、既に出力手段により出力された候補の中には、ユーザにとって所望の候補を含まないと推測されることに基づくものである。所望の文字列が存在すれば第1の文字列を修正するまでもなく、所望の文字列を選択することが可能だからである。即ち、本発明の文字列処理装置では、第1の文字列の修正を示す入力が、他の候補の出力を促す入力と同様の意味合いを有することとなり、より少ない操作で所望の文字列に到達することが可能となる。   In the processing of the output determination means, when an input indicating the correction of the first character string is made, it is presumed that the candidates already output by the output means do not include a desired candidate for the user. Is based. This is because if the desired character string exists, the desired character string can be selected without correcting the first character string. That is, in the character string processing device of the present invention, the input indicating the correction of the first character string has the same meaning as the input that prompts the output of other candidates, and the desired character string is reached with fewer operations. It becomes possible to do.

なお、出力手段は、予測候補を表示手段(CRT、液晶ディスプレイ等の各種表示装置)に出力してもよいし、ネットワーク、専用コード等を介して外部装置に出力するものであってもよい。出力決定手段が、「既に前記出力手段により出力された候補以外の候補が優先して出力されるように出力内容を決定する」ための具体的な処理内容は種々考えられ、既に出力された第2の文字列の候補を記憶しておき、出力に際して比較処理を行うことによっても実現できるし、既に出力された候補に所定のフラグを立てるような処理を行ってもよい。また、取得された第2の文字列の候補の配列順位を決定する配列順位決定部を有し、前記出力手段により、配列順位が上位である候補が最大前記所定数だけ出力されるように出力内容を決定するとともに、前記配列順位決定部は、既に前記出力手段により出力された候補の配列順位を下位に変更するような方法でも出力内容の決定を行うことができる。さらに、これらの各処理を併用することもできる。   The output means may output the prediction candidate to the display means (various display devices such as a CRT and a liquid crystal display), or may output the prediction candidate to an external device via a network, a dedicated code, or the like. Various specific processing contents for the output determination means to “determine the output contents so that candidates other than the candidates already output by the output means are output preferentially” can be considered. This can be realized by storing candidates for the second character string and performing a comparison process at the time of output, or a process for setting a predetermined flag on a candidate that has already been output may be performed. In addition, it has an arrangement order determination unit for determining the arrangement order of the obtained second character string candidates, and the output means outputs so that a maximum number of candidates having the highest arrangement order are output by the predetermined number. In addition to determining the contents, the arrangement order determination unit can also determine the output contents by a method in which the candidate arrangement order already output by the output means is changed to a lower order. Further, these treatments can be used in combination.

「第1の文字列の修正を示す入力」には、第1の文字列への文字の追加を指示する入力、削除を指示する入力、上書きによる修正を示す入力のように実際に修正を指示する入力の他に、次に入力される文字を示唆するような入力も「修正を示す入力」として含まれる。また、当該入力があった場合に、必ずしも毎回予測処理が行われるわけではなく、それ以前の予測の結果として得られた候補から抽出して出力内容を決定することもできる。   “Input that indicates correction of the first character string” indicates that correction is actually made, such as input that instructs addition of a character to the first character string, input that instructs deletion, and input that indicates correction by overwriting. In addition to the input to be input, an input that suggests a character to be input next is also included as “input indicating correction”. In addition, when there is an input, the prediction process is not necessarily performed every time, and it is possible to determine the output contents by extracting from candidates obtained as a result of the previous prediction.

なお、予測候補の中には、再度の出力に際しても優先して出力されるような固定候補を設けるようにしてもよい。どのような候補を固定候補とするかは任意であり、例えば使用頻度が高い候補とすることができるがこれに限定されない。例えば、前記第2の文字列を入力する対象である文書における入力位置の前後の文脈に基づいて、前記固定候補とする候補を決定する固定候補決定手段を備えてもよい。出力決定手段は、固定候補が存在した場合には、当該固定候補が優先して再度前記出力手段により出力されるように出力内容を決定することができる。但し、固定候補の最大出力回数を規定しておき、固定候補であっても、前記出力手段からの出力回数が前記最大出力回数に到達した候補については、優先して出力しないようにしてもよい。これによりユーザの所望の候補でないにもかかわらず、常に固定候補が出力されるというような事態が防止できる。   In addition, among the prediction candidates, a fixed candidate that is preferentially output when it is output again may be provided. Any candidate can be set as a fixed candidate. For example, a candidate that is frequently used can be used, but the present invention is not limited to this. For example, fixed candidate determination means may be provided for determining a candidate as the fixed candidate based on contexts before and after an input position in a document that is a target for inputting the second character string. When there is a fixed candidate, the output determining unit can determine the output contents so that the fixed candidate is preferentially output by the output unit again. However, the maximum number of times of output of the fixed candidate is defined, and even if it is a fixed candidate, the candidate whose output count from the output means has reached the maximum output count may not be preferentially output. . As a result, it is possible to prevent a situation in which a fixed candidate is always output although it is not a user's desired candidate.

第1の文字列からの文字の削除を指示する入力があった場合に、既に出力された候補の中から、文字削除後の第1の文字列と読みが一致する候補を検出し、検出された候補が優先して出力されるようにすることもできる。例えば単語辞書を参照して読みが前方一致する文字列を第2の文字列の候補として取得するような場合、所望の文字列が単語辞書に無いことがある。この場合、第1の文字列に一旦追加された文字が削除されることがあるが、このときに読みの一致する候補を優先して出力することで、とりあえず、所望の文字列の途中までを入力確定させることができる。   When there is an input instructing deletion of a character from the first character string, a candidate whose reading matches the first character string after character deletion is detected from the already output candidates. It is also possible to output the candidates with priority. For example, when a character string whose reading matches forward with reference to the word dictionary is acquired as a candidate for the second character string, the desired character string may not be in the word dictionary. In this case, the character once added to the first character string may be deleted, but at this time, by giving priority to the candidate that matches the reading, the middle part of the desired character string is temporarily displayed. Input can be confirmed.

前記した「次に入力される文字がどのような文字であるか示唆する入力」を受け付けた場合、次に入力される可能性のある文字が前記第1の文字列に追加された場合における第2の文字列の候補を取得することができる。「次に入力される可能性のある文字」が複数種類存在する場合には、順次文字を追加して予測処理を行うようにすることができる。「示唆する入力」の例として、複数回の入力で一文字を入力することのある入力装置からの入力における当該複数回の一部の入力、例えば、かな文字をローマ字入力する場合における子音部分の入力や、同一の動作が複数回なされた場合に入力候補となる文字が順次変化し、他の動作がなされた場合に前記入力候補の中で入力される文字が決まるとともに、次に入力される文字がどのような文字かが示唆される入力装置からの入力、例えば、携帯電話機等のように、テンキーを用いて文字を入力するような場合の入力がある。テンキーによる入力の場合、「あ行」、「か行」のようにかな文字を複数の系列に分類し、系列のそれぞれに数字キーを割り当てている。そして、同一の数字キーが複数回押下された場合には同一の行に属するかな文字が順次変化し、他の数字キーが押下された場合には、入力されるかな文字が決まるとともに、次に入力される文字が当該他の数字キーに対応する行のかな文字であることが示唆され、カーソルキーが押下された場合には、次に入力される文字が同一の行のかな文字であることが示唆される。もっとも、かな文字の割り当て方法やキーの種類など、種々の設定が可能であり、携帯電話機のテンキー入力に限定されることなく、種々の装置に適用することが可能である。   When the above-mentioned “input suggesting what kind of character is to be input next” is received, the character that may be input next is added to the first character string. Candidates for the second character string can be acquired. When there are a plurality of types of “characters that may be input next”, it is possible to perform prediction processing by sequentially adding characters. As an example of "suggesting input", a part of the input from the input device that may input a single character by a plurality of times of input, for example, input of a consonant part when inputting Kana characters in Roman characters Or, if the same action is performed multiple times, the characters that become input candidates change sequentially, and when other actions are made, the character that is input among the input candidates is determined, and the next input character There is an input from an input device that suggests what kind of character, for example, an input for inputting a character using a numeric keypad, such as a mobile phone. In the case of input using a numeric keypad, kana characters such as “A” and “K” are classified into a plurality of series, and a numeric key is assigned to each series. When the same numeric key is pressed multiple times, the kana characters belonging to the same line change sequentially, and when another numeric key is pressed, the input kana character is determined, and then It is suggested that the input character is the kana character of the line corresponding to the other numeric keys, and when the cursor key is pressed, the next input character is the kana character of the same line Is suggested. However, various settings such as a kana character assignment method and a key type are possible, and the present invention is not limited to the numeric keypad input of a cellular phone, and can be applied to various devices.

本発明に係る文字列処理方法は、第1の文字列に基づく予測の結果として得られる第2の文字列の候補を取得する予測候補取得ステップと、取得された候補の配列順位を決定する配列順位決定ステップと、前記配列順位決定ステップにて決定された配列順位に従って、前記第2の文字列の候補を所定数出力する第1の出力ステップと、前記第1の文字列の修正を示す入力を受け付ける入力受付ステップと、前記修正を示す入力の受け付けに伴い、再度第2の文字列の候補を出力する第2の出力ステップとを含み、前記第2の出力ステップは、当該第2の出力ステップにて、前記第1の出力ステップにおいて既に出力された候補以外の候補が優先して出力されるように出力内容を決定する出力決定ステップを含むことを特徴としている。   The character string processing method according to the present invention includes a prediction candidate acquisition step of acquiring a second character string candidate obtained as a result of prediction based on the first character string, and an array for determining the arrangement order of the acquired candidates A first output step for outputting a predetermined number of candidates for the second character string in accordance with the sequence ranking determined in the sequence ranking determination step, and an input indicating correction of the first character string And a second output step for outputting a second character string candidate again in response to the input indicating the correction, wherein the second output step includes the second output step. The step includes an output determination step of determining output contents so that candidates other than the candidates already output in the first output step are output preferentially.

また、本発明に係るプログラムは、第1の文字列に基づく予測の結果として得られる第2の文字列の候補を取得する予約候補取得処理と、前記第2の文字列の候補を所定数出力する出力処理と、前記第1の文字列の修正を示す入力を受け付けた場合に実行される再度の出力処理において、既に出力された候補以外の候補が優先して出力されるように、出力される前記第2の文字列の候補を決定する出力決定処理とを含む処理をコンピュータに実行させることを特徴としている。「予測候補取得処理」は、予測処理を含んでもよいが、必ずしも予測処理を含まなくてもよい。即ち予測処理は、本発明に係るプログラム(候補となる文字列の出力処理を行うプログラム)とは別の汎用的な予測プログラムを用いて実行することもできる。また、出力決定処理は以下の実施の形態では主として配列順位決定部が行う処理である。本発明に係る記録媒体は、本発明に係るプログラムを記録したコンピュータ読み取り可能な記録媒体であることを特徴としている。   Further, the program according to the present invention provides a reservation candidate acquisition process for acquiring a second character string candidate obtained as a result of prediction based on the first character string, and outputs a predetermined number of the second character string candidates. In the output process to be executed and the output process to be executed again when the input indicating the correction of the first character string is received, the output is performed so that candidates other than the already output candidates are output with priority. And a process including an output determination process for determining a candidate for the second character string. The “prediction candidate acquisition process” may include a prediction process, but does not necessarily include a prediction process. In other words, the prediction process can be executed using a general-purpose prediction program different from the program according to the present invention (a program for outputting a candidate character string). Further, the output determination process is a process mainly performed by the arrangement order determination unit in the following embodiment. The recording medium according to the present invention is a computer-readable recording medium that records the program according to the present invention.

本発明の文字列処理装置では、第1の文字列の修正を示す入力を受け付けた場合、予測候補が再度出力されるが、当該再度の出力においては、既に出力された候補が再度出力される可能性が減少する。これにより、ユーザにとっては、より少ない操作で所望の文字列に到達することが可能になるという効果がある。もっとも、例えば頻繁に使用される文字列は固定候補として再度の出力でも優先して出力することも可能であり、例えば出力された予測候補を見落としてしまうような場合にも対処できるという効果がある。   In the character string processing device of the present invention, when the input indicating the correction of the first character string is received, the prediction candidate is output again. In the second output, the already output candidate is output again. The possibility is reduced. As a result, the user can reach a desired character string with fewer operations. However, for example, frequently used character strings can be output as fixed candidates with priority even when they are output again. For example, it is possible to cope with a case where an output prediction candidate is overlooked. .

以下、本発明を実施するための最良の形態について、図面を参照しながら説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

(実施の形態1)
図1は、本発明の第1の実施の形態の文字列処理装置の一適用例としてのワードプロセッサの構成を示す機能ブロック図である。ワードプロセッサは、入力部101、配列制御部102、予測処理部103、表示部104を含んでいる。主として配列制御部102が本実施の形態の文字列処理装置を構成している。入力部101としては、例えばキーボードやマウス、ソフトウェアキーボード等の各種入力デバイスを用いることができる。入力部101からは、ユーザによる文字の入力、一旦入力された文字を削除する削除要求、既に表示部104に表示されている予測候補の次候補を表示する次候補表示要求、予測候補の中から文字列を確定する文字列確定要求等の各入力を行うことができる。
(Embodiment 1)
FIG. 1 is a functional block diagram showing a configuration of a word processor as an application example of the character string processing apparatus according to the first embodiment of this invention. The word processor includes an input unit 101, an array control unit 102, a prediction processing unit 103, and a display unit 104. The array control unit 102 mainly constitutes the character string processing device of the present embodiment. As the input unit 101, for example, various input devices such as a keyboard, a mouse, and a software keyboard can be used. From the input unit 101, the user inputs a character, a deletion request to delete the character once input, a next candidate display request to display the next candidate for a prediction candidate already displayed on the display unit 104, and a prediction candidate Each input such as a character string confirmation request for confirming a character string can be performed.

配列制御部102は、ユーザから文字列(かな文字の文字列、以下「第1の文字列」ともいう。)を構成する文字等の入力を受け付けた場合に、予測処理部103による予測の結果として得られる文字列群(第2の文字列の候補、以下、「予測候補」という。)を表示部104に表示させるに際しての制御処理を行う。より具体的な処理内容については後述する。予測処理部103は、配列制御部102から第1の文字列に関する情報を受け取り、単語辞書格納部1031に格納されている単語辞書を参照して予測処理を行い、予測候補を配列制御部102に返す。表示部104としては、CRT、液晶ディスプレイ等の各種表示デバイスを用いることができる。   When the array control unit 102 receives an input of a character or the like constituting a character string (a character string of a kana character, hereinafter also referred to as a “first character string”) from the user, a result of prediction by the prediction processing unit 103 A control process for displaying the character string group (second character string candidate, hereinafter referred to as “prediction candidate”) obtained on the display unit 104 is performed. More specific processing contents will be described later. The prediction processing unit 103 receives information related to the first character string from the sequence control unit 102, performs a prediction process with reference to the word dictionary stored in the word dictionary storage unit 1031, and sends prediction candidates to the sequence control unit 102. return. As the display unit 104, various display devices such as a CRT and a liquid crystal display can be used.

図2は、単語辞書格納部1031に格納される単語辞書の内容の一例を示す図である。単語辞書には、例えば文字列の読みと、その読みに対応する文字列のペアに、本実施の形態ではポイントを付与して保持している。もっともポイントを付与しなくとも本発明の実施は可能である。配列制御部102から、第1の文字列に関する情報を受け取ると、受け取った第1の文字列と前方一致する読み方に対応する文字列を予測候補として抽出し、配列制御部102に返す。なお、上記図2に示したような単語辞書の実装例を採用すると単語辞書の容量が膨大になるおそれがあるので、例えば特開平5−54077号公報等に記載の各種公知技術を利用して辞書の圧縮を行うようにしてもよい。   FIG. 2 is a diagram illustrating an example of the contents of the word dictionary stored in the word dictionary storage unit 1031. In the word dictionary, for example, a reading of a character string and a pair of character strings corresponding to the reading are given and held in this embodiment. However, the present invention can be implemented without giving points. When information about the first character string is received from the array control unit 102, a character string corresponding to a reading that matches the received first character string is extracted as a prediction candidate and returned to the array control unit 102. Note that if the implementation example of the word dictionary as shown in FIG. 2 is adopted, the capacity of the word dictionary may become enormous. For example, various known techniques described in JP-A-5-54077 are used. You may make it compress a dictionary.

以上のように読みが前方一致する全ての文字列を抽出する場合、ユーザにより入力された第1の文字列に対する予測処理を行った後で、追加して文字が入力された場合に再度単語辞書を参照した予測処理を行うとすると、予測候補として抽出される文字列群は、結局先の予測処理にて抽出された文字列のサブセットとなる。入力された第1の文字列が長くなるほど抽出される予測候補の数は少なくなり、予測精度は向上する。   As described above, when extracting all character strings whose readings match forward, after performing prediction processing on the first character string input by the user, the word dictionary is again input when additional characters are input. When the prediction process referring to is performed, the character string group extracted as a prediction candidate is eventually a subset of the character string extracted in the previous prediction process. As the input first character string becomes longer, the number of prediction candidates to be extracted decreases and the prediction accuracy improves.

配列制御部102は、入力部101からの入力を受け付け、予測処理部103及び表示部104の駆動を制御する。以下、配列制御部102について詳しく説明する。   The array control unit 102 receives input from the input unit 101 and controls driving of the prediction processing unit 103 and the display unit 104. Hereinafter, the arrangement control unit 102 will be described in detail.

配列制御部102は、入力判定部1021、文字列バッファ制御部1022、予測処理制御部1023、配列順位決定部1024、表示履歴管理部1025、入力文字列バッファ1026、予測候補格納部1026、配列後予測候補格納部1028、文字列表示履歴記憶部1029を含んでいる。   The array control unit 102 includes an input determination unit 1021, a character string buffer control unit 1022, a prediction processing control unit 1023, an array order determination unit 1024, a display history management unit 1025, an input character string buffer 1026, a prediction candidate storage unit 1026, and a post-array A prediction candidate storage unit 1028 and a character string display history storage unit 1029 are included.

入力判定部1021は、入力部101からの入力が文字の入力か、文字の削除要求か、次候補表示要求か、文字列確定要求かを判定する。この判定は、例えばキーボード上のどのキーが押下されたか等の判別により容易に行うことができる。いずれかであるかの判定に従って、配列制御部102の具体的な制御処理の内容が決定される。   The input determination unit 1021 determines whether the input from the input unit 101 is a character input, a character deletion request, a next candidate display request, or a character string confirmation request. This determination can be easily made by determining, for example, which key on the keyboard has been pressed. In accordance with the determination as to which one of them, the specific control processing content of the array control unit 102 is determined.

入力判定部1021が文字の入力を受け付けたと判定した場合、文字列バッファ制御部1022が、入力された文字を入力文字列バッファ1026に追加して格納する。入力文字列バッファ1026の内容が更新されると予測処理制御部1023が予測処理部103を起動し、入力文字列バッファ1026に格納されている文字列(第1の文字列)を予測処理部103に渡す。予測処理部103は、当該文字列を受けて前記した予測処理を実行し、予測処理の結果として得られた予測候補を予測処理制御部1023に渡す。予測処理制御部1023は、予測候補を受け取り予測候補格納部1027に格納する。図3は、予測候補格納部1027の内容の一例を示す図である。同図の例は、入力文字列バッファ1026に第1の文字列「そふと」が格納されている場合の予測候補の一例を示すものである。もっとも、前記したように文字列の追加の際に再度予測処理を行っても、得られる文字列群は、先の予測により得られた予測候補のサブセットとなるため、必ずしも毎回予測処理を行う必要はなく、前回得られた予測候補から抽出することもできる。この場合、予測候補格納部1027の内容を完全に上書き更新する必要はなく、抽出されたことを示すフラグをセットするような処理を行ってもよい。   When the input determination unit 1021 determines that a character input has been received, the character string buffer control unit 1022 adds the input character to the input character string buffer 1026 and stores it. When the contents of the input character string buffer 1026 are updated, the prediction processing control unit 1023 activates the prediction processing unit 103, and the character string (first character string) stored in the input character string buffer 1026 is used as the prediction processing unit 103. To pass. The prediction processing unit 103 receives the character string, executes the above-described prediction processing, and passes a prediction candidate obtained as a result of the prediction processing to the prediction processing control unit 1023. The prediction process control unit 1023 receives prediction candidates and stores them in the prediction candidate storage unit 1027. FIG. 3 is a diagram illustrating an example of the contents of the prediction candidate storage unit 1027. The example in the figure shows an example of a prediction candidate when the first character string “Soft” is stored in the input character string buffer 1026. However, as described above, even if the prediction process is performed again when the character string is added, the obtained character string group is a subset of the prediction candidates obtained by the previous prediction, and therefore the prediction process needs to be performed every time. It is also possible to extract from the previously obtained prediction candidates. In this case, it is not necessary to completely overwrite and update the contents of the prediction candidate storage unit 1027, and a process for setting a flag indicating that it has been extracted may be performed.

配列順位決定部1024は、予測候補格納部1027の内容が更新されると、まず、予測候補を表示部104に表示するに際しての配列順位を決定する。配列順位は、例えば予測候補に付与されているポイントの値に基づいて決定することができるが、これに限定されない。配列順位が決定されると、各予測候補が当該配列順位順に並べ替えられて配列後予測候補格納部1028に格納される。図4は、配列後予測候補格納部1028の内容の一例を示す図であるが、データ構造はこれに限定されず、予測候補格納部1027に格納されている内容に予測候補ごとの配列順位を追加するようにしてもよい。   When the content of the prediction candidate storage unit 1027 is updated, the arrangement order determination unit 1024 first determines the arrangement order for displaying the prediction candidates on the display unit 104. The sequence ranking can be determined based on, for example, the value of the points given to the prediction candidates, but is not limited to this. When the sequence order is determined, the prediction candidates are rearranged in the sequence order and stored in the post-sequence prediction candidate storage unit 1028. FIG. 4 is a diagram illustrating an example of the contents of the post-sequence prediction candidate storage unit 1028. However, the data structure is not limited to this, and the arrangement order for each prediction candidate is added to the content stored in the prediction candidate storage unit 1027. You may make it add.

配列順位決定部1024は、さらに、配列順位順に並べられた予測候補から、実際に表示部104に表示させるべき予測候補を抽出し、表示部104に表示させる。例えば表示部104において一度にN個の予測候補が表示可能である場合には、配列順位決定部1024は予測候補から上位N個を抽出し、表示部104に渡す。一方で配列順位決定部10224は、当該N個を表示部104に表示したことを表示履歴管理部1025に伝える。   The sequence order determination unit 1024 further extracts prediction candidates that should actually be displayed on the display unit 104 from the prediction candidates arranged in the sequence order, and causes the display unit 104 to display them. For example, when N prediction candidates can be displayed at a time on the display unit 104, the arrangement order determination unit 1024 extracts the top N pieces from the prediction candidates and passes them to the display unit 104. On the other hand, the arrangement order determination unit 10224 informs the display history management unit 1025 that the N pieces have been displayed on the display unit 104.

表示履歴管理部1025は、上位N個まで表示されたこと、及び表示した予測候補N個分の文字列情報を文字列表示履歴記憶部1029に格納する。文字列表示履歴記憶部1029の内容については後述する。なお、予測候補格納部1027、配列後予測候補格納部1028、文字列表示履歴記憶部1029等は、いずれも記憶装置であればよく、物理的に同一の記憶装置(ディスク装置、半導体メモリなど、特に限定されない。)を用いてもよい。   The display history management unit 1025 stores in the character string display history storage unit 1029 the display of up to the top N items and the character string information for the displayed N prediction candidates. The contents of the character string display history storage unit 1029 will be described later. Note that the prediction candidate storage unit 1027, the post-sequence prediction candidate storage unit 1028, the character string display history storage unit 1029, and the like may all be storage devices, and physically the same storage device (disk device, semiconductor memory, etc. It is not particularly limited).

入力判定部1021が、文字削除要求を受け付けたと判定した場合、文字列バッファ制御部1022が、入力文字列バッファ1026に格納されている現在の文字列から文字を削除する。入力文字列バッファ1026の内容が更新された後は、予測処理制御部1023によって予測処理部103が起動され、新たな予測候補が抽出されるとともに予測候補格納部1027の内容が更新される。さらに配列順位決定部1024で、その配列順位を決定し、配列順位に従って表示する。入力された文字が削除された場合の配列順位の決定の仕方等については後で詳しく述べる。   If the input determination unit 1021 determines that a character deletion request has been received, the character string buffer control unit 1022 deletes characters from the current character string stored in the input character string buffer 1026. After the content of the input character string buffer 1026 is updated, the prediction processing control unit 1023 activates the prediction processing unit 103 to extract a new prediction candidate and update the content of the prediction candidate storage unit 1027. Further, the arrangement order determination unit 1024 determines the arrangement order and displays it according to the arrangement order. A method of determining the arrangement order when the input characters are deleted will be described in detail later.

入力判定部1021が、次候補表示要求を受け付けたと判定した場合、配列後予測候補格納部1028に格納された配列順位決定後の予測候補のうち、現在表示されている予測候補より配列順位が下の候補から、順位に従ってN個抜き出して表示部104に渡し、表示する。文字列表示履歴記憶部1029には、上位(N+N)位までの予測候補が既に表示されたこと、新しく表示したN個の予測候補についての文字列情報が格納される。   When the input determination unit 1021 determines that the next candidate display request has been received, the sequence ranking is lower than the currently displayed prediction candidate among the prediction candidates after the sequence ranking determination stored in the post-sequence prediction candidate storage unit 1028. N candidates are extracted from the candidates according to the ranking and transferred to the display unit 104 for display. The character string display history storage unit 1029 stores character string information about N prediction candidates that have been displayed in advance, that is, prediction candidates up to the upper (N + N) rank have been displayed.

入力判定部1021が文字列確定要求を受け付けたと判定した場合、文字列を確定し、入力文字列バッファ1026、予測候補格納部1027、配列後予測候補格納部1028、及び文字列表示履歴記憶部1029の内容をクリアする。本実施の形態では、表示部104に表示されている予測候補からユーザがいずれかの候補を選択した場合、入力した文字列の無変換が指示された場合、かな漢字変換機能によって入力文字列が確定された場合のいずれかに文字列が確定するものとする。   If the input determination unit 1021 determines that the character string confirmation request has been received, the character string is confirmed and the input character string buffer 1026, the prediction candidate storage unit 1027, the post-sequence prediction candidate storage unit 1028, and the character string display history storage unit 1029 Clear the contents of. In the present embodiment, when the user selects one of the prediction candidates displayed on the display unit 104, or when no conversion of the input character string is instructed, the input character string is confirmed by the kana-kanji conversion function. It is assumed that the character string is fixed in any case.

なお、上記のような文字列処理装置は、入力部101、表示部104等を備えた汎用的情報処理装置において、予測処理や配列制御等の各処理を行う制御プログラムがCPU等のプロセッサ上で動作することによっても実現され得る。そのような場合、文字列処理装置には、例えば上記制御プログラムを格納するプログラム格納部、当該プログラム格納部からプログラムを読み出して一時的に記憶するメモリ、及びメモリに記憶されたプログラムを実行するプロセッサが設けられる。このようなプログラムは、ユーザの入力に従って、入力文字の後に続く文字列を予測する予測処理を行い、予測候補の配列順位を制御することによってより効率のよい入力支援を行うためのプログラムであると言え、当該制御プログラムを含むソフトウェアは、CD−ROM等の記録媒体に記憶された状態で販売等されることもあるし、インターネット等のネットワークを介して供給される場合もある。   Note that the character string processing device as described above is a general-purpose information processing device including the input unit 101, the display unit 104, and the like, and a control program for performing each process such as prediction processing and array control is performed on a processor such as a CPU. It can also be realized by operating. In such a case, the character string processing device includes, for example, a program storage unit that stores the control program, a memory that reads and temporarily stores the program from the program storage unit, and a processor that executes the program stored in the memory Is provided. Such a program is a program for performing more efficient input support by performing a prediction process for predicting a character string following an input character in accordance with a user input and controlling the order of arrangement of prediction candidates. In other words, software including the control program may be sold in a state of being stored in a recording medium such as a CD-ROM, or may be supplied via a network such as the Internet.

(配列順位の決定方法)
次に、配列順位決定部1024による予測候補の配列順位の決定方法について詳細に説明する。図5は、配列順位の決定について説明するための図である。図5(a)は、ユーザにより入力された文字列が「そふ」である時点において、予測候補を表示部104に表示した場合の一例を示す図である。ここでは表示部104に予測候補を表示するためのウィンドウ(以下、「候補ウィンドウ」という。)1041に、5個の予測候補が表示できるものとする。同図(a)の例では候補ウィンドウ1041に「祖父」、「祖父母」、「ソファー」、「ソフト」、「ソフトウェア」、なる文字列が予測候補として表示され、配列順位6位以下の候補が「ソフトクリーム」、「ソフトバンク」、「ソフトボール」・・・と続いているものとする。図6は、この時点における配列後予測候補格納部1028及び文字列表示履歴記憶部1029の内容を示す図である。図6(a)に示されるように配列後予測候補格納部1028には、予測候補が配列順位の順に格納されている。一方、図6(b)に示されるように文字列表示履歴格納部1029には、実際に表示部104に表示された予測候補である、「祖父」、「祖父母」、「ソファー」、「ソフト」、「ソフトウェア」の5つの文字列が格納される。
(Method for determining sequence order)
Next, a method for determining the sequence rank of prediction candidates by the sequence rank determination unit 1024 will be described in detail. FIG. 5 is a diagram for explaining the determination of the arrangement order. FIG. 5A is a diagram illustrating an example when a prediction candidate is displayed on the display unit 104 when the character string input by the user is “soft”. Here, it is assumed that five prediction candidates can be displayed in a window (hereinafter referred to as “candidate window”) 1041 for displaying prediction candidates on the display unit 104. In the example of FIG. 5A, character strings “grandfather”, “grandparents”, “sofa”, “soft”, “software” are displayed as prediction candidates in the candidate window 1041, and candidates having an arrangement rank of 6th or lower are displayed. "Soft cream", "Soft bank", "Soft ball" ... FIG. 6 is a diagram showing the contents of the post-sequence prediction candidate storage unit 1028 and the character string display history storage unit 1029 at this time point. As shown in FIG. 6A, the post-sequence prediction candidate storage unit 1028 stores the prediction candidates in the order of the sequence order. On the other hand, as shown in FIG. 6B, the character string display history storage unit 1029 has “grandfather”, “grandparent”, “sofa”, “soft” which are prediction candidates actually displayed on the display unit 104. ”And“ software ”are stored.

さて、本実施の形態では、ユーザから続けて文字が入力され、入力された文字列が「そふと」になったとすると、先に表示部104に表示された予測候補の中で、「そふと」と前方一致する「ソフト」及び「ソフトウェア」については、今般ユーザが求める所望の文字列ではない、という推測に基づく処理を行う。即ち、入力文字列バッファ1026の内容が「そふと」になったとすると、前回予測候補として表示された「祖父」、「祖父母」及び「ソファー」が予測候補から外れるのは当然として、前回4位であった「ソフト」及び5位であった「ソフトウェア」についても、相対的な配列順位を下げ、表示部104に表示されないようにする処理を行う。   In the present embodiment, when characters are continuously input from the user and the input character string is “soft”, among the prediction candidates previously displayed on the display unit 104, “soft” For “software” and “software” that match in front, a process based on an assumption that the character string is not the desired character string that the user currently demands is performed. That is, if the contents of the input character string buffer 1026 are “soft”, it is natural that “grandfather”, “grandparents”, and “sofa” displayed as the previous prediction candidates are excluded from the prediction candidates. For the “software” and the “software” in the fifth place, the relative arrangement order is lowered so that the software is not displayed on the display unit 104.

具体的には、例えば前回6位であった「ソフトクリーム」以下の各予測候補のポイントに、前回表示された中でもっともポイントの高いと思われる4位の「ソフト」のポイントを加算する、などの方法が考えられる。このような配列順位の修正処理を行うことにより、前回4位の「ソフト」、5位の「ソフトウェア」以外の候補が優先して上位に修正されることとなり、したがって、前回6位の「ソフトクリーム」が1位になり、以降の順位が順に繰り上がって表示される(図5(b)参照)。なお、この処理により、前回表示された「ソフト」及び「ソフトウェア」の配列後予測候補格納部1028内での位置は、今回の予測候補の中では最下位に位置づけられることとなる。   Specifically, for example, the “soft” point of 4th place that seems to have the highest point displayed last time is added to the prediction candidate points below “soft cream” that was 6 place last time, Such a method is conceivable. By performing such sequence order correction processing, candidates other than the fourth place “soft” and the fifth place “software” are preferentially modified to the upper rank, and therefore the previous sixth place “soft” “Cream” is ranked first, and the subsequent rankings are displayed in order (see FIG. 5B). By this process, the positions of “soft” and “software” displayed in the post-sequence prediction candidate storage unit 1028 displayed last time are positioned at the lowest position among the current prediction candidates.

これまでに表示された予測候補を選択せずに、続けて文字を入力したということから、表示された予測候補の中に所望の文字列がないということが推測されるため、別候補を優先的に表示することによって入力者の目に付きやすくし、選択しやすくする。従って、文字入力数が少ないうちに、より効果的な入力支援を行うことが可能となる。なお、予測処理を行った結果、予測候補が少なく、表示部104に一度に表示可能な個数(上記図5の例では5個)以下であった場合は、一度表示されていても続けて表示されることになる。   Priority is given to another candidate because it is presumed that there is no desired character string in the displayed prediction candidates because characters are continuously input without selecting the prediction candidates displayed so far. By making it display visually, it is easy for the input person to see and make it easy to select. Therefore, more effective input support can be performed while the number of character inputs is small. As a result of performing the prediction process, when the number of prediction candidates is small and the number is less than the number that can be displayed on the display unit 104 at the same time (five in the example of FIG. 5), the display is continued even if it is displayed once. Will be.

(一度入力した文字を削除したときの動作)
次に、入力中に、一旦入力した文字を削除した場合の処理の例を説明する。図7は係る場合について説明するための図である。例えば、「研究」と入力したい場合、「けん」まで入力したときに予測候補が表示されているとする(図7(a))。実際に候補ウィンドウ1041に表示された文字列は文字列表示履歴記憶部1029に格納される。ユーザが続けて文字を入力したが(図7(b))、それがタイプミスであった場合など、一旦入力された文字を削除し、入力文字列バッファの内容が「けん」に戻る場合がある。本実施の形態では、このような場合も、一旦候補ウィンドウに表示された予測候補はユーザの所望の文字列ではないとの推測のもと、以前に表示された予測候補以外の候補を優先して表示する(図7(c))。この場合には、前回「けん」のときに抽出された予測候補が配列後予測候補格納部1028に格納され、実際に候補ウィンドウ1041に表示した予測候補が文字列表示履歴記憶部1029に格納されているので、入力文字列バッファ1026の内容が再度「けん」に戻った場合も、配列後予測候補格納部1028や、文字列表示履歴記憶部1029に格納されている情報を利用することによって、まだ候補ウィンドウ1041に表示されていない予測候補を優先して表示させることができる。
(Operation when the entered characters are deleted)
Next, an example of processing when a character once input is deleted during input will be described. FIG. 7 is a diagram for explaining such a case. For example, when inputting “research”, it is assumed that prediction candidates are displayed when “ken” is input (FIG. 7A). The character string actually displayed in the candidate window 1041 is stored in the character string display history storage unit 1029. When the user continues to input characters (FIG. 7B), the input character string buffer may return to “KEN” once the input character is deleted, such as when it is a typo. is there. In this embodiment, even in such a case, a candidate other than the prediction candidate previously displayed is prioritized on the assumption that the prediction candidate once displayed in the candidate window is not the user's desired character string. Are displayed (FIG. 7C). In this case, the prediction candidate extracted at the time of “Ken” last time is stored in the post-sequence prediction candidate storage unit 1028, and the prediction candidate actually displayed in the candidate window 1041 is stored in the character string display history storage unit 1029. Therefore, even when the content of the input character string buffer 1026 returns to “Ken” again, by using the information stored in the post-sequence prediction candidate storage unit 1028 and the character string display history storage unit 1029, Prediction candidates that are not yet displayed in the candidate window 1041 can be displayed with priority.

(文字を削除したときに候補を復活させる場合の動作)
上記の例では、一度候補ウィンドウに表示された予測候補については、無条件に次の候補ウィンドウには表示しないような処理を行ったが、そもそも単語辞書にユーザが求める文字列が格納されていない場合など、どのような処理をしても入力負担の軽減につながらないような場合もある。次に、このような場合に対処するため、とりあえず入力された文字列の途中までの変換を行うことを可能とする場合について説明する。図8は、このような場合の処理について説明するための図である。
(Operation when restoring candidates when characters are deleted)
In the above example, the prediction candidate once displayed in the candidate window is processed so as not to be displayed in the next candidate window unconditionally, but the character string requested by the user is not stored in the word dictionary in the first place. In some cases, any processing may not reduce the input burden. Next, in order to deal with such a case, a case will be described in which it is possible to perform conversion to the middle of the input character string for the time being. FIG. 8 is a diagram for explaining the processing in such a case.

例えば、「研究所員」と入力したい場合、「けんきゅう」まで入力したときに、予測候補が表示されているとする(図8(a)参照)。ユーザが続けて文字を入力して入力文字列バッファ1026の内容が「けんきゅうし」となった場合(図8(b))、予測候補の中にユーザが求める「研究所員」という文字列が存在しないことが明らかとなる。   For example, when it is desired to input “laboratory staff”, it is assumed that prediction candidates are displayed when “kenkyu” is input (see FIG. 8A). When the user continuously inputs characters and the content of the input character string buffer 1026 becomes “Kenkyusyu” (FIG. 8B), the character string “laboratory member” that the user wants exists among the prediction candidates. It becomes clear that they do not.

同図の例では、一旦入力された文字「し」が削除され、入力文字列バッファ1026の内容が再度「けんきゅう」となった場合、入力文字列バッファ1026の読みと一致する予測候補である「研究」だけは上位に残して、前回2位(研究員)から5位(研究会長)までの候補は予測候補の最下位にさげ、前回6位以下の候補を2位に繰り上げる(図8(c))。このような処理を行うことにより、ユーザが求める予測候補が単語辞書に格納されていないような場合、とりあえず「研究」だけを確定することができる。   In the example shown in the figure, when the input character “shi” is deleted and the content of the input character string buffer 1026 becomes “kenkyu” again, the prediction candidate matches the reading of the input character string buffer 1026. Only “Research” remains at the top, and candidates from the 2nd place (Researcher) to 5th place (Research Chairman) are placed at the bottom of the prediction candidates, and the 6th and below candidates are moved up to 2nd place (Fig. 8 ( c)). By performing such processing, if the prediction candidate that the user wants is not stored in the word dictionary, only “research” can be determined for the time being.

上記のような処理を実現するには、文字の削除が行われたことが検出された場合に、新たな予測候補のうち文字列表示履歴記憶部1029に格納されている予測候補であっても、現在の入力文字列バッファ1026の内容と読みが一致する予測候補を検出し、検出された予測候補については、その候補を優先して上位にする。その、文字列表示履歴記憶部1029に格納されていない予測候補を優先して上位に表示するようにすればよい。   In order to realize the processing as described above, even if a prediction candidate stored in the character string display history storage unit 1029 among new prediction candidates is detected when it is detected that a character has been deleted. Then, a prediction candidate whose reading matches the content of the current input character string buffer 1026 is detected, and the detected prediction candidate is given higher priority. The prediction candidates that are not stored in the character string display history storage unit 1029 may be displayed preferentially.

もっとも、以上に図8を用いて説明したように、文字削除時に文字列表示履歴記憶部1029に格納されている予測候補のうち、入力文字列バッファ1026の内容と読みが一致する予測候補を優先して表示する処理は、本発明の文字列処理装置において必ずしもなくてはならない処理ではない。常に文字列表示履歴記憶部1029に格納されている候補以外を優先して表示させるようにしてもよいし、ユーザによっていずれの処理を行うか(「表示履歴にある候補を常に表示しない」若しくは「削除時でも読みが一致する候補は優先して表示」のいずれか)を切り替えることができるようにしてもよい。   However, as described above with reference to FIG. 8, priority is given to a prediction candidate whose reading matches the content of the input character string buffer 1026 among the prediction candidates stored in the character string display history storage unit 1029 at the time of character deletion. The processing to be displayed in this manner is not necessarily processing that must be performed in the character string processing device of the present invention. The candidates other than the candidates stored in the character string display history storage unit 1029 may always be displayed with priority, and which processing is performed by the user ("Candidates in display history are not always displayed" or " “Candidates whose readings match even when deleted” can be switched between “display with priority”.

(固定候補を優先して表示させる場合の動作)
次に、予測候補を「固定候補」と「可変候補」とに分類する場合の処理について説明する。図9は、「固定候補」を設ける場合について説明するための図である。なお、ここで「固定候補」とは、追加して文字が入力されても候補ウィンドウ1041に優先して表示され続ける予測候補をいう。即ち、固定候補は、入力文字列バッファ1026の内容と対応(前方一致)する限り、常に優先して表示するようにしておき、「固定候補」以外の「可変候補」のみ順位を入れ替えて表示する。
(Operation when displaying fixed candidates with priority)
Next, processing when classifying prediction candidates into “fixed candidates” and “variable candidates” will be described. FIG. 9 is a diagram for explaining a case where “fixed candidates” are provided. Here, the “fixed candidate” refers to a prediction candidate that continues to be displayed with priority over the candidate window 1041 even if additional characters are input. In other words, fixed candidates are always displayed with priority as long as they correspond to the contents of the input character string buffer 1026 (forward match), and only “variable candidates” other than “fixed candidates” are displayed in a different order. .

例えば図9に示すように、例えば、「けんき」まで入力したときに、予測候補が表示されているとする(図9(a)参照)。表示候補の中で、「研究」という文字列が固定候補であるとする。ユーザが続けて文字を入力したとき、今回の予測候補の中に固定候補の文字列が含まれている場合は、固定候補の順位は変えず、可変候補のみ順位を変える(図9(b)参照)。具体的には、文字の追加入力により、表示を変更するときに、新たな予測候補のうち文字列表示履歴記憶部1029に格納されている候補でも、固定候補については、優先して上位に表示する。次に、文字列表示履歴記憶部1029に格納されていない候補を優先して表示する。   For example, as illustrated in FIG. 9, it is assumed that a prediction candidate is displayed when “Kenki” is input (see FIG. 9A). It is assumed that the character string “Research” is a fixed candidate among the display candidates. When the user continues to input characters, if the fixed candidate character string is included in the current prediction candidate, the order of the fixed candidates is not changed, and the order of only the variable candidates is changed (FIG. 9B). reference). Specifically, when the display is changed by additional input of characters, among candidates that are stored in the character string display history storage unit 1029 among the new prediction candidates, the fixed candidates are preferentially displayed at the top. To do. Next, candidates that are not stored in the character string display history storage unit 1029 are displayed with priority.

使用する可能性の高い候補を予測候補とすることによって、ユーザが表示された予測候補を見落として入力を続けてしまった場合でも候補が消えないようにすることができる。なお、固定候補の決定方法としては、単に予測候補の読みを五十音順に並べた場合、ある任意の順位までの候補を固定候補としてもよい。もっとも、候補ウィンドウ1041に表示可能な個数よりは少なくしておく必要がある。また、候補ウィンドウ1041に表示された予測候補の中で配列順位が1位の予測候補を自動的に固定候補としてもよい。即ち、文字が続けて入力された場合でも、前回の1位の候補が次回の予測候補にも含まれている場合には、前回1位の候補を今回も1位として優先して表示し、他の候補のみ可変候補として入れ替えるようにしてもよい。   By setting a candidate that is highly likely to be used as a prediction candidate, even if the user overlooks the displayed prediction candidate and continues to input, the candidate can be prevented from disappearing. As a method for determining fixed candidates, if the prediction candidates are simply arranged in the order of the Japanese syllabary, candidates up to a certain arbitrary rank may be set as fixed candidates. However, it is necessary to make the number smaller than the number that can be displayed in the candidate window 1041. In addition, among the prediction candidates displayed in the candidate window 1041, the prediction candidate having the first arrangement order may be automatically set as a fixed candidate. That is, even when characters are continuously input, if the previous first candidate is also included in the next prediction candidate, the previous first candidate is also displayed as the first priority, Only other candidates may be replaced as variable candidates.

また、固定候補の他の決定方法として、前記したように単語辞書の文字列毎に付与されたポイントを参照することが好適である。即ち、ポイントの順に配列順位を決定した場合、当該ポイントがある閾値以上となっている場合に当該文字列を固定候補とするようにしてもよい。この場合、予測処理部103は配列制御部102に予測候補となった文字列と共にポイントを渡す。順位順位決定部1024はポイントを参照して、固定候補かどうかを判定した上で配列順位を決定する。   As another method for determining the fixed candidate, it is preferable to refer to the points assigned to the character strings of the word dictionary as described above. That is, when the arrangement order is determined in the order of points, the character string may be set as a fixed candidate when the point is equal to or greater than a certain threshold. In this case, the prediction processing unit 103 passes the points to the arrangement control unit 102 together with the character string that is a prediction candidate. The rank order determination unit 1024 refers to the points and determines the sequence rank after determining whether or not the candidate is a fixed candidate.

ポイントは、過去に入力者が使用した文字列の頻度情報から決定してもよい。使用頻度の高い文字列はポイントを高くする。また、ポイントは、単語親密度から決定してもよい。「単語親密度」とは、単語のなじみの程度を表す親密度のことであり、NTTが作成したデータである。親密度が高いほど単語が使用される可能性が高いと考えられることから、親密度の高い単語を固定候補とし、入力者が固定候補を見逃して入力を続けてしまっても候補が消えないようにすることができる。   The points may be determined from frequency information of character strings used by the input person in the past. Highly used character strings increase points. The points may be determined from word familiarity. “Word familiarity” is a familiarity representing the degree of familiarity of words, and is data created by NTT. Since it is considered that the higher the intimacy, the more likely the word will be used, a word with a higher intimacy is made a fixed candidate so that the candidate will not disappear even if the input person misses the fixed candidate and continues to input Can be.

予測処理部103が、入力している文書における前後の文脈から入力文字列を予測し、各文字列が文中において選択される確からしさを確信度として出力する機能をもつ場合は、その確信度からポイントを決定してもよい。その場合には、ある閾値以上の確信度をもつ文字列を固定候補とすることができる。   When the prediction processing unit 103 has a function of predicting an input character string from the preceding and following contexts in the input document and outputting the certainty that each character string is selected in the sentence as a certainty factor, Points may be determined. In that case, a character string having a certainty factor equal to or higher than a certain threshold can be set as a fixed candidate.

固定候補は、常に固定候補である必要はなく、例えば一度表示されてから任意の文字入力数を超えたような場合には固定を解除するようにしてもよい。例えば固定候補の表示回数を2回までとした場合の例を、図9を参照して説明すると、固定候補であった「研究」が、入力文字列バッファ1026の内容が「けんき」の時(図9(a))、及び「けんきゅ」の時(図9(b)と、既に2回表示されているので、更に入力をつづけた場合は固定を解除し、表示候補から「研究」をはずす(図9(c)参照)。   The fixed candidates do not always need to be fixed candidates. For example, the fixed candidates may be released when the number of input characters exceeds an arbitrary number after being displayed once. For example, with reference to FIG. 9, an example in which the number of fixed candidates displayed is up to two will be described. When “Research” that is a fixed candidate is “Kenki” in the input character string buffer 1026 (Fig. 9 (a)) and "Kenkyu" (Fig. 9 (b), already displayed twice, so if you continue to input more, release the fixed, from the display candidate "Research" "Is removed (see FIG. 9C).

固定候補が表示された場合は、固定候補の表示回数をインクリメントし、例えば文字列表示履歴記憶部1029に併せて格納することもできる。配列順位決定部1024は、予測候補に固定候補が含まれる場合は、格納された固定候補の表示回数を参照し、最大表示回数以下ならば、固定候補として優先して上位にするようにしてもよい。表示回数が最大表示回数を超えている場合は、他の可変候補と同様に配列順位を最下位にすることもできる。このように固定候補の最大表示回数を利用することによって、たとえ固定候補であっても選択されないままずっと上位候補として表示されるのを防ぐことができる。   When a fixed candidate is displayed, the display number of the fixed candidate can be incremented and stored together with, for example, the character string display history storage unit 1029. The sequence order determination unit 1024 refers to the stored number of display times of the fixed candidate when the prediction candidate includes a fixed candidate. Good. When the number of times of display exceeds the maximum number of times of display, the arrangement order can be made the lowest as with other variable candidates. In this way, by using the maximum number of display times of fixed candidates, even if it is a fixed candidate, it can be prevented from being displayed as a higher candidate without being selected.

以上、図9を用いて説明した固定候補の処理は、本発明の文字列処理装置において必ずしもなくてはならない処理ではない。常に表示文字列履歴に格納されている候補以外を優先するようにしてもよい。   As described above, the fixed candidate processing described with reference to FIG. 9 is not necessarily required in the character string processing device of the present invention. Other than the candidates that are always stored in the display character string history, priority may be given.

(文字列処理装置の処理内容)
以下、本実施の形態における文字列処理装置の処理内容について、図10及び図11に示すフローチャートを参照しながら説明する。ここに示すフローチャートは、前記した本発明に係る文字列処理を実現する制御プログラムの処理内容と考えることもできる。まず入力文字列バッファ1026、文字列表示履歴既往部1029の内容(固定候補の表示回数を含む。)をクリアする等の初期化処理を行う(S101)。入力部101からの入力があれば(S102)、まず、入力判定部1021が文字の入力か否かを判定する(S103)。
(Processing contents of character string processing device)
Hereinafter, processing contents of the character string processing device according to the present embodiment will be described with reference to the flowcharts shown in FIGS. 10 and 11. The flowchart shown here can also be considered as the processing contents of the control program for realizing the character string processing according to the present invention. First, initialization processing such as clearing the contents of the input character string buffer 1026 and the character string display history past part 1029 (including the display number of fixed candidates) is performed (S101). If there is an input from the input unit 101 (S102), the input determination unit 1021 first determines whether or not it is a character input (S103).

文字入力であった場合(S103:YES)、入力された文字を入力文字列バッファ1026に追加し(S104)、予測処理部103を駆動して予測処理を行う(S105)。ここでは、予測処理部103から出力する際の予測候補の順番は特に指定しない。ポイント順でもよいし、五十音順でもよいし、文字列の長さの長い順、あるいは物理的に格納されている順番に出力してよい。前後の文脈からある文字列が入力される確からしさを算出した確信度を算出する機能が予測処理部103に含まれる場合は、確信度順に出力してもよい。なお、予測処理では、前述したように文字が追加入力されるたびに予測候補の数は減るので、再度単語辞書を参照した予測処理を行わずとも、文字が追加される前に抽出された予測候補の中からサブセットを抽出することにしてもよい。   When the input is a character input (S103: YES), the input character is added to the input character string buffer 1026 (S104), and the prediction processing unit 103 is driven to perform a prediction process (S105). Here, the order of the prediction candidates when outputting from the prediction processing unit 103 is not particularly specified. It may be output in the order of points, in the order of the Japanese syllabary, or in the order of the longest character string or in the physically stored order. When the prediction processing unit 103 includes a function for calculating a certainty factor for calculating a probability that a certain character string is input from the preceding and following contexts, the prediction processing unit 103 may output the certainty factor. In the prediction process, as described above, the number of prediction candidates decreases each time a character is additionally input. Therefore, the prediction extracted before the character is added without performing the prediction process referring to the word dictionary again. A subset may be extracted from the candidates.

表示部104がN個の予測候補を表示できるとすると、次に、配列された予測候補の上位N個に固定候補が存在するかどうかを判断する(S106)。固定候補が存在する場合は(S106:YES)、当該固定候補の表示回数が、予め設定されている最大値未満であるか否かを判断し(S107)、表示回数が最大値未満の固定候補が存在すれば(S107:YES)、当該固定候補を優先して表示するように配列順位を決定する(S108、S109)。   If the display unit 104 can display N prediction candidates, it is next determined whether or not there are fixed candidates in the top N prediction candidates arranged (S106). If there is a fixed candidate (S106: YES), it is determined whether or not the number of times the fixed candidate is displayed is less than a preset maximum value (S107), and the fixed candidate whose number of display is less than the maximum value. Is present (S107: YES), the arrangement order is determined so that the fixed candidate is displayed with priority (S108, S109).

なお、図示は省略するが、ステップS105の予測処理の後で、文字列表示履歴記憶部1029に表示された文字列の情報が格納されているかどうかを判定するようにしてもよい。ここで文字列表示履歴記憶部1029に文字列が格納されていないということは、入力が一文字目ということを意味する。例えば固定候補をポイントに基づいてではなく、他の方法で決定しているような場合、一文字目の入力の際には固定候補が不明の状態にあるため、上記の判定を行い、文字列表示履歴記憶部1029に文字列が格納されていない場合は、予測処理部103から送られてきた順番に従い、特に予測候補の順位は変更しないようにすることもできる。もっとも、一文字目の入力の際からポイントに基づいて配列順序を決定するような場合には、ここでの上記判定は必ずしも行う必要はない。   Although illustration is omitted, it may be determined whether or not the character string information displayed in the character string display history storage unit 1029 is stored after the prediction process in step S105. Here, that no character string is stored in the character string display history storage unit 1029 means that the input is the first character. For example, if the fixed candidate is determined by another method instead of based on the point, the fixed candidate is in an unknown state when the first character is input. When the character string is not stored in the history storage unit 1029, the order of the prediction candidates may not be changed according to the order sent from the prediction processing unit 103. However, in the case where the arrangement order is determined based on the points from the input of the first character, the above determination is not necessarily performed here.

なお、ステップS107で、固定候補の表示回数が設定された表示回数の最大値以上であった場合(S107:NO)、当該固定候補について固定候補状態を解除し、配列順序が最後になるように設定する(S110)。従って、以後は他の可変候補と同様に取り扱われることとなるが、可変候補の配列(S109)の際には、配列順序が最後となる。   In step S107, if the fixed candidate display count is greater than or equal to the set maximum display count (S107: NO), the fixed candidate state is canceled for the fixed candidate so that the arrangement order is last. Set (S110). Therefore, after that, it will be handled in the same way as other variable candidates, but in the case of variable candidate arrangement (S109), the arrangement order is the last.

固定候補及び可変候補の両方の配列が終わると、表示部104への表示指示がなされ(S111)、これに基づいて表示部104に予測候補の表示がされるとともに、配列順位決定部1024から実際に表示した予測候補についての情報を受信した表示履歴管理部1025は、文字列表示履歴記憶部1029の内容を更新する(S112)。より具体的には、表示された固定候補の表示回数をインクリメントし、表示された予測候補を文字列表示履歴記憶部1029に格納する。以上の処理を終了するとステップS102へと戻ってユーザからの入力待ち状態となる。   When both the fixed candidate and variable candidate sequences are completed, a display instruction is given to the display unit 104 (S111). Based on this, a prediction candidate is displayed on the display unit 104, and the sequence ranking determining unit 1024 actually displays the prediction candidate. The display history management unit 1025 that has received the information about the prediction candidates displayed in the step updates the contents of the character string display history storage unit 1029 (S112). More specifically, the display number of the displayed fixed candidate is incremented, and the displayed prediction candidate is stored in the character string display history storage unit 1029. When the above processing is completed, the process returns to step S102 and waits for input from the user.

ステップS103にて、ユーザからの入力が文字入力でない場合は(S103:NO)、入力が文字列確定の指示であるか否かを判断する(S113)。文字列確定を指示する入力である場合は(S113:YES)、確定処理を行う(S114)。   In step S103, if the input from the user is not a character input (S103: NO), it is determined whether or not the input is an instruction to determine a character string (S113). If the input is an instruction to confirm the character string (S113: YES), a confirmation process is performed (S114).

文字列確定を指示する入力でない場合には(S113:NO)、図11へと移行して、文字を削除する入力であるか否かを判断する(S115)。文字削除でない場合は、次候補の表示を指示する入力であると判断し(S115:NO)、文字列表示履歴記憶部1029の内容を参照する(S116)。配列後予測候補格納部1028に格納された内容及び文字列表示履歴記憶部1029に記憶された表示済み文字列の内容から、次回に表示する予測候補を抽出することができるので(S117)、予測候補を抽出してステップS106へと戻る。以後、現在表示されている予測候補及び抽出された次回表示すべき予測候補の中に固定候補が存在するか否かを判定し(S106)、ステップS111までの処理を行うことにより、固定候補、及び現在表示されている候補の次候補以下が表示される。なお、ステップS109の可変候補の配列決定では、文字列表示履歴記憶部1029に記憶されていない文字列が優先して配列され、表示済みの文字列については配列順位を後にする処理を行う。今回の表示指示(S111)で表示された予測候補は文字列表示履歴記憶部1029に格納され、さらに固定候補が存在する場合は、その固定候補の表示回数がインクリメントされる(S112)。   If the input is not an instruction to confirm the character string (S113: NO), the process proceeds to FIG. 11 to determine whether the input is for deleting a character (S115). If the character is not deleted, it is determined that the input is an instruction to display the next candidate (S115: NO), and the contents of the character string display history storage unit 1029 are referred to (S116). A prediction candidate to be displayed next time can be extracted from the content stored in the post-sequence prediction candidate storage unit 1028 and the content of the displayed character string stored in the character string display history storage unit 1029 (S117). A candidate is extracted and it returns to step S106. Thereafter, it is determined whether there is a fixed candidate in the currently displayed prediction candidate and the extracted prediction candidate to be displayed next time (S106), and by performing the process up to step S111, the fixed candidate, And the next candidate or less of the currently displayed candidates are displayed. Note that, in the variable candidate arrangement determination in step S109, the character strings that are not stored in the character string display history storage unit 1029 are arranged with priority, and the displayed character strings are subjected to processing for moving the arrangement order backward. The prediction candidate displayed by the current display instruction (S111) is stored in the character string display history storage unit 1029. If there is a fixed candidate, the number of times that the fixed candidate is displayed is incremented (S112).

図11のフローチャートのステップS115で文字削除と判定された場合は(S115:YES)、入力文字列バッファ1026から一文字削除する(S118)、ここでは、新たな文字列で再度予測処理を行う(S119)。予測の結果新たな予測候補が得られるが、得られた予測候補の中で列表示履歴記憶部1029の中に文字列バッファと読みが一致する候補が存在するかどうかを判断し(S120)、存在しない場合は、ステップS106へと進む。ステップS120で文字列表示履歴記憶部1029に、入力文字列バッファ1026と読みが一致する文字列が存在する場合は(S120:YES)、当該読みが一致する候補を優先して表示するように上位に配列し(S121)、ステップS106へと進む。   If it is determined in step S115 in the flowchart of FIG. 11 that the character is to be deleted (S115: YES), one character is deleted from the input character string buffer 1026 (S118). Here, the prediction process is performed again with a new character string (S119). ). As a result of the prediction, a new prediction candidate is obtained. In the obtained prediction candidates, it is determined whether there is a candidate whose reading matches the character string buffer in the column display history storage unit 1029 (S120). If not, the process proceeds to step S106. In step S120, if there is a character string whose reading matches the input character string buffer 1026 in the character string display history storage unit 1029 (S120: YES), a higher priority is given so that the candidate with the matching reading is displayed with priority. (S121), the process proceeds to step S106.

なお、詳細な説明は省略したが、文字列が確定した場合等には、随時単語辞書中のポイントを更新する処理を行ってもよい。即ち、実際に入力された文字列についてはポイントを高くすることによって以後の予測の際に優先的に表示される可能性を高くしたり、固定候補とされる可能性を高めたりすることができる。ポイントの付与の方法、付与されたポイントの利用方法は任意であり、種々考えられるし、それらに応じて更新の方法、タイミング等も最適化することができる。もっとも、本発明の実施にポイントが必須というわけではないことも既述の通りである。   Although detailed explanation is omitted, when a character string is fixed, a process of updating points in the word dictionary may be performed as needed. That is, it is possible to increase the possibility that a character string that is actually input is preferentially displayed in the subsequent prediction by increasing the points, or to increase the possibility of being a fixed candidate. . The method of giving points and the method of using the given points are arbitrary, and various methods can be conceived, and the updating method, timing, etc. can be optimized accordingly. However, as described above, points are not essential for the implementation of the present invention.

本発明の目的は、以上に説明した文字列処理手順を実現するソフトウェアである文字列処理プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラムのいずれでもかまわない。)をコンピュータで読み取り可能に記録した記録媒体200を、上記文字列処理装置に供給し、そのコンピュータが記録媒体200に記録されているプログラムコードを読み出し実行することによっても、達成することが可能である。この場合、記録媒体200から読み出されたプログラムコード自体が上述した手順を実現することになり、当該プログラム、乃至当該プログラムを記録した記録媒体は本発明を構成することになる。図12は記録媒体200の内容の一例をあくまで模式的に表現したものであり、記録媒体200へのプログラムコードの記録内容、記録形式等については同図に表現されたものにより何ら限定を受けない。例えば予測処理部の処理を実現するプログラムコードは必ずしも記録媒体200に記録する必要はなく、他の予測処理プログラムを利用するようにしてもよい。   An object of the present invention is to allow a computer to read program codes of a character string processing program (which may be any of an executable program, an intermediate code program, or a source program) that is software for realizing the character string processing procedure described above. This can also be achieved by supplying the recording medium 200 recorded in (1) to the character string processing apparatus and reading and executing the program code recorded on the recording medium 200 by the computer. In this case, the program code itself read from the recording medium 200 realizes the above-described procedure, and the program or the recording medium on which the program is recorded constitutes the present invention. FIG. 12 is a schematic representation of an example of the contents of the recording medium 200, and the recording contents, recording format, etc. of the program code on the recording medium 200 are not limited by what is represented in the figure. . For example, the program code for realizing the processing of the prediction processing unit does not necessarily need to be recorded in the recording medium 200, and another prediction processing program may be used.

なお、上記プログラムメディアとしての記録媒体200は、当該記録媒体からソフトウェアを読み取ることが可能な装置本体とは分離可能に構成される記録媒体であり、具体的には、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM、EEPROM、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する媒体など、いずれであってもよい。なお、プログラムは必ずしも記録媒体200に記録されて譲渡等されるわけでもなく、インターネット等のネットワーク等、有線、無線の伝送媒体を介してユーザが保有する情報処理装置に供給される場合もある。   The recording medium 200 as the program medium is a recording medium configured to be separable from the apparatus main body that can read software from the recording medium. Specifically, the recording medium 200 is a magnetic tape, a cassette tape, or the like. Tape systems, magnetic disks such as flexible disks and hard disks, optical disk systems such as CD-ROM / MO / MD / DVD, card systems such as IC cards (including memory cards) / optical cards, mask ROM, EPROM, It may be any medium such as a medium that carries a fixed program including a semiconductor memory such as an EEPROM or a flash ROM. The program is not necessarily recorded on the recording medium 200 and transferred, but may be supplied to an information processing apparatus owned by the user via a wired or wireless transmission medium such as a network such as the Internet.

(実施の形態2)
上記実施例で示した文字列処理方法は、携帯電話などのようなテンキーによる文字入力や、パソコンなどのようなキーボードによる文字入力において使用することができ、またテレビやATMなどの文字入力が必要な機器全てにおいて使用することができる。以下、本発明の第2の実施の形態として、携帯電話などのようなテンキーによる文字入力において、本発明を適用した場合について説明する。図13は、本実施の形態で用いる携帯電話機300の外観を模式的に示す図である。
(Embodiment 2)
The character string processing method shown in the above embodiment can be used for character input using a numeric keypad such as a mobile phone or character input using a keyboard such as a personal computer, and character input such as a TV or ATM is required. Can be used in all devices. Hereinafter, as a second embodiment of the present invention, a case where the present invention is applied to character input using a numeric keypad such as a cellular phone will be described. FIG. 13 is a diagram schematically showing the appearance of the mobile phone 300 used in the present embodiment.

テンキー330による文字入力の場合、0から9の数字キーにそれぞれ五十音表の「あ行」、「か行」・・・が順次割り当てられ、同一の数字キーを連続して押下することによって、「あ」の段、「い」の段と指定し文字を入力する。例えば、図13に示されるように「1」のキーに「あ行」が割り当てられているときに、「う」を入力したい場合は、「1」のキーを3回連続して押下することで「う」を入力することができる。また、複数文字連続して同じ行の文字を入力する場合は、一文字目を入力した後、二文字目を入力する前に、カーソルキー320を操作し、表示画面310に表示されるカーソル位置を一文字分ずらしてから入力する。   In the case of character input using the numeric keypad 330, “0 line”, “ka line”,... In the alphabetical table are sequentially assigned to the numeric keys 0 to 9, respectively, and the same numeric key is pressed continuously. , “A” row, “I” row is designated and characters are input. For example, as shown in FIG. 13, when “A” is assigned to the “1” key and you want to input “U”, press the “1” key three times in succession. You can enter "u" with. In addition, when inputting a plurality of consecutive characters on the same line, after the first character is input and before the second character is input, the cursor key 320 is operated to change the cursor position displayed on the display screen 310. Enter after shifting by one character.

テンキー330による文字入力の場合、続けて同一の数字キーを押下することによって入力される文字が変わるので、ある文字Aが確定するタイミングは、文字Aの後に、上記カーソルキー320によりカーソル位置をずらす操作がなされた場合と、別の数字キー(あるいは記号キー)が押下された場合とがあり、本実施の形態では、当該入力文字の確定のタイミングで予測処理を実行する。例えば、「1」のキーを一度押して「あ」を入力し、次に「2」のキーを押したときに、直前に入力した「あ」の入力が確定する。また、「あ」の入力の後、カーソルを進めるためにカーソルキー320の操作がされた場合も「あ」の入力が確定する。   In the case of character input using the numeric key 330, the input character is changed by continuously pressing the same numeric key. Therefore, when a certain character A is confirmed, the cursor position is shifted by the cursor key 320 after the character A. There are a case where an operation is performed and a case where another numeric key (or symbol key) is pressed. In the present embodiment, the prediction process is executed at the timing of determining the input character. For example, when the “1” key is pressed once to input “A” and then the “2” key is pressed, the input of “A” input immediately before is confirmed. In addition, when the cursor key 320 is operated to advance the cursor after the input of “A”, the input of “A” is confirmed.

しかし、この場合、上記のように別の数字のキーが押下されたこと、あるいはカーソルキー320の操作があったことにより、文字Aの次の文字が示唆されているということができる。即ち、文字「あ」の次に別の数字のキーが押下されたのであれば、二文字目は「あ行」の文字ではないことがわかるし、逆にカーソルキー320によりカーソルを進める操作がなされたのであれば、次の文字も「あ行」であるという推測が成り立つ。係る点に着目して、本実施の形態では、入力された文字が確定する前でも、次に入力される文字を示唆する操作の段階で、示唆された状況に基づいて予測候補のサブセットを抽出し、表示される候補を切り替える。なお、図13の例では、予測候補は、表示部310(例えば小型液晶ディスプレイ)の一部である候補ウィンドウ312の部分に表示されるものとし、ウィンドウ311の部分に入力される文字列が表示されるものとする。   However, in this case, it can be said that the next character after the character A is suggested by pressing another numeric key as described above or by operating the cursor key 320. That is, if another numeric key is pressed after the character “A”, it can be understood that the second character is not the character “A”, and the cursor key 320 can be used to advance the cursor. If so, the guess is that the next character is also “A line”. Focusing on this point, this embodiment extracts a subset of prediction candidates based on the suggested situation at the stage of the operation that suggests the next input character even before the input character is confirmed. And switch the displayed candidates. In the example of FIG. 13, the prediction candidate is displayed in the candidate window 312 that is a part of the display unit 310 (for example, a small liquid crystal display), and the character string input in the window 311 is displayed. Shall be.

図13の例では、現時点で、「今日は、」の部分が確定しており、次に、テンキー330の中の「2」のキーが一度押下されることにより、文字「か」が入力された状態にある。この時点では、文字列「か」に基づく予測処理が実行され、文字列(課、科、下位、・・・)が予測候補として表示されている。表示されている予測候補の中に所望の文字列がなく、次に「く」を入力したい場合、同じ「か行」の文字であるから、「か」の位置にあるカーソルの位置を移動させる必要がある。このとき、カーソルキー320を操作して、カーソル位置をずらした時点で、表示されている予測候補とは別の候補を表示する。   In the example of FIG. 13, the “Today is” portion is determined at the present time, and then the character “ka” is input by pressing the “2” key in the numeric keypad 330 once. It is in the state. At this time, the prediction process based on the character string “ka” is executed, and the character string (section, department, subordinate,...) Is displayed as a prediction candidate. If there is no desired character string in the displayed prediction candidates and you want to input "ku" next time, it is the same "ka" character, so move the cursor at the "ka" position. There is a need. At this time, when the cursor key 320 is operated to shift the cursor position, a candidate different from the displayed prediction candidate is displayed.

前記のように、次の文字を入力した時点ではなく、カーソル位置をずらした時点で、表示された予測候補の中にユーザの目的の文字列がないことが推測されることから、別の候補を表示することによって入力者の目に付きやすくし、選択しやすくする。従って、文字入力数の少ないうちに、より効果的な入力支援を行うことが可能である。   As described above, it is estimated that the target character string of the user does not exist in the displayed prediction candidates when the cursor position is shifted instead of when the next character is input. To make it easier for the input person to see and select. Therefore, more effective input support can be performed while the number of character inputs is small.

また、カーソルキー320を押した後に入力する文字は、前入力文字と同じ行の文字を入力することが予測されることから、前入力文字が入力された時点での予測候補の中から、次の文字が前入力文字と同じ行の文字である候補を抽出して、予測候補として表示する。   In addition, since it is predicted that the character to be input after the cursor key 320 is pressed is the same line as the previous input character, the next input from the prediction candidates at the time when the previous input character is input is used. Candidates whose characters are on the same line as the previous input character are extracted and displayed as prediction candidates.

図14は、この場合に表示される予測候補の例を示す図である。図14(a)の例の場合、「か」を入力し、次にカーソルキー320を押してカーソルを進めた場合、「か」を入力した時点での予測候補の中から次の文字も「か行」である候補を抽出する。新たに抽出した候補の中で前回表示されなかった候補を優先して表示する。一方、カーソルキー320ではなく、別の数字キーが押下された場合は、その数字キーの行(図14(b)の例の如く、「1」のキーが押下された場合は「あ行」)の文字が次に入力されることが推測されることから、前入力文字が入力された時点での予測候補の中から、次の文字が当該別の数字キーの行の文字である候補を抽出して、予測候補として表示する。図14(b)の場合、「か」を入力し、次に「1」のキーを押した場合、「か」を入力した時点での予測候補の中から次の文字が「あ行」である候補を抽出する。新たに抽出した候補の中で前回表示されなかった候補が優先して表示される。   FIG. 14 is a diagram illustrating an example of prediction candidates displayed in this case. In the case of the example of FIG. 14A, when “ka” is input and the cursor is advanced by pressing the cursor key 320 next, the next character from among the prediction candidates when the “ka” is input is also “ka”. Candidates that are “rows” are extracted. Among the newly extracted candidates, the candidates that were not previously displayed are displayed with priority. On the other hand, when another numeric key is pressed instead of the cursor key 320, the row of the numeric key ("A row" when the key "1" is pressed as in the example of FIG. 14B). ) Is estimated to be input next, so the next character is a candidate for the character in the row of the other numeric key from the prediction candidates when the previous input character is input. Extract and display as prediction candidates. In the case of FIG. 14B, when “ka” is input and then the key “1” is pressed, the next character is “a line” from the prediction candidates when “ka” is input. A candidate is extracted. Among the newly extracted candidates, candidates that were not displayed last time are displayed with priority.

以上、新たに追加して入力された文字が確定した時点ではなく、次の文字がどのような文字であるかが示唆された時点で、当該示唆の結果に基づいて候補を抽出、表示することによってユーザに予測候補を選択しやすくする。且つ、より文字入力数(キーの押下回数)の少ない時点での効果的な入力支援を行うことが可能となる。   As described above, not when the newly added character is confirmed but when the next character is suggested, candidates are extracted and displayed based on the result of the suggestion. Makes it easier for the user to select prediction candidates. In addition, it is possible to provide effective input support when the number of character inputs (number of key presses) is smaller.

(文字入力方法がローマ字入力である場合の動作)
次に文字入力がローマ字入力の場合において、本発明を適用した場合の動作を説明する。
(Operation when the character input method is romaji input)
Next, the operation when the present invention is applied when the character input is a Roman character input will be described.

ローマ字入力の場合、「k」+「a」のように子音と母音との二つのキー入力で「か」の文字が確定される。母音が入力される前でも子音が入力されることによって、例えば「か行」の文字が入力されることが示唆されると考えられる。従って、抽出された予測候補の中から、次の文字が「か行」である予測候補をより迅速に抽出することができる。新たに抽出した予測候補の中で前回表示されなかった予測候補を優先して表示する。   In the case of romaji input, the character “ka” is determined by two key inputs of consonant and vowel, such as “k” + “a”. It is considered that the consonant is input even before the vowel is input, for example, it is suggested that the character “ka line” is input. Therefore, a prediction candidate whose next character is “ka line” can be extracted more quickly from the extracted prediction candidates. Among the newly extracted prediction candidates, the prediction candidate that was not displayed last time is displayed with priority.

(処理フロー)
以下、本実施の形態の文字処理装置の具体的な処理内容について、図15に示すフローチャートを参照しながら以下に説明する。同図に示すフローチャートは第1の実施の形態で説明した図10及び図11のフローチャートにおいて、本実施の形態で異なる部分の処理を示すものである。
(Processing flow)
Hereinafter, specific processing contents of the character processing apparatus according to the present embodiment will be described with reference to the flowchart shown in FIG. The flowchart shown in the figure shows the processing of parts different from the flowcharts of FIGS. 10 and 11 described in the first embodiment.

図10のステップS102で何らかの入力があったことが検出された場合、図15のフローチャートに移行し、ステップS201で、確定入力であるか否かを判定する。
ここでいう「確定入力」とは、ステップS113の確定指示入力(入力すべき文字列を確定させる指示入力)とは異なり、入力文字列に文字を追加する入力や、次の文字がどの行かを示唆するような入力を意味し、候補ウィンドウの表示を変更することが好ましい場合が生じ得る入力をいう。例えば携帯電話機のようなテンキー入力において、同一の数字キーを押下している間は、例えば「あ、い、う、え・・」のように順次文字が変わっていくが、この場合における同一キーの押下は確定入力ではない。次の文字を入力すべく他の数字キーを押したり、カーソルキーの操作でカーソルを進めたりした場合に当該入力を確定入力として取り扱う。一方、キーボードなどを用いた入力では、子音、母音のいずれであっても、キーが押された時点で確定入力として取り扱う。
If it is detected in step S102 in FIG. 10 that there is any input, the process proceeds to the flowchart in FIG. 15, and it is determined in step S201 whether the input is a definite input.
The “determined input” here is different from the confirmation instruction input in step S113 (instruction input for confirming the character string to be input), an input for adding a character to the input character string, and which line is the next character. It means an input that suggests, and an input that may occur when it is preferable to change the display of the candidate window. For example, when inputting the same numeric key in a numeric keypad input such as a mobile phone, the characters change sequentially, for example, “A, I, U, E ...”. In this case, the same key Pressing is not a confirmed input. When another numeric key is pressed to input the next character or the cursor is advanced by the operation of the cursor key, the input is handled as a confirmed input. On the other hand, in the input using a keyboard or the like, either a consonant or a vowel is handled as a definite input when the key is pressed.

確定入力があった場合(S201:YES)、まず入力が、子音の入力であったか否かを判定する(S202)。子音の入力は次に入力される文字がどの行かを示唆するものであるから、予測処理を行って予測候補の修正処理を行うことがユーザへの入力支援の観点から好ましい。従って、予測処理を行うが、この場合、対応する行の文字(子音「k」の入力であれば、か行の「か」から「こ」)のいずれかが文字列に追加されたものとして、順次予測処理を行う(S205)。このように示唆された行の文字について順次予測を行うのは、テンキー入力の場合においてカーソルキーの操作があった場合(同じ行の文字の入力が示唆される)も同様である(S203:YES)。さらに、テンキー入力の場合において、他の数字のキーの入力があった場合(S204:YES)も、やはり次の文字がどの行の文字かを示唆するものであるので、同様にステップS205へと進む。   When there is a definite input (S201: YES), it is first determined whether or not the input is a consonant input (S202). Since the input of the consonant suggests which line the character to be input next is, it is preferable from the viewpoint of input support to the user that the prediction process is performed and the prediction candidate is corrected. Therefore, a prediction process is performed. In this case, it is assumed that one of the characters in the corresponding line (if the consonant “k” is input, “ka” to “ko” in the line) is added to the character string. Then, sequential prediction processing is performed (S205). The prediction of the characters on the suggested line is performed in the same manner when the cursor key is operated in the case of the numeric keypad input (the input of the character on the same line is suggested) (S203: YES). ). Further, in the case of the numeric keypad input, when another numeric key is input (S204: YES), it also suggests which line the next character is, so that the process proceeds to step S205. move on.

以上のように、示唆された行の各文字について順次予測処理(S205)が行われた後は、図10のステップ106へと戻って、第1の実施の形態と同様の処理を行う。即ち、固定候補があれば原則として優先して表示するし、可変候補の表示に際しては、それまでに表示されていない予測候補を優先して表示するように制御を行う。   As described above, after the sequential prediction process (S205) is performed for each character in the suggested line, the process returns to step 106 in FIG. 10 and the same process as in the first embodiment is performed. That is, if there is a fixed candidate, in principle, it is displayed with priority, and when displaying a variable candidate, control is performed so that a prediction candidate that has not been displayed so far is displayed with priority.

なお、図15のステップS204において数字キーの入力以外であった場合(S204:NO)は、母音の入力があったものとして処理を進める。即ち、これは図10のフローチャートのステップS103において文字入力がなされた場合と同様に考えることができるから、ステップS104へと移行し、入力文字列バッファ1026への文字の格納、予測処理(S105)へと進む。   In step S204 in FIG. 15, if the input is other than numeric key input (S204: NO), the process proceeds as if there was an input of a vowel. That is, this can be considered in the same way as when a character is input in step S103 of the flowchart of FIG. 10, so that the process proceeds to step S104 to store and predict a character in the input character string buffer 1026 (S105). Proceed to

もっとも、ステップS205の順次予測処理でも入力文字列バッファ1026は利用される。即ち、現在の入力文字列バッファ1026に格納されている文字が「あ」で、現時点で入力された、他の数字のキー(S204:YESの場合)が「か行」を示唆する「2」のキーである場合、入力文字列バッファ1026の内容を、「あか」、「あき」、「あく」、「あけ」、「あこ」と5種類作成して順次予測処理を行う。また、現在の入力文字列バッファ1026に格納されている文字が「あ」で、カーソルキーが操作された場合(S203:YES)の場合には、入力文字列バッファ1026の内容を、「ああ」、「あい」、「あう」、「あえ」、「あお」と5種類作成して順次予測処理を行う。   However, the input character string buffer 1026 is also used in the sequential prediction process in step S205. In other words, the character currently stored in the input character string buffer 1026 is “A”, and another numeric key (in the case of S204: YES) input at the present time indicates “K”, “2”. In the case of the key, the contents of the input character string buffer 1026 are created as “Aka”, “Aki”, “Aku”, “Ake”, and “Ako”, and the prediction process is sequentially performed. If the character stored in the current input character string buffer 1026 is “A” and the cursor key is operated (S203: YES), the contents of the input character string buffer 1026 are changed to “Oh”. , “Ai”, “Au”, “Ae”, “Ao” are created, and the prediction process is sequentially performed.

子音入力の場合(S202:YESの場合)も同様であり、現在の入力文字列バッファ1026に格納されている文字が「あ」で、現時点の入力が子音「k」である場合、入力文字列バッファ1026の内容を「あか」、「あき」、「あく」、「あけ」、「あこ」と5種類作成して順次予測を行う。なお、予測処理の後で、特に携帯電話機のように表示スペースが小さい場合や、予測候補の数が多い場合、使用頻度等を表すポイントが所定値以上のもののみを抽出するような処理を加えてもよい。   The same applies to the case of consonant input (S202: YES). When the character stored in the current input character string buffer 1026 is “A” and the current input is the consonant “k”, the input character string Five types of contents of the buffer 1026, “Aka”, “Aki”, “Aku”, “Ake”, “Ako”, are created and prediction is performed sequentially. In addition, after the prediction process, especially when the display space is small, such as a mobile phone, or when the number of prediction candidates is large, a process for extracting only points that indicate the usage frequency etc. is a predetermined value or more is added. May be.

なお、S201において、確定入力以外の入力がされた場合、そのまま入力がなく(S207:NO)所定時間が経過した後には、タイムオーバーとして(S206:YES)、確定入力として取り扱い処理を進めることも可能ではある。特にテンキー入力の場合、例えば「1」のキーが3回押されて「う」の文字が表示された状態で所定時間入力がない場合、「う」の文字で確定したものとして処理を進めることができる。もっともこのタイムオーバー判定処理は必須ではない。   In S201, when an input other than the confirmed input is made, there is no input as it is (S207: NO), and after a predetermined time has elapsed, it is possible that the time is over (S206: YES) and the handling process can proceed as a confirmed input. It is. In particular, in the case of numeric keypad input, for example, when the key “1” is pressed three times and the character “U” is displayed and there is no input for a predetermined period of time, the process proceeds as if it has been confirmed with the character “U”. Can do. However, this time-over determination process is not essential.

(変形例)
以上、本発明をいくつかの実施の形態に基づいて説明したが、本発明の範囲が上記に説明した具体例に限定されないことは勿論であり、例えば以下のような変形例を考えることもできる。
(Modification)
As mentioned above, although this invention was demonstrated based on some embodiment, of course, the scope of the present invention is not limited to the specific example demonstrated above, for example, the following modifications can also be considered, for example. .

(1) 上記に説明したような本発明に係る文字列処理装置は、必ずしも表示手段を含まない場合でも適用することが可能である。即ち、配列制御部102により決定された配列順位に従って予測候補を出力する出力手段を備えておき、当該出力手段から例えばインターネット等のネットワークを介して予測候補を出力する。当該予測候補を受信した装置側に、送信された情報を受信する受信部、表示処理部、及び表示部を備えておけば、本発明の文字列処理装置を複数ユーザで共用することもできる。なお、出力手段はネットワークを介して出力するものに限らず、専用のコードを介して、例えば家庭用のテレビジョンセット、汎用のプリンタ、FAX装置、プロジェクタなど種々の装置に対して出力することができる。   (1) The character string processing apparatus according to the present invention as described above can be applied even when the display means is not necessarily included. In other words, output means for outputting prediction candidates according to the arrangement order determined by the arrangement control unit 102 is provided, and the prediction candidates are output from the output means via a network such as the Internet. If the device that has received the prediction candidate includes a receiving unit that receives transmitted information, a display processing unit, and a display unit, the character string processing device of the present invention can be shared by a plurality of users. The output means is not limited to output via a network, but can be output to various devices such as a home television set, a general-purpose printer, a FAX device, and a projector via a dedicated code. it can.

(2) 上記実施の形態では、ローマ字入力の例として、子音+母音の二回の入力で一文字を表す場合について説明したが、三回の入力(例えば「n」+「y」+「a」で「にゃ」)で文字を入力する場合もある。そのような場合にも本発明を適用することが可能であることは勿論である。即ち、「n」と「y」が入力された時点で「にゃ」、「にゅ」、「にょ」が入力された場合の予測候補を抽出するようにすればよい。   (2) In the above embodiment, as an example of Romaji input, a case has been described where one character is represented by two inputs of consonant + vowel, but three inputs (for example, “n” + “y” + “a” In some cases, the characters may be entered with "Nya"). Of course, the present invention can also be applied to such a case. That is, it is only necessary to extract prediction candidates when “Nya”, “Nyu”, and “Nyo” are input when “n” and “y” are input.

(3) 上記の携帯電話機の例では、入力装置としてテンキーを用い「1」のキーの「あ行」の文字などが割り当てられた場合について説明したが、キーの種類や割り当て方法がこれに限定されないことも勿論である。例えば「1」のキーが「あ段(あ、か、さ、た、な・・)」、「5」のキーが「う段(う、く、す、つ、ぬ・・)」などというようにかな文字を複数系列に分割し、所定のキーが割り振られた場合も、本発明を適用することは容易である。また、上記のようにカーソルを移動させるのもカーソルキーに限定されず、他のキーでも構わないし、要するに動作が異なることで判別可能であればよいのであるから、例えば同一のキーを短時間に二度押下する動作(ダブルクリックに相当するような動作)でカーソルを移動するような場合も考えられる。   (3) In the example of the mobile phone described above, a case has been described in which the numeric keypad is used as the input device and the character “A” of the “1” key is assigned. However, the type of key and the assignment method are limited to this. Of course, it is not done. For example, the “1” key is “Adan”, the “5” key is “Udan”, etc. As described above, the present invention can be easily applied even when a kana character is divided into a plurality of lines and a predetermined key is assigned. In addition, moving the cursor as described above is not limited to the cursor key, and other keys may be used. In short, it is only necessary to be able to discriminate by different operations. A case where the cursor is moved by an operation of pressing twice (an operation corresponding to a double click) is also conceivable.

(4) 上記実施の形態では入力装置としてキー入力の入力デバイスを用いた場合について説明したが、音声入力の場合に適用することも可能である。
本発明は、例えばパーソナルコンピュータやワードプロセッサのように、入力デバイスから文字列を入力する装置に適用することができる。
(4) Although the case where a key input device is used as the input device has been described in the above embodiment, the present invention can also be applied to the case of voice input.
The present invention can be applied to an apparatus for inputting a character string from an input device such as a personal computer or a word processor.

本発明の第1の実施の形態の文字列処理装置の一適用例としてのワードプロセッサの構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the word processor as an application example of the character string processing apparatus of the 1st Embodiment of this invention. 単語辞書格納部1031に格納される単語辞書の内容の一例を示す図である。It is a figure which shows an example of the content of the word dictionary stored in the word dictionary storage part 1031. FIG. 予測候補格納部1027の内容の一例を示す図である。It is a figure which shows an example of the content of the prediction candidate storage part 1027. 配列後予測候補格納部1028の内容の一例を示す図である。It is a figure which shows an example of the content of the post-sequence prediction candidate storage part 1028. 配列順位の決定について説明するための図である。It is a figure for demonstrating determination of arrangement | sequence order. 配列後予測候補格納部1028及び文字列表示履歴記憶部1029の内容について説明するための図である。It is a figure for demonstrating the content of the post-sequence prediction candidate storage part 1028 and the character string display log | history memory | storage part 1029. FIG. 一旦入力した文字を削除した場合の処理の例について説明するための図である。It is a figure for demonstrating the example of a process when the character once input is deleted. とりあえず入力された文字列の途中までの変換を行うことを可能とする場合について説明するための図である。It is a figure for demonstrating the case where conversion to the middle of the input character string is enabled for the time being. 「固定候補」を設ける場合について説明するための図である。It is a figure for demonstrating the case where "fixed candidate" is provided. 第1の実施の形態における文字列処理装置の処理内容について説明するためのフローチャートである。It is a flowchart for demonstrating the processing content of the character string processing apparatus in 1st Embodiment. 第1の実施の形態における文字列処理装置の処理内容について説明するためのフローチャートである。It is a flowchart for demonstrating the processing content of the character string processing apparatus in 1st Embodiment. 本発明に係るプログラムを記録した記録媒体200の内容の一例をあくまで模式的に表現した図である。It is the figure which represented typically an example of the content of the recording medium 200 which recorded the program which concerns on this invention to the last. 本発明の第2の実施の形態で用いる携帯電話機300の外観を模式的に示す図である。It is a figure which shows typically the external appearance of the mobile telephone 300 used in the 2nd Embodiment of this invention. 第2の実施の形態で表示される予測候補の例を示す図である。It is a figure which shows the example of the prediction candidate displayed in 2nd Embodiment. 第2の実施の形態における文字列処理装置の処理内容について説明するためのフローチャートである。It is a flowchart for demonstrating the processing content of the character string processing apparatus in 2nd Embodiment.

符号の説明Explanation of symbols

101 入力部
102 配列制御部
1021 入力判定部
1022 文字列バッファ制御部
1023 予測処理制御部
1024 配列順位決定部
1025 表示履歴管理部
1026 入力文字列バッファ
1027 予測候補格納部
1028 配列後予測候補格納部
1029 文字列表示履歴記憶部
103 予測処理部
1031 単語辞書格納部
104 表示部
1041 候補ウィンドウ
200 記録媒体
300 携帯電話機
320 カーソルキー
330 テンキー
DESCRIPTION OF SYMBOLS 101 Input part 102 Array control part 1021 Input determination part 1022 Character string buffer control part 1023 Prediction process control part 1024 Arrangement order determination part 1025 Display history management part 1026 Input character string buffer 1027 Prediction candidate storage part 1028 Post prediction prediction candidate storage part 1029 Character string display history storage unit 103 Prediction processing unit 1031 Word dictionary storage unit 104 Display unit 1041 Candidate window 200 Recording medium 300 Mobile phone 320 Cursor key 330 Numeric keypad

Claims (16)

第1の文字列から第2の文字列を予測した結果を出力する文字列処理装置において、
第1の文字列に基づく予測の結果として得られる第2の文字列の候補を取得する予測候補取得手段と、
前記予測候補取得手段により取得された候補を所定数出力する出力手段と、
前記出力手段による出力内容を決定する出力決定手段と、
外部からの入力を受け付ける入力受付手段とを備え、
前記出力決定手段は、
前記入力受付手段が前記第1の文字列の修正を示す入力を受け付け、それに伴い前記出力手段が再度第2の文字列の候補を出力する場合に、既に前記出力手段により出力された候補以外の候補が優先して出力されるように出力内容を決定する
ことを特徴とする文字列処理装置。
In the character string processing device that outputs the result of predicting the second character string from the first character string,
Prediction candidate acquisition means for acquiring a second character string candidate obtained as a result of prediction based on the first character string;
Output means for outputting a predetermined number of candidates acquired by the prediction candidate acquisition means;
Output determining means for determining the output content by the output means;
Input receiving means for receiving input from the outside,
The output determining means includes
When the input accepting means accepts an input indicating the correction of the first character string, and the output means outputs a second character string candidate again accordingly, a candidate other than the candidates already output by the output means An output content is determined so that candidates are output preferentially.
前記出力決定手段は、
取得された第2の文字列の候補の配列順位を決定する配列順位決定部を有し、
前記出力手段により、配列順位が上位である候補が最大前記所定数だけ出力されるように出力内容を決定するとともに、
前記配列順位決定部は、
既に前記出力手段により出力された候補の配列順位を下位に変更する
ことを特徴とする請求項1に記載の文字列処理装置。
The output determining means includes
A sequence ranking determining unit that determines the sequence ranking of the acquired second character string candidates;
The output means determines the output content so that the maximum number of candidates having higher ranks are output by the predetermined number, and
The sequence ranking determining unit
The character string processing apparatus according to claim 1, wherein the arrangement order of candidates already output by the output unit is changed to a lower order.
前記第1の文字列は文字列の読みを表す文字列であり、
前記予測候補取得手段は、
前記第1の文字列により表される読みと前方一致する読みを有する文字列を第2の文字列の候補として取得する
ことを特徴とする請求項1に記載の文字列処理装置。
The first character string is a character string representing a reading of the character string;
The prediction candidate acquisition means includes
The character string processing apparatus according to claim 1, wherein a character string having a reading that coincides with the reading represented by the first character string is acquired as a candidate for the second character string.
前記出力決定手段は、
既に前記出力手段により出力された候補の中に、再度の出力に際しても優先して出力されるべき固定候補が存在した場合には、当該固定候補が優先して再度前記出力手段により出力されるように出力内容を決定する
ことを特徴とする請求項1に記載の文字列処理装置。
The output determining means includes
If there is a fixed candidate that should be preferentially output in the second output among the candidates already output by the output means, the fixed candidate is preferentially output by the output means again. The character string processing device according to claim 1, wherein the output content is determined.
前記第2の文字列を入力する対象である文書における入力位置の前後の文脈に基づいて、前記固定候補とする候補を決定する固定候補決定手段をさらに備える
ことを特徴とする請求項4に記載の文字列処理装置。
The fixed candidate determination means which determines the candidate made into the said fixed candidate based on the context before and behind the input position in the document which is the object which inputs the said 2nd character string, The further characterized by the above-mentioned. String processing device.
前記固定候補の最大出力回数が規定されており、
前記出力決定手段は、
固定候補であっても、前記出力手段からの出力回数が前記最大出力回数に到達した候補については、優先して出力されないように出力内容を決定する
ことを特徴とする請求項4又は5に記載の文字列処理装置。
A maximum output number of the fixed candidates is defined;
The output determining means includes
6. The output content is determined so that a candidate for which the number of outputs from the output means has reached the maximum number of outputs is preferentially output even if it is a fixed candidate. String processing device.
前記入力受付手段が受け付けた入力が、第1の文字列からの文字の削除を指示する入力である場合に、既に出力された候補の中から、文字削除後の第1の文字列と読みが一致する候補を検出する検出手段を備え、
前記出力決定手段は、
第1の文字列からの文字の削除に伴う前記出力手段による再度の出力に際し、前記検出手段により検出された候補が優先して出力されるように出力内容を決定する
ことを特徴とする請求項1に記載の文字列処理装置。
When the input received by the input receiving means is an input for instructing deletion of a character from the first character string, the first character string after the character deletion is read from the candidates already output. A detection means for detecting matching candidates;
The output determining means includes
The output content is determined so that the candidates detected by the detection means are preferentially output when the output means outputs again when the character is deleted from the first character string. The character string processing device according to 1.
前記入力受付手段は、
次に入力される文字がどのような文字であるか示唆する入力を受け付け、
前記予測候補取得手段は、
前記入力受付手段が前記示唆する入力を受け付けた場合に、次に入力される可能性のある文字が前記第1の文字列に追加された場合における第2の文字列の候補を取得する
ことを特徴とする請求項1に記載の文字列処理装置。
The input receiving means
Accepts input that suggests what the next character will be,
The prediction candidate acquisition means includes
When the input accepting unit accepts the suggested input, obtaining a second character string candidate when a character that may be inputted next is added to the first character string. The character string processing device according to claim 1.
前記示唆する入力は、
複数回の入力で一文字を入力することのある入力装置からの入力における当該複数回の一部の入力であり、
前記予測候補取得手段は、
前記入力受付手段が前記一部の入力を受け付けた場合に、複数回の入力で入力される可能性のある文字が前記第1の文字列に追加された場合における第2の文字列の候補を取得する
ことを特徴とする請求項8に記載の文字列処理装置。
The suggested input is
It is a partial input of the plurality of times in an input from an input device that may input a single character by a plurality of times of input,
The prediction candidate acquisition means includes
When the input accepting unit accepts the partial input, the second character string candidate in the case where a character that may be inputted by a plurality of inputs is added to the first character string is obtained. The character string processing device according to claim 8, wherein the character string processing device is acquired.
前記示唆する入力は、
かな文字をローマ字入力する場合における子音部分の入力であり、
前記予測候補取得手段は、
前記子音に対応するかな文字が前記第1の文字列に追加された場合における第2の文字列の候補を取得する
ことを特徴とする請求項9に記載の文字列処理装置。
The suggested input is
It is the input of the consonant part when inputting Kana characters in Roman characters,
The prediction candidate acquisition means includes
The character string processing apparatus according to claim 9, wherein a second character string candidate is acquired when a kana character corresponding to the consonant is added to the first character string.
前記入力受付手段は、
同一の動作が複数回なされた場合に入力候補となる文字が順次変化し、他の動作がなされた場合に前記入力候補の中で入力される文字が決まるとともに、次に入力される文字がどのような文字かが示唆される入力装置からの入力を受け付け、
前記予測候補取得手段は、
前記他の動作がなされた場合に、前記示唆された文字が前記第1の文字列に追加された場合における第2の文字列の候補を取得する
ことを特徴とする請求項8に記載の文字列処理装置。
The input receiving means
When the same action is performed multiple times, the characters that are input candidates change sequentially, and when another action is performed, the character that is input among the input candidates is determined, and which character is input next Accepts input from input devices that suggest such characters,
The prediction candidate acquisition means includes
The character according to claim 8, wherein when the other action is performed, a candidate for a second character string when the suggested character is added to the first character string is acquired. Column processing unit.
前記入力装置は、複数の系列に分類されたかな文字の、系列のそれぞれに対応する複数のキーを含み、当該複数のキーの中の同一のキーが複数回押下された場合には同一系列に属するかな文字が入力候補として順次変化し、前記複数のキーの中の他のキーが押下された場合には、入力されるかな文字が決まるとともに、次に入力される文字が当該他のキーに対応する系列のかな文字であることが示唆され、前記複数のキー以外の所定のキーが押下された場合には、入力されるかな文字が決まるとともに、次に入力される文字が同一の系列のかな文字であることが示唆される入力装置からの入力を受け付け、
前記予測候補取得手段は、
前記複数のキーの中の他のキーが押下された場合又は前記複数のキー以外の所定のキーが押下された場合に、前記示唆されたかな文字が前記第1の文字列に追加された場合における第2の文字列の候補を取得する
ことを特徴とする請求項11に記載の文字列処理装置。
The input device includes a plurality of keys corresponding to each of a series of kana characters classified into a plurality of series, and when the same key among the plurality of keys is pressed a plurality of times, When a kana character belonging to the input key sequentially changes as an input candidate and another key among the plurality of keys is pressed, the input kana character is determined, and the next input character is assigned to the other key. When a kana character corresponding to the corresponding sequence is suggested and a predetermined key other than the plurality of keys is pressed, the kana character to be input is determined, and the next input character is of the same sequence. Accepts input from input devices suggested to be kana characters,
The prediction candidate acquisition means includes
When the suggested kana character is added to the first character string when another key of the plurality of keys is pressed or when a predetermined key other than the plurality of keys is pressed The character string processing device according to claim 11, wherein a candidate for the second character string is acquired.
前記入力装置は、
表示部を含む携帯電話機のテンキーであって各数字が五十音表の各行と対応付けられたテンキーと、同一行に属するかな文字を続けて入力すべく前記表示部に表示されるカーソルを移動させる指示を入力するカーソルキーとを含んでおり、
前記予測候補取得手段は、
テンキーの中で他の数字のキーが押下された場合には、当該他の数字のキーに対応する行のかな文字が前記第1の文字列に追加された場合における第2の文字列の候補を取得し、前記カーソルキーが押下された場合には、その前と同じ行のかな文字が前記第1の文字列に追加された場合における第2の文字列の候補を取得する
ことを特徴とする請求項12に記載の文字列処理装置。
The input device is:
Move the cursor displayed on the numeric keypad of the mobile phone including the display unit, where each number is associated with each row of the Japanese syllabary table, and the Kana characters that belong to the same row. A cursor key for inputting an instruction to be executed, and
The prediction candidate acquisition means includes
When another numeric key is pressed in the numeric keypad, the second character string candidate when the kana character in the line corresponding to the other numeric key is added to the first character string When the cursor key is pressed, a candidate for the second character string when a kana character on the same line as before is added to the first character string is obtained. The character string processing device according to claim 12.
第1の文字列に基づく予測の結果として得られる第2の文字列の候補を取得する予測候補取得ステップと、
取得された候補の配列順位を決定する配列順位決定ステップと、
前記配列順位決定ステップにて決定された配列順位に従って、前記第2の文字列の候補を所定数出力する第1の出力ステップと、
前記第1の文字列の修正を示す入力を受け付ける入力受付ステップと、
前記修正を示す入力の受け付けに伴い、再度第2の文字列の候補を出力する第2の出力ステップとを含み、
前記第2の出力ステップは、
当該第2の出力ステップにて、前記第1の出力ステップにおいて既に出力された候補以外の候補が優先して出力されるように出力内容を決定する出力決定ステップを含む
ことを特徴とする文字列処理方法。
A prediction candidate acquisition step of acquiring a second character string candidate obtained as a result of prediction based on the first character string;
A sequence ranking determination step for determining the sequence ranking of the obtained candidates;
A first output step of outputting a predetermined number of candidates for the second character string in accordance with the arrangement order determined in the arrangement order determination step;
An input receiving step for receiving an input indicating correction of the first character string;
A second output step of outputting a second character string candidate again upon receipt of an input indicating the correction,
The second output step includes:
The character string characterized by including the output determination step which determines an output content so that candidates other than the candidate already output in the said 1st output step may be output preferentially in the said 2nd output step. Processing method.
第1の文字列に基づく予測の結果として得られる第2の文字列の候補を取得する予約候補取得処理と、
前記第2の文字列の候補を所定数出力する出力処理と、
前記第1の文字列の修正を示す入力を受け付けた場合に実行される再度の出力処理において、既に出力された候補以外の候補が優先して出力されるように、出力される前記第2の文字列の候補を決定する出力決定処理と
を含む処理をコンピュータに実行させることを特徴とするプログラム。
Reservation candidate acquisition processing for acquiring a second character string candidate obtained as a result of prediction based on the first character string;
An output process for outputting a predetermined number of candidates for the second character string;
In the second output process executed when an input indicating correction of the first character string is received, the second output is output so that a candidate other than the already output candidate is output with priority. A program for causing a computer to execute processing including output determination processing for determining character string candidates.
請求項15に記載のプログラムを記録している
ことを特徴とするコンピュータ読み取り可能な記録媒体。
A computer-readable recording medium, wherein the program according to claim 15 is recorded.
JP2003272523A 2003-07-09 2003-07-09 Character string processor, character string processing method, program and recording medium Pending JP2005032111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003272523A JP2005032111A (en) 2003-07-09 2003-07-09 Character string processor, character string processing method, program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003272523A JP2005032111A (en) 2003-07-09 2003-07-09 Character string processor, character string processing method, program and recording medium

Publications (1)

Publication Number Publication Date
JP2005032111A true JP2005032111A (en) 2005-02-03

Family

ID=34210053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003272523A Pending JP2005032111A (en) 2003-07-09 2003-07-09 Character string processor, character string processing method, program and recording medium

Country Status (1)

Country Link
JP (1) JP2005032111A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006236201A (en) * 2005-02-28 2006-09-07 Omron Corp Character input method, program for character input and information processor
WO2007022591A1 (en) * 2005-08-25 2007-03-01 Constant Tsai Shi Wong Word processing system
WO2008007272A2 (en) * 2006-07-10 2008-01-17 Sony Ericsson Mobile Communications Ab Predicting entered text
JP2009222405A (en) * 2008-03-13 2009-10-01 Aisin Aw Co Ltd Navigation device and program
JP2010079832A (en) * 2008-09-29 2010-04-08 Kyocera Corp Character input device
JP2010511216A (en) * 2006-11-27 2010-04-08 ソニー エリクソン モバイル コミュニケーションズ, エービー Adaptive database
JP2012079252A (en) * 2010-10-06 2012-04-19 Fujitsu Ltd Information terminal, character input method and character input program
CN102479256A (en) * 2010-11-25 2012-05-30 爱信艾达株式会社 Searching device, searching method and computer-readable storage medium
JP2013065158A (en) * 2011-09-16 2013-04-11 Yahoo Japan Corp Terminal device, method, and program
JP2014120062A (en) * 2012-12-18 2014-06-30 Fujitsu Ltd Display program, information processor and display method
JP2016014987A (en) * 2014-07-01 2016-01-28 Kddi株式会社 Input support device, input support system, and program
JP6837608B1 (en) * 2020-02-04 2021-03-03 三菱電機株式会社 Program creation support device, program creation support method and program creation support program

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006236201A (en) * 2005-02-28 2006-09-07 Omron Corp Character input method, program for character input and information processor
JP4569319B2 (en) * 2005-02-28 2010-10-27 オムロン株式会社 Character input method, character input program, and information processing apparatus
WO2007022591A1 (en) * 2005-08-25 2007-03-01 Constant Tsai Shi Wong Word processing system
WO2008007272A2 (en) * 2006-07-10 2008-01-17 Sony Ericsson Mobile Communications Ab Predicting entered text
WO2008007272A3 (en) * 2006-07-10 2008-07-03 Sony Ericsson Mobile Comm Ab Predicting entered text
JP2010511216A (en) * 2006-11-27 2010-04-08 ソニー エリクソン モバイル コミュニケーションズ, エービー Adaptive database
JP2009222405A (en) * 2008-03-13 2009-10-01 Aisin Aw Co Ltd Navigation device and program
JP2010079832A (en) * 2008-09-29 2010-04-08 Kyocera Corp Character input device
JP2012079252A (en) * 2010-10-06 2012-04-19 Fujitsu Ltd Information terminal, character input method and character input program
CN102479256A (en) * 2010-11-25 2012-05-30 爱信艾达株式会社 Searching device, searching method and computer-readable storage medium
JP2012113519A (en) * 2010-11-25 2012-06-14 Aisin Aw Co Ltd Retrieval device, retrieval method and program
JP2013065158A (en) * 2011-09-16 2013-04-11 Yahoo Japan Corp Terminal device, method, and program
JP2014120062A (en) * 2012-12-18 2014-06-30 Fujitsu Ltd Display program, information processor and display method
JP2016014987A (en) * 2014-07-01 2016-01-28 Kddi株式会社 Input support device, input support system, and program
JP6837608B1 (en) * 2020-02-04 2021-03-03 三菱電機株式会社 Program creation support device, program creation support method and program creation support program

Similar Documents

Publication Publication Date Title
US20210073467A1 (en) Method, System and Apparatus for Entering Text on a Computing Device
US20100115402A1 (en) System for data entry using multi-function keys
KR100958309B1 (en) character input device
JP2005521149A (en) Method for entering text into an electronic communication device
US20160275070A1 (en) Correction of previous words and other user text input errors
GB2399202A (en) Input of data from keyboard
JP2010061656A (en) On-screen virtual keyboard system
US20090193332A1 (en) Method and apparatus for editing letters
US20170270092A1 (en) System and method for predictive text entry using n-gram language model
JP2005032111A (en) Character string processor, character string processing method, program and recording medium
JP5850014B2 (en) Character input device and program
JP6219935B2 (en) Method, controller and apparatus for composing words
JP2008250708A (en) Input character string prediction apparatus and input character string prediction program
JP2000187658A (en) Method for predicting character string and its device
JP2003131776A (en) Information-processing device, character string-inputting device and confirmed history-controlling method
US20160004325A1 (en) Swipe and tap keyboard
KR20150021984A (en) Text input apparatus and method by moving a point and computer readable recoding medium for performing it
JP2007086911A (en) Text input device, text input method and text input program
EP2894547B1 (en) Character input device, character input method of character input device, and non-transitory computer-readable medium
JP4535186B2 (en) Electronic device and program with dictionary function
JP5674140B2 (en) Text input device, text input receiving method and program
JP2008117310A (en) Dictionary retrieval device and dictionary retrieval processing program
JP2007257189A (en) Dictionary search device and control program therefor
US20170269707A1 (en) Method for Text Input, Apparatus, and Computer Program
JP2010117776A (en) Character input device with modification function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050810

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070130

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070605