JP2011044031A - Electronic dictionary, dictionary search method and dictionary search program - Google Patents
Electronic dictionary, dictionary search method and dictionary search program Download PDFInfo
- Publication number
- JP2011044031A JP2011044031A JP2009192276A JP2009192276A JP2011044031A JP 2011044031 A JP2011044031 A JP 2011044031A JP 2009192276 A JP2009192276 A JP 2009192276A JP 2009192276 A JP2009192276 A JP 2009192276A JP 2011044031 A JP2011044031 A JP 2011044031A
- Authority
- JP
- Japan
- Prior art keywords
- morpheme
- dictionary
- search
- character string
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、ディスプレイ上にテキストを表示可能な電子辞書、辞書検索方法、および辞書検索プログラムに関し、特に、文字列の選択あるいは入力を受け付けて、当該文字列についての辞書検索を行うための電子辞書、辞書検索方法、および辞書検索プログラムに関する。 The present invention relates to an electronic dictionary capable of displaying text on a display, a dictionary search method, and a dictionary search program, and more particularly to an electronic dictionary for accepting selection or input of a character string and performing a dictionary search for the character string. The present invention relates to a dictionary search method and a dictionary search program.
パーソナルコンピュータや電子辞書などのように、ディスプレイ上にテキストを表示可能な電子機器が知られている。それらの電子機器の中には、文字列の選択や入力を受け付け、当該文字列についての辞書検索を行い、検索結果をディスプレイに表示するものがある。しかしながら、電子辞書は、正確な辞書検索を行うために、ユーザからの正確な文字列の入力を受け付ける必要がある。そのため、たとえば以下のような技術が提案されている。 Electronic devices capable of displaying text on a display, such as a personal computer and an electronic dictionary, are known. Some of these electronic devices accept selection and input of a character string, perform a dictionary search for the character string, and display a search result on a display. However, the electronic dictionary needs to accept an input of an accurate character string from the user in order to perform an accurate dictionary search. Therefore, for example, the following techniques have been proposed.
特開2005−18169号公報(特許文献1)には、検索文字列の選択装置およびこれを備えた電子辞書、検索文字列の選択方法、検索文字列の選択プログラムおよびこれを記録した記録媒体が開示されている。特開2005−18169号公報(特許文献1)によると、ユーザは、カーソルを移動させて文字列の先頭の一文字を指定するだけで、検索文字列を選択することができる。制御部は、表示器に表示された文章データ中からカーソルが位置している文字を先頭文字とする文字数Nの文字列を切り出して、RAMに保存する。文字列判定部は、ROMに格納されたインデックスの中に、RAMに保存された文章データ中から切り出した文字列と同じ文字列からなる見出し語がないか検索を行い、インデックス内に、文章データ中から切り出した文字列と一致する見出し語が辞書データ内に存在するか否かの判定を行う。文字列判定部が、上記一致する見出し語が存在すると判定した場合には、検索文字列選択部が、その文字列を検索文字として選択する。 Japanese Patent Laying-Open No. 2005-18169 (Patent Document 1) discloses a search character string selection device, an electronic dictionary including the search character string selection method, a search character string selection method, a search character string selection program, and a recording medium recording the same. It is disclosed. According to Japanese Patent Laying-Open No. 2005-18169 (Patent Document 1), the user can select a search character string simply by moving the cursor and designating the first character of the character string. The control unit cuts out a character string of N characters starting from the character at which the cursor is located from the text data displayed on the display device, and stores it in the RAM. The character string determination unit searches the index stored in the ROM for a headword consisting of the same character string as the character string cut out from the sentence data stored in the RAM, and the sentence data is stored in the index. It is determined whether or not a headword matching the character string cut out from the dictionary data exists in the dictionary data. When the character string determination unit determines that the matching headword exists, the search character string selection unit selects the character string as the search character.
しかしながら、従来の電子辞書は、テキスト内における正確な検索範囲を受け付けないと、当該範囲内に含まれる文字列に対する正確な辞書検索を行うことができない。特開2005−18169号公報(特許文献1)によると、少なくとも検索対象となる文字列の最初の文字を指定する必要がある。また、単語の活用変化が原因で、電子辞書が正確な辞書検索を行えない可能性もある。たとえば、語尾が変化している動詞が選択された場合、電子辞書は当該動詞を検索できない可能性がある。 However, unless the conventional electronic dictionary accepts an accurate search range in the text, an accurate dictionary search cannot be performed for a character string included in the range. According to Japanese Patent Laying-Open No. 2005-18169 (Patent Document 1), it is necessary to designate at least the first character of a character string to be searched. In addition, there is a possibility that the electronic dictionary cannot perform an accurate dictionary search due to a change in word utilization. For example, when a verb whose ending is changed is selected, the electronic dictionary may not be able to search for the verb.
本発明は、かかる問題を解決するためになされたものであり、その目的は、文字列の選択あるいは入力を受け付けて、従来よりも柔軟に文字列に関する辞書検索を行うことができる電子辞書、辞書検索方法、および辞書検索プログラムを提供することである。 The present invention has been made to solve such problems, and an object of the present invention is to accept a selection or input of a character string and to perform a dictionary search related to the character string more flexibly than in the past. A search method and a dictionary search program are provided.
この発明のある局面に従うと、電子辞書が提供される。電子辞書は、辞書データを記憶するための記憶部と、テキストを表示するためのディスプレイと、テキストの中から文字列の選択を受け付けるための受付部と、選択された文字列に対して形態素解析を行うことによって、文字列に含まれる形態素を取得するための解析部と、辞書データを参照することによって、形態素についての辞書検索を行うための検索部と、ディスプレイに検索結果を表示させるための表示制御部とを備える。 According to one aspect of the present invention, an electronic dictionary is provided. The electronic dictionary includes a storage unit for storing dictionary data, a display for displaying text, a reception unit for receiving selection of a character string from the text, and a morphological analysis for the selected character string To obtain a morpheme included in the character string, to search the dictionary data by referring to the dictionary data, and to display the search result on the display. A display control unit.
好ましくは、記憶部は、形態素の並び方と検索対象となる形態素とを対応付けて格納するための第1のテーブルを記憶する。電子辞書は、第1のテーブルを参照して、取得された形態素の中から検索対象となる形態素を抽出するための抽出部をさらに備える。検索部は、抽出された形態素についての辞書検索を行う。 Preferably, the storage unit stores a first table for storing the arrangement of morphemes and the morphemes to be searched in association with each other. The electronic dictionary further includes an extraction unit for extracting a morpheme to be searched from the acquired morphemes with reference to the first table. The search unit performs a dictionary search for the extracted morphemes.
好ましくは、解析部は、文字列に含まれる形態素の各々に関する情報として、形態素の原形と形態素の属性とを取得する。第1のテーブルは、形態素の属性の並び方と検索対象となる形態素の属性とを対応付けて格納する。抽出部は、第1のテーブルを参照して、取得された形態素の原形の中から検索対象となる形態素の属性に対応する形態素の原形を抽出する。検索部は、抽出された形態素の原形についての辞書検索を行う。表示制御部は、ディスプレイに辞書検索でヒットした形態素の原形を選択可能に表示させる。受付部は、形態素の原形の選択を受け付ける。表示制御部は、ディスプレイに選択された形態素の原形についての検索結果を表示させる。 Preferably, an analysis part acquires the original form of a morpheme and the attribute of a morpheme as information regarding each of the morpheme contained in a character string. The first table stores the arrangement of morpheme attributes and the morpheme attributes to be searched in association with each other. The extraction unit refers to the first table and extracts a morpheme original corresponding to the attribute of the morpheme to be searched from the acquired morpheme originals. The search unit performs a dictionary search for the original form of the extracted morpheme. The display control unit displays the original form of the morpheme that has been hit by the dictionary search on the display in a selectable manner. The reception unit receives selection of the original form of the morpheme. The display control unit displays the search result for the original form of the selected morpheme on the display.
好ましくは、解析部は、文字列に含まれる形態素の各々に関する情報として、形態素の原形と形態素の属性とを取得する。第1のテーブルは、形態素の属性の並び方と検索対象となる形態素の属性とを対応付けて格納する。抽出部は、第1のテーブルを参照して、取得された形態素の原形の中から検索対象となる形態素の属性に対応する形態素の原形を抽出する。表示制御部は、ディスプレイに抽出された形態素の原形を選択可能に表示させる。受付部は、形態素の原形の選択を受け付ける。検索部は、選択された形態素の原形についての辞書検索を行う。表示制御部は、ディスプレイに選択された形態素の原形についての検索結果を表示させる。 Preferably, an analysis part acquires the original form of a morpheme and the attribute of a morpheme as information regarding each of the morpheme contained in a character string. The first table stores the arrangement of morpheme attributes and the morpheme attributes to be searched in association with each other. The extraction unit refers to the first table and extracts a morpheme original corresponding to the attribute of the morpheme to be searched from the acquired morpheme originals. A display control part displays the original form of the extracted morpheme on a display so that selection is possible. The reception unit receives selection of the original form of the morpheme. The search unit performs a dictionary search for the original form of the selected morpheme. The display control unit displays the search result for the original form of the selected morpheme on the display.
好ましくは、形態素の属性は、形態素の品詞を含む。
好ましくは、形態素の属性は、形態素の活用形を含む。
Preferably, the morpheme attribute includes a morpheme part of speech.
Preferably, the attribute of the morpheme includes a utilization form of the morpheme.
この発明の別の局面に従うと、演算処理部と、ディスプレイと、辞書データを記憶するための記憶部とを含む電子辞書における辞書検索方法が提供される。辞書検索方法は、演算処理部が、ディスプレイにテキストを表示させるステップと、演算処理部が、テキストの中から文字列の選択を受け付けるステップと、演算処理部が、選択された文字列に対して形態素解析を行うことによって、文字列に含まれる形態素を取得するステップと、演算処理部が、辞書データを参照することによって、形態素についての辞書検索を行うステップと、演算処理部が、ディスプレイに検索結果を表示させるステップとを備える。 According to another aspect of the present invention, a dictionary search method in an electronic dictionary including an arithmetic processing unit, a display, and a storage unit for storing dictionary data is provided. The dictionary search method includes: a step in which an arithmetic processing unit displays text on a display; a step in which an arithmetic processing unit accepts selection of a character string from text; and an arithmetic processing unit that selects a selected character string A step of acquiring a morpheme included in the character string by performing morphological analysis, a step of performing a dictionary search for the morpheme by referring to the dictionary data, and a processing unit searching on the display Displaying the result.
この発明の別の局面に従うと、演算処理部と、ディスプレイと、辞書データを記憶するための記憶部とを含む電子辞書に辞書検索させるための辞書検索プログラムが提供される。検索プログラムは、演算処理部に、ディスプレイにテキストを表示させるステップと、テキストの中から文字列の選択を受け付けるステップと、選択された文字列に対して形態素解析を行うことによって、文字列に含まれる形態素を取得するステップと、辞書データを参照することによって、形態素についての辞書検索を行うステップと、ディスプレイに検索結果を表示させるステップとを実行させる。 According to another aspect of the present invention, there is provided a dictionary search program for causing an electronic dictionary including an arithmetic processing unit, a display, and a storage unit for storing dictionary data to perform a dictionary search. The retrieval program is included in the character string by causing the arithmetic processing unit to display text on the display, receiving a selection of the character string from the text, and performing morphological analysis on the selected character string. Obtaining a morpheme, performing a dictionary search for the morpheme by referring to dictionary data, and displaying a search result on the display.
以上のように、この発明によれば、文字列の選択あるいは入力を受け付けて、従来よりも柔軟に文字列に関する辞書検索を行うことができる電子辞書、辞書検索方法、および辞書検索プログラムが提供される。 As described above, according to the present invention, there are provided an electronic dictionary, a dictionary search method, and a dictionary search program that can accept a selection or input of a character string and perform a dictionary search related to the character string more flexibly than before. The
以下、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.
<電子辞書100の全体構成>
まず、図1および図2を参照して、本実施の形態に係る電子辞書100の全体構成について説明する。電子辞書100は、辞書機能のみを有する電子機器だけでなく、PDA(Personal Digital Assistant)、パーソナルコンピュータ、携帯型電話機などのような、ディスプレイを有するとともに他の機能を有する携帯型デバイスによっても実現される。
<Overall Configuration of
First, the overall configuration of
図1は、本実施の形態に係る電子辞書を示す第1の概略図である。より詳細には、図1(A)は、表示されているテキストから文字列が選択された状態の電子辞書100を示すイメージ図である。図1(B)は、文字列に含まれる形態素が検索対象の単語として選択可能に表示された状態の電子辞書100を示すイメージ図である。図1(C)は、選択された形態素の検索を行うための辞書の選択を受け付ける状態の電子辞書100を示すイメージ図である。図1(D)は、和英辞典が選択された際の選択された形態素の検索結果が表示された状態の電子辞書100を示すイメージ図である。図1(E)は、国語辞典が選択された際の選択された形態素の検索結果が表示された状態の電子辞書100を示すイメージ図である。
FIG. 1 is a first schematic diagram showing an electronic dictionary according to the present embodiment. More specifically, FIG. 1A is an image diagram showing the
図2は、本実施の形態に係る電子辞書を示す第2の概略図である。より詳細には、図2(A)は、表示されているテキストから文字列が選択された状態の電子辞書100を示すイメージ図である。図2(B)は、文字列に含まれる形態素が検索対象の単語として選択可能に表示された状態の電子辞書100を示すイメージ図である。図2(C)は、選択された形態素の検索を行うための辞書の選択を受け付ける状態の電子辞書100を示すイメージ図である。図2(D)は、和英辞典が選択された際の選択された形態素の検索結果が表示された状態の電子辞書100を示すイメージ図である。図2(E)は、国語辞典が選択された際の選択された形態素の検索結果が表示された状態の電子辞書100を示すイメージ図である。
FIG. 2 is a second schematic diagram showing the electronic dictionary according to the present embodiment. More specifically, FIG. 2A is an image diagram showing the
図1および図2を参照して、本実施の形態に係る電子辞書100は、タッチパネル120を含む。タッチパネル120は、タッチパネル120に対するタッチ操作を受け付けて、タッチ位置に基づいてユーザから様々な命令を受け付ける。タッチパネル120は、ユーザからの命令に基づいて、テキストや画像などを表示する。なお、電子辞書100は、タッチパネル120を介してユーザからの命令を受け付けることもできるし、タッチパネル120とは別に後述するハードウェアキーボードやその他のスイッチを介してユーザからの命令を受け付けることもできる。
Referring to FIGS. 1 and 2,
<電子辞書100の動作概要>
次に、図1および図2を参照して、本実施の形態に係る電子辞書100の動作概要について説明する。
<Outline of operation of
Next, with reference to FIG. 1 and FIG. 2, the operation | movement outline | summary of the
図1(A)を参照して、電子辞書100は、タッチパネル120に、予め入力されたテキストを表示させる。ユーザは、タッチペン200や指などを用いて、タッチパネル120を介して表示されているテキストから検索を行いたい文字列を選択する。すなわち、電子辞書100は、タッチパネル120を介して文字列の範囲の指定を受け付ける。たとえば、電子辞書100は、「東京ディズニーランド」という文字列の選択(入力)を受け付ける。
Referring to FIG. 1A,
本実施の形態に係る電子辞書100は、文字列に対して形態素解析を行うことによって、文字列に含まれる形態素(以下、単語ともいう。)を取得する。電子辞書100は、「東京ディズニーランド」という文字列に基づいて、「東京」、「ディズニーランド」という形態素を取得する。電子辞書100は、予め定められたルール(テーブル)に従って、取得された形態素から検索対象とするべき単語を抽出する。ここで、検索すべき形態素とは、辞書に格納されている可能性が高い形式の単語をいう。たとえば、電子辞書100は、「東京ディズニーランド」、「東京」、「ディズニーランド」という検索用の単語を抽出する。
図1(B)を参照して、電子辞書100は、タッチパネル120に抽出された複数の検索単語を表示する。たとえば、電子辞書100は、タッチパネル120に、「東京ディズニーランド」、「東京」、「ディズニーランド」のいずれかを選択するためのボックス120Aを表示する。このとき、電子辞書100は、タッチパネル120に、文字列の選択を解除するためのキャンセルボタン120Cも表示する。ユーザは、タッチペン200を用いて、タッチパネル120を介して検索単語を選択する。すなわち、電子辞書100は、検索単語の選択を受け付ける。たとえば、電子辞書100は、「ディズニーランド」という検索単語の選択を受け付ける。
Referring to FIG. 1B,
図1(C)を参照して、電子辞書100は、タッチパネル120に複数の辞書を表示する。たとえば、電子辞書100は、タッチパネル120に、「和英辞典」、「国語辞典」のいずれかを選択するためのボックス120Bを表示する。このとき、電子辞書100は、タッチパネル120に、検索単語の選択を解除するためのキャンセルボタンを表示する。ユーザは、タッチペン200を用いて、タッチパネル120を介して辞書を選択する。すなわち、電子辞書100は、辞書の選択も受け付ける。
Referring to FIG. 1C,
たとえば、図1(C)の状態においてユーザが和英辞典を選択した場合、電子辞書100は、図1(D)に示すように、選択された「ディズニーランド」という単語の和英辞典を用いた検索結果をタッチパネル120に表示する。
For example, when the user selects a Japanese-English dictionary in the state of FIG. 1C, the
たとえば、図1(C)の状態においてユーザが国語辞典を選択した場合、電子辞書100は、図1(E)に示すように、選択された「ディズニーランド」という形態素の国語辞典を用いた検索結果をタッチパネル120に表示する。
For example, when the user selects a national language dictionary in the state of FIG. 1C, the
このように、本実施の形態に係る電子辞書100は、選択された文字列に対して形態素解析を行うことによって、当該文字列に複数の形態素が含まれている場合であっても、当該複数の形態素を取得することができる。また、電子辞書100は、取得された形態素から検索可能な単語を抽出することができる。そして、電子辞書100は、抽出された少なくとも1つの単語について辞書検索を行う。その結果、従来よりも柔軟に文字列に関する辞書検索を行うことができる。
As described above, the
さらに、本実施の形態に係る電子辞書100は、以下のような機能をも有する。図2(A)を参照して、電子辞書100は、タッチパネル120に、予め入力されたテキストを表示させる。ユーザは、タッチペン200や指などを用いて、タッチパネル120を介して表示されているテキストから文字列を選択する。すなわち、電子辞書100は、タッチパネル120を介して文字列の範囲の指定を受け付ける。たとえば、電子辞書100は、「渡された変数に」という文字列の選択(入力)を受け付ける。
Furthermore,
本実施の形態に係る電子辞書100は、文字列に対して形態素解析を行うことによって、文字列に含まれる形態素を取得する。電子辞書100は、「渡された変数に」という文字列に基づいて、「渡す」、「られる」、「変数」、「に」という形態素を取得する。電子辞書100は、予め定められたルール(テーブル)に従って、取得された形態素から検索対象とするべき単語を抽出する。たとえば、電子辞書100は、「渡す」、「変数」という検索用の単語を抽出する。
図2(B)を参照して、電子辞書100は、タッチパネル120に抽出された複数の検索単語を表示する。たとえば、電子辞書100は、タッチパネル120に、「渡す」、「変数」のいずれかを選択するためのボックス120Aを表示する。このとき、電子辞書100は、タッチパネル120に、文字列の選択を解除するためのキャンセルボタン120Cも表示する。ユーザは、タッチペン200を用いて、タッチパネル120を介して検索単語を選択する。すなわち、電子辞書100は、検索単語の選択を受け付ける。たとえば、電子辞書100は、「渡す」という検索単語の選択を受け付ける。
Referring to FIG. 2B,
図2(C)を参照して、電子辞書100は、タッチパネル120に複数の辞書を表示する。たとえば、電子辞書100は、タッチパネル120に、「和英辞典」、「国語辞典」のいずれかを選択するためのボックス120Bを表示する。このとき、電子辞書100は、タッチパネル120に、検索単語の選択を解除するためのキャンセルボタンを表示する。ユーザは、タッチペン200を用いて、タッチパネル120を介して辞書を選択する。すなわち、電子辞書100は、辞書の選択も受け付ける。
Referring to FIG. 2C,
たとえば、図2(C)の状態においてユーザが和英辞典を選択した場合、電子辞書100は、図2(D)に示すように、選択された「渡す」という単語の和英辞典を用いた検索結果をタッチパネル120に表示する。
For example, when the user selects a Japanese-English dictionary in the state of FIG. 2C, the
たとえば、図2(C)の状態においてユーザが国語辞典を選択した場合、電子辞書100は、図2(E)に示すように、選択された「渡す」という単語の国語辞典を用いた検索結果をタッチパネル120に表示する。
For example, when the user selects a Japanese dictionary in the state of FIG. 2C, the
このように、本実施の形態に係る電子辞書100は、選択された文字列に対して形態素解析を行うことによって、形態素の原形を取得することができる。そのため、語尾が変化している動詞などが文字列に含まれている場合であっても、当該動詞の原形を取得することによって当該動詞の原形についての検索結果を得ることが可能になる。その結果、従来よりも柔軟に文字列に関する辞書検索を行うことができる。
As described above, the
以下、このような機能を実現するための構成について詳述する。
<電子辞書100のハードウェア構成>
次に、電子辞書100の具体的構成の一態様について説明する。図3は、電子辞書100のハードウェア構成を表わすブロック図である。図3を参照して、電子辞書100は、主たる構成要素として、CPU110と、タッチパネル120と、メモリ130と、メモリインターフェイス140と、通信インターフェイス150と、キーボード160とを含む。
Hereinafter, a configuration for realizing such a function will be described in detail.
<Hardware Configuration of
Next, an aspect of a specific configuration of the
CPU110は、メモリ130あるいは外部の記録媒体141に記憶されているプログラムを実行することによって、電子辞書100の各部を制御する。CPU110は、メモリ130あるいは外部の記録媒体141に記憶されているプログラムを実行することによって、後述する機能ブロックの各々を実現する。
The
タッチパネル120は、外部の物体によるタッチパネル120へのタッチ操作を検知して、タッチ位置(タッチ座標)をCPU110に入力する。ユーザは、タッチパネル120を介して、テキストの範囲を指定するための命令(文字列をするための命令)、検索単語を選択するための命令、辞書を選択するための命令、その他のボタンを選択するための命令などをCPU110に入力する。換言すれば、CPU110は、タッチパネル120から順次入力されるタッチ座標に基づいて、上記の命令を受け付ける。タッチパネル120は、CPU110からのデータに基づいてテキストや画像を様々な形式で表示する。
The
なお、タッチパネル120は、抵抗膜方式、表面弾性波方式、赤外線方式、電磁誘導方式、静電容量方式などのいずれのタイプであってもよい。また、タッチパネル120は、光センサ液晶を含んでもよい。このように、本実施の形態に係るタッチパネル120は、表示部と、操作部とを実現する。
The
メモリ130は、ROM(Read Only Memory)、SRAM(Static Random Access Memory)、NV−RAM、ハードディスク、マスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electronically Erasable Programmable Read-Only Memory)、フラッシュROMなどによって実現される。メモリ130は、CPU110によって実行されるプログラムや、CPU110によるプログラムの実行により生成されたデータ、タッチパネル120を介して入力されたデータなどを記憶する。
The
より詳細には、メモリ130は、プログラムなどのデータを不揮発的に格納したり、タッチ位置やスライド操作などを揮発的に格納したりする。メモリ130は、後述する形態素データベース131を含む形態素プログラム、第1のデータベース132、第2のデータベース133、辞書データベース134を含む辞書プログラムなどを記憶する。なお、形態素データベース131、第1のデータベース132、第2のデータベース133は、辞書プログラムに含まれていてもよいし、辞書プログラムとは独立してメモリ130に記憶されてもよい。
More specifically, the
メモリインターフェイス140には、外部の記録媒体141が接続される。外部の記録媒体141としては、USB(Universal Serial Bus)メモリ、メモリカード、FD(Flexible Disk)、磁気テープ、カセットテープ、光ディスク(MO(Magnetic Optical Disc)、MD(Mini Disc)、DVD(Digital Versatile Disc)、CD(Compact Disc))、IC(Integrated Circuit)カード、光カードなどが挙げられる。
An
CPU110は、メモリインターフェイス140を介して外部の記録媒体141に格納されているデータを読みして、当該データをメモリ130に格納する。逆に、CPU110は、メモリ130からデータを読み出して、メモリインターフェイス140を介して当該データを外部の記録媒体141に格納する。
The
通信インターフェイス150は、アンテナやコネクタによって実現される。通信インターフェイス150は、有線通信あるいは無線通信によって他の装置との間でデータをやり取りする。CPU110は、通信インターフェイス150を介して、他の装置からプログラムやテキストデータや画像データなどを受信したり、他の装置にテキストデータや画像データなどを送信したりする。
The
キーボード160は、テンキーや文字キーや他のスイッチなどを含む。ユーザは、キーボード160を介して、CPU110に文字を入力する。換言すれば、CPU110は、キーボード160を介して、文字を受け付ける。あるいは、ユーザは、キーボード160を介して、テキストの範囲を指定するための命令(文字列を選択するための命令)、検索単語を選択するための命令、辞書を選択するための命令、その他のボタンを選択するための命令などをCPU110に入力する。換言すれば、CPU110は、キーボード160を介して、上記の命令を受け付ける。
The
<本実施の形態に係る電子辞書100の機能構成>
以下では、図3、図4を参照して、本実施の形態に係る電子辞書100の機能構成について説明する。なお、図4は、本実施の形態に係る電子辞書100の機能構成を示すブロック図である。
<Functional configuration of
Below, with reference to FIG. 3, FIG. 4, the function structure of the
本実施の形態に係る電子辞書100は、受付部1101と、解析部1102と、抽出部1103と、検索部1104と、表示制御部1105とを含む。また、電子辞書100は、図2にも示したように、タッチパネル120と、メモリ130とを含む。前述したように、メモリ130は、形態素データベース131と、第1のデータベース132と、第2のデータベース133と、辞書データベース134とを記憶する。
受付部1101と、解析部1102と、抽出部1103と、検索部1104と、表示制御部1105とは、CPU110などによって実現される機能である。より詳細には、CPU110が有する各機能は、CPU110がメモリ130や外部の記録媒体141に記憶される制御プログラムを実行して、図3に示される各ハードウェアを制御することによって実現される機能である。
The
たとえば、受付部1101と、解析部1102と、抽出部1103と、検索部1104と、表示制御部1105とを実現するための制御プログラムは、辞書のアプリケーションプログラムやその他のアプリケーションプログラムに組み込まれていてもよい。すなわち、辞書のアプリケーションが、受付部1101、解析部1102、抽出部1103、検索部1104、表示制御部1105の機能を実現してもよい。あるいは、上記の制御プログラムが、これらのアプリケーションプログラムとは別の制御プログラムとして、これらのアプリケーションと連動してあるいは独立して実行されてもよい。
For example, a control program for realizing the
受付部1101は、タッチパネル120あるいはキーボード160を介して、表示されているテキストから文字列(検索対象エリア)を選択するための選択命令(第1の選択命令)を受け付ける。受付部1101は、第1の選択命令を解析部1102と表示制御部1105とに入力する。
The accepting
受付部1101は、タッチパネル120あるいはキーボード160を介して、複数の検索単語からユーザが検索結果の表示を所望する単語を選択するための選択命令(第2の選択命令)を受け付ける。受付部1101は、第2の選択命令を検索部1104と表示制御部1105とに入力する。
The accepting
受付部1101は、タッチパネル120あるいはキーボード160を介して、辞書を選択するための選択命令(第3の選択命令)なども受け付ける。受付部1101は、第3の選択命令を検索部1104と表示制御部1105とに入力する。
The accepting
たとえば、受付部1101は、タッチパネル120にテキストが表示されている状態において、タッチパネル120から入力される1つ目のタッチ座標と2つ目のタッチ座標とに基づいて、文字列の選択を受け付ける。あるいは、受付部1101は、タッチパネル120にテキストが表示されている状態において、タッチパネル120から入力される一連のスライド操作を検知することによって、スライド操作の開始位置とスライド操作の終了位置とに基づいて、文字列の選択を受け付ける。あるいは、受付部1101は、キーボード160を介して、「Shift」キーが押下されたときのカーソルの位置と、「Shift」キーが解除されたときのカーソルの位置とに基づいて、文字列の選択を受け付ける。
For example, the accepting
図1(A)および図2(A)に示したように、表示制御部1105は、第1の選択命令に応じて、テキスト中の選択された文字列を、その背景色がテキスト中の他の文字列の背景色と異なるようにタッチパネル120に表示させる。あるいは、表示制御部1105は、第1の選択命令に応じて、選択された文字列の白黒を反転させたりする。
As shown in FIGS. 1A and 2A, in response to the first selection command, the
解析部1102は、第1の命令に応じて、選択された文字列の形態素解析を行う。解析部1102は、メモリ130の形態素データベース131を参照して、選択された文字列を形態素に分解する。本実施の形態に係る解析部1102は、分解された形態素の各々について、少なくとも形態素の原形と形態素の品詞とを出力する。
The
たとえば、「東京ディズニーリゾートへ」という文字列が選択された場合、解析部1102は当該文字列を以下のような4つの形態素に分解して、各々の形態素に関する情報を出力する。
(1)形態素番号1
入力=東京
読み=とうきょう
表記=東京
品詞=固有名詞
活用=φ
文法情報=語幹、名詞
文節番号=1
変換ルール番号=−1
(2)形態素番号2
入力=ディズニー
読み=でぃずにー
表記=ディズニー
品詞=固有名詞
活用=φ(3)
文法情報=語幹、名詞
文節番号−2
変換ルール番号=−1
(3)形態素番号3
入力=リゾート
読み=りぞーと
表記=リゾート
品詞=名詞
活用=φ
文法情報=語幹、名詞
文節番号=3
変換ルール番号=−1
(4)形態素番号4
入力=へ
読み=へ
表記=へ
品詞=助詞
活用=φ
文法情報=一般格助、付属語
文節番号=3
変換ルール番号=−1
たとえば、「恭順派」という文字列が選択された場合、解析部1102は当該文字列を以下のような2つの形態素に分解して、各々の形態素に関する情報を出力する。
(1)形態素番号1
入力=恭順
読み=きょうじゅん
表記=恭順
品詞=サ変名詞
活用=サ変
文法情報=語幹、名詞
文節番号=1
変換ルール番号=−1
(2)形態素番号2
入力=派
読み=は
表記=派
品詞=接尾
活用=φ
文法情報=φ,φ
文節番号=1
変換ルール番号=−1
たとえば、「形態素解析の結果」という文字列が選択された場合、解析部1102は当該文字列を以下のような4つの形態素に分解して、各々の形態素に関する情報を出力する。
(1)形態素番号1
入力=形態素
読み=けいたいそ
表記=形態素
品詞=名詞
活用=φ
文法情報=語幹、名詞
文節番号=1
変換ルール番号=−1
(2)形態素番号2
入力=解析
読み=かいせき
表記=解析
品詞=サ変名詞
活用=サ変
文法情報=語幹、名詞
文節番号=2
変換ルール番号=−1
(3)形態素番号3
入力=の
読み=の
表記=の
品詞=助詞
活用=φ
文法情報=一般格助、付属語
文節番号=2
変換ルール番号=−1
(4)形態素番号4
入力=結果
読み=けっか
表記=結果
品詞=名詞
活用=φ
文法情報=語幹、名詞
文節番号=3
変換ルール番号=−1
なお、形態素解析の具体的な手法は、既に公知の技術であるため、ここでは詳細な説明を繰り返さない。このようにして、解析部1102は、選択された文字列に含まれる形態素を取得して、形態素毎に、原形や品詞などの文法情報を抽出部1103に入力する。
For example, when the character string “To Tokyo Disney Resort” is selected, the
(1) Morphological number 1
Input = Tokyo reading = Tokyo notation = Tokyo part of speech = Use of proper nouns = φ
Grammar information = stem, noun phrase number = 1
Conversion rule number = -1
(2)
Input = Disney reading = Dizuni-Notation = Disney part of speech = Proper noun usage = φ (3)
Grammar information = stem, noun phrase number -2
Conversion rule number = -1
(3)
Input = Resort reading = Rizou notation = Resort part of speech = Noun utilization = φ
Grammar information = stem, noun phrase number = 3
Conversion rule number = -1
(4)
Input = Reading = Reading = Writing = Part of speech = Particle usage = φ
Grammar information = general assistance, attached phrase number = 3
Conversion rule number = -1
For example, when a character string “Fujun” is selected, the
(1) Morphological number 1
Input = 恭 order reading = Kyo-Jun notation = 恭 order part of speech = utilization of Sa-variant nouns = Sa-variant grammar information = stem, noun phrase number = 1
Conversion rule number = -1
(2)
Input = reading =
Notation = School part of speech = Suffix utilization = φ
Grammar information = φ, φ
Clause number = 1
Conversion rule number = -1
For example, when a character string “result of morpheme analysis” is selected, the
(1) Morphological number 1
Input = Morphological reading = Keitai notation = Morphological part of speech = Noun utilization = φ
Grammar information = stem, noun phrase number = 1
Conversion rule number = -1
(2)
Input = Analysis reading = Kaiseki notation = Analysis part-of-speech = Utilization of sa-variant noun = Sa-variant grammar information = Stem, noun phrase number = 2
Conversion rule number = -1
(3)
Input = Reading = Notation = Part of speech = Particle usage = φ
Grammar information = general assistance, attached phrase number = 2
Conversion rule number = -1
(4)
Input = Result reading = Notation = Result part of speech = Noun utilization = φ
Grammar information = stem, noun phrase number = 3
Conversion rule number = -1
Note that a specific method of morphological analysis is a known technique, and thus detailed description thereof will not be repeated here. In this way, the
抽出部1103は、第1のデータベース132および第2のデータベース133を参照して、解析部1102が取得した形態素から辞書検索の対象とするべき形態素(検索単語)を抽出する。以下では、抽出部1103が検索単語を抽出する処理について説明する。
The
まず、メモリ130に記憶される第1のデータベース132について説明する。図5は、本実施の形態に係る第1のデータベース132のデータ構造を示すイメージ図である。図5を参照して、第1のデータベース132は、少なくとも1つの形態素の並び方と、当該少なくとも1つの形態素のうちの辞書検索の対象とするべき形態素と、を対応付けて格納する。
First, the
たとえば、第1のデータベース132は、「ルールB1」として、固有名詞の形態素が連続する並び方と、固有名詞が連結された単語と各々の固有名詞自体と、を対応付けて格納する。たとえば、第1のデータベース132は、「ルールB2」として、一般名詞の形態素が連続する並び方と、一般名詞が連結された単語と各々の一般名詞自体と、を対応付けて格納する。たとえば、第1のデータベース132は、「ルールC2」として、活用しない自立語+付属語の並び方と、活用しない自立語と、を対応付けて格納する。たとえば、第1のデータベース132は、「ルールC3」として、活用する自立語+付属語の並び方と、活用する自立語と、を対応付けて格納する。
For example, the
これによって、抽出部1103は、第1のデータベース132を参照することによって、選択された文字列に含まれる形態素の属性の並び方に基づいて、取得された1または複数の形態素から、検索対象とするべき形態素あるいは検索対象とするべき形態素の組み合わせを抽出することが可能になる。たとえば、抽出部1103は、解析部1102によって取得された複数の形態素に基づいて、一部の形態素から構成される単語の原形を検索単語(キーワード)として出力する。
As a result, the
本実施の形態においては、メモリ130が第2のデータベース133を記憶する。以下では、第2のデータベース133について説明する。図6は、本実施の形態に係る第2のデータベース133のデータ構造を示すイメージ図である。図6を参照して、第2のデータベース133は、品詞グループ(大分類)と、品詞(小分類)と、を対応付けて記憶する。すなわち、第2のデータベース133は、形態素に大きな属性と形態素の小さな属性とを対応付けて格納する。本実施の形態においては、第2のデータベース133は、1つの品詞グループに複数の品詞が対応付けられる。
In the present embodiment, the
たとえば、「句読点」グループには、「、」、「。」、「,」、「.」、「・」、「?」、「!」などの文字が含まれる。「記号」グループには、「句読点」グループに含まれないその他の記号などが含まれる。「付属語」グループには、「助動詞」、「助詞」、「補助動詞」などの品詞が含まれる。「活用しない自立語」グループには、「名詞」、「連体詞」、「副詞」、「接続詞」、「感動詞」などの品詞が含まれる。「活用する自立語」グループには、「動詞」、「形容詞」、「形容動詞」などの品詞が含まれる。 For example, the “punctuation” group includes characters such as “,”, “.”, “,”, “.”, “•”, “?”, “!”. The “symbol” group includes other symbols that are not included in the “punctuation” group. The “adjunct” group includes parts of speech such as “auxiliary verb”, “particle”, and “auxiliary verb”. The “unused independent words” group includes parts of speech such as “nouns”, “combinants”, “adverbs”, “conjunctions”, “impression verbs” and the like. The “independent words to use” group includes parts of speech such as “verb”, “adjective”, and “adjective verb”.
これによって、抽出部1103は、第2のデータベース133を参照することによって、文字列に含まれる形態素の各々の品詞に基づいて、当該形態素がいずれの品詞グループに属するかを認識することができる。その結果、抽出部1103は、選択された文字列が第1のデータベース132のいずれのルールに該当するものであるのか、すなわち、文字列に対応する形態素の並び方が第1のデータベース132のいずれのルールに該当するものであるのかを判断することができる。
Accordingly, the
本実施の形態においては、抽出部1103が、第2のデータベース133を参照することによって形態素の品詞(小分類)を品詞グループ(大分類)に変換しているが、第1のデータベース132が形態素の品詞の並び方と検索対象とするべき形態素とを直接対応付けて格納してもよい。この場合は、抽出部1103は、第1のデータベース132を参照して、文字列に対応する形態素の品詞の並び方に基づき、直接、文字列に含まれる形態素から検索対象とするべき単語が抽出される。
In the present embodiment, the
図4に戻って、抽出部1103は、検索単語を表示制御部1105に入力する。表示制御部1105は、図1(B)および図2(B)に示すように、タッチパネル120に、抽出部1103からの1または複数の検索単語を選択可能に表示させる。すなわち、受付部1101は、タッチパネル120あるいはキーボード160を介して、検索単語の選択命令を受け付ける。
Returning to FIG. 4, the
受付部1101が検索単語の選択命令を受け付けると、表示制御部1105は、図1(C)および図2(C)に示すように、タッチパネル120に、複数の辞書の種類を選択可能に表示させる。すなわち、受付部1101は、タッチパネル120あるいはキーボードを介して辞書の選択命令を受け付ける。
When the
抽出部1103は、1または複数の検索単語を検索部1104にも入力する。検索部1104は、メモリ130の辞書データベース134を参照して、検索単語に基づいて辞書検索を行う。検索部1104は、検索結果を表示制御部1105に入力する。
The
本実施の形態においては、図7を用いて後述するように、検索部1104は、全ての辞書(辞書データベース134)を用いて、抽出部1103からの1または複数の検索単語について辞書検索を行う。ただし、変形例として、図10を用いて後述するように、検索部1104は、選択された辞書のみを用いて、選択された検索単語についてのみ辞書検索を行ってもよい。
In this embodiment, as will be described later with reference to FIG. 7, the
表示制御部1105は、図1(D)、図1(E)、図2(D)、図2(E)に示すように、検索部1104からの検索結果に基づいて、タッチパネル120に検索結果を表示させる。
As shown in FIG. 1D, FIG. 1E, FIG. 2D, and FIG. 2E, the
このような構成によって、本実施の形態に係る電子辞書100は、選択された文字列に対して形態素解析を行うことによって、形態素の原形を取得することできる。すなわち、電子辞書100は、辞書検索にてヒットし易い、あるいは辞書に登録され易い、形式(時制・態など)の単語を取得することができる。たとえば、電子辞書100は、文字列に語尾が変換している動詞などが含まれている場合であっても、当該動詞の原形を取得することによって当該動詞の原形についての検索結果を得ることが可能になる。また、電子辞書100は、選択された文字列に対して形態素解析を行うことによって、当該文字列に複数の形態素が含まれている場合であっても、当該複数の形態素を取得することができる。その結果、従来よりも柔軟に文字列に関する辞書検索を行うことができる。
With such a configuration, the
<検索処理>
次に、図3、図4、図7を参照して、本実施の形態に係る電子辞書100における検索処理について説明する。なお、図7は、本実施の形態に係る電子辞書100における検索処理の処理手順を示すイメージ図である。
<Search process>
Next, referring to FIG. 3, FIG. 4, and FIG. 7, a search process in
まず、表示制御部1105として機能するCPU110は、メモリ130からテキストデータを読み出して、タッチパネル120にテキストを表示させる。受付部1101として機能するCPU110は、タッチパネル120を介して、ユーザから文字列の選択命令を受け付けたか否かを判断する(ステップS102)。CPU110は、文字列の選択を受け付けない場合(ステップS104においてNOである場合)、ステップS102からの処理を繰り返す。
First, the
図1(A)および図2(A)に示すように、文字列の選択命令を受け付けた場合(ステップS102においてYESである場合)、検索部1104として機能するCPU110は、メモリ130の辞書データベース134を参照して、当該文字列についての辞書検索を行う(ステップS104)。CPU110は、当該文字列が辞書データベース134に登録されている単語にヒットするか否かを判断する(ステップS106)。
As shown in FIGS. 1A and 2A, when a character string selection command is received (YES in step S102),
当該文字列が辞書データベース134に登録されている単語にヒットした場合(ステップS106においてYESである場合)、表示制御部1105として機能するCPU110はタッチパネル120に検索結果を表示させる(ステップS108)。CPU110は、検索処理を終了する。
When the character string hits a word registered in the dictionary database 134 (YES in step S106), the
一方、当該文字列が辞書データベース134に登録されている単語にヒットしなかった場合(ステップS106においてNOである場合)、解析部1102と抽出部1103として機能するCPU110は、検索単語抽出処理を実行する(ステップS200)。検索単語抽出処理(S200)については、後述する。
On the other hand, if the character string does not hit a word registered in the dictionary database 134 (NO in step S106), the
CPU110は、検索単語抽出処理(ステップS200)によって得られた検索単語リストに基づき、メモリ130の辞書データベース134を参照して、1または複数の検索単語についての辞書検索を行う。(ステップS110)。CPU110は、ヒットした検索単語についての検索単語リスト(表示用リスト)を作成する。
Based on the search word list obtained by the search word extraction process (step S200), the
表示制御部1105として機能するCPU110は、表示用リストが空であるか否かを判断する(ステップS112)。CPU110は、表示用リストが空である場合(ステップS112においてYESである場合)、タッチパネル120に検索単語が見つからなかった旨のメッセージを表示させる(ステップS116)。たとえば、CPU110は、タッチパネル120に「検索単語が見つかりません!」というメッセージを表示させる。CPU110は、検索処理を終了する。
The
CPU110は、表示用リストが空でない場合(ステップS112においてNOである場合)、図1(B)および図2(B)に示すように、タッチパネル120に表示用リストを表示させる(ステップS118)。すなわち、CPU110は、図1(B)および図2(B)に示すように、ヒットした検索単語を選択可能に表示させる。受付部1101として機能するCPU110は、検索単語の選択を受け付けたか否かを判断する(ステップS120)。
If the display list is not empty (NO in step S112),
CPU110は、検索単語の選択を受け付けなかった場合(ステップS120においてNOである場合)、ステップS120を繰り返す。CPU110は、検索単語の選択を受け付けた場合(ステップS120においてYESである場合)、表示制御部1105として機能するCPU110は、タッチパネル120に辞書リストを表示させる。すなわち、CPU110は、図1(C)および図2(C)に示すように、検索単語がヒットした辞書だけを選択可能に表示させる。
CPU110 repeats step S120, when selection of a search word is not received (when it is NO in step S120). When
図8は、本実施の形態に係る検索用の辞書の選択画面の変形例を示すイメージ図である。図8を参照して、表示制御部1105として機能するCPU110は、タッチパネル120に、ヒットした単語毎に当該単語がヒットした辞書を示すボタン120Dを選択可能に同時に表示させてもよい。
FIG. 8 is an image diagram showing a modification of the search dictionary selection screen according to the present embodiment. Referring to FIG. 8,
図7に戻って、受付部1101として機能するCPU110は、タッチパネル120を介して、キャンセルボタン120Cが押下されたか否かを判断する(ステップS122)。キャンセルボタン120Cが押下された場合(ステップS122においてYESである場合)、CPU110は検索処理を終了する。あるいは、キャンセルボタン120Cが押下された場合(ステップS122においてYESである場合)、CPU110はステップS120からの処理を繰り返してもよい。キャンセルボタンが押下されなかった場合(ステップS122においてNOである場合)、CPU110は、辞書の選択を受け付けたか否かを判断する(ステップS124)。
Returning to FIG. 7, the
CPU110は、辞書の選択を受け付けない場合(ステップS124においてNOである場合)、ステップS122からの処理を繰り返す。表示制御部1105として機能するCPU110は、辞書の選択を受け付けた場合(ステップS124においてYESである場合)、タッチパネル120に検索結果を表示させる(ステップS126)。すなわち、CPU110は、和英辞典が選択された場合には、図1(D)および図2(D)に示すように、選択された単語の検索結果を表示させる。あるいは、CPU110は、国語辞典が選択された場合には、図1(E)および図2(E)に示すように、選択された単語の検索結果を表示させる。CPU110は、検索処理を終了する。
CPU110 repeats the process from step S122, when selection of a dictionary is not received (when it is NO in step S124). CPU110 which functions as the
<検索単語抽出処理>
次に、図3、図4、図9を参照して、本実施の形態に係る電子辞書100における検索単語抽出処理(S200)について説明する。なお、図9は、本実施の形態に係る電子辞書100における検索単語抽出処理の処理手順を示すイメージ図である。
<Search word extraction process>
Next, the search word extraction process (S200) in the
解析部1102として機能するCPU110は、選択された文字列が平仮名のみで構成されるか否かを判断する(ステップS202)。選択された文字列が平仮名のみで構成される場合(ステップS202においてYESである場合)、CPU110は、検索単語を示すリストとして空リストを出力する(ステップS204)。CPU110は、検索単語抽出処理(S200)を終了する。
The
CPU110は、メモリ130の形態素データベース131を参照して、選択された文字列に関して形態素解析を実行する(ステップS206)。抽出部1103として機能するCPU110は、形態素解析の結果に基づいて、選択された文字列に記号が含まれているか否かを判断する(ステップS208)。選択された文字列に記号が含まれている場合(ステップS208においてYESである場合)、CPU110は、検索単語を示すリストとして空リストを出力する(ステップS204)。CPU110は、検索単語抽出処理(S200)を終了する。
The
選択された文字列に記号が含まれていない場合(ステップS208においてNOである場合)、CPU110は、第1のデータベース132を参照して、選択された文字列に形態素が1つだけ含まれるか否かを判断する(ステップS210)。選択された文字列に形態素が1つだけ含まれる場合(ステップS210においてYESである場合)、CPU110は、検索単語を示すリストとして空リストを出力する(ステップS204)。CPU110は、検索単語抽出処理(S200)を終了する。
If the selected character string does not include a symbol (NO in step S208),
選択された文字列に形態素が複数含まれる場合(ステップS210においてNOである場合)、CPU110は、第2のデータベース133を参照して、形態素毎の品詞(小属性)を品詞グループ(大属性)に変換する(ステップS212)。CPU110は、第1のデータベース132を参照して、形態素に対応する品詞グループの並び方について、予め登録されているルールを検索する(ステップS214)。CPU110は、検索結果に基づいて、形態素に対応する品詞グループの並び方が予め登録されているルールのいずれかに該当するか否かを判断する(ステップS216)。
When the selected character string includes a plurality of morphemes (NO in step S210),
CPU110は、形態素に対応する品詞グループの並び方が予め登録されているルールのいずれかに該当する場合(ステップS216においてYESである場合)、検索対象とするべき形態素を検索単語として出力する(ステップS218)。CPU110は、検索単語抽出処理(S200)を終了する。 CPU110 outputs the morpheme which should be made a search object as a search word, when the arrangement of the part of speech group corresponding to a morpheme corresponds to either of the rules registered beforehand (in step S216, it is YES) (step S218). ). CPU110 complete | finishes a search word extraction process (S200).
CPU110は、形態素に対応する品詞グループの並び方が予め登録されているルールのいずれにも該当しない場合(ステップS216においてNOである場合)、検索単語を示すリストとして空リストを出力する(ステップS204)。CPU110は、検索単語抽出処理(S200)を終了する。
When the arrangement of the part of speech groups corresponding to the morphemes does not correspond to any of the rules registered in advance (NO in step S216),
<検索処理の変形例>
次に、図3、図4、図10を参照して、本実施の形態に係る電子辞書100における検索処理の変形例について説明する。なお、図10は、本実施の形態に係る電子辞書100における検索処理の変形例の処理手順を示すイメージ図である。本変形例においては、電子辞書100は、検索単語の選択と辞書の選択とを受け付けた後に、辞書検索を行うものである。
<Modification of search processing>
Next, with reference to FIG. 3, FIG. 4, and FIG. 10, a modified example of the search process in the
まず、表示制御部1105として機能するCPU110は、メモリ130からテキストデータを読み出して、タッチパネル120にテキストを表示させる。受付部1101として機能するCPU110は、図1(A)および図2(A)に示すように、タッチパネル120を介して、ユーザから文字列の選択命令を受け付けたか否かを判断する(ステップS102)。CPU110は、文字列の選択を受け付けない場合(ステップS104においてNOである場合)、ステップS102からの処理を繰り返す。
First, the
検索部1104として機能するCPU110は、文字列の選択命令を受け付けた場合(ステップS102においてYESである場合)、メモリ130の辞書データベース134を参照して、当該文字列についての辞書検索を行う(ステップS104)。CPU110は、当該文字列が辞書データベース134に登録されている単語にヒットするか否かを判断する(ステップS106)。
When the
当該文字列が辞書データベース134に登録されている単語にヒットした場合(ステップS106においてYESである場合)、表示制御部1105として機能するCPU110はタッチパネル120に検索結果を表示させる(ステップS108)。CPU110は、検索処理を終了する。
When the character string hits a word registered in the dictionary database 134 (YES in step S106), the
一方、当該文字列が辞書データベース134に登録されている単語にヒットしなかった場合(ステップS106においてYESである場合)、解析部1102と抽出部1103として機能するCPU110は、検索単語抽出処理を実行する(ステップS200)。検索単語抽出処理(S200)については、前述したものと同様であるため、ここでは説明を繰り返さない。
On the other hand, if the character string does not hit a word registered in the dictionary database 134 (YES in step S106), the
表示制御部1105として機能するCPU110は、検索単語抽出処理(ステップS200)によって得られた検索単語リストに基づき、検索単語リストが空であるか否かを判断する(ステップS112)。CPU110は、検索単語リストが空である場合(ステップS112においてYESである場合)、タッチパネル120に検索単語が見つからなかった旨のメッセージを表示させる(ステップS116)。たとえば、CPU110は、タッチパネル120に「検索単語が見つかりません!」というメッセージを表示させる。CPU110は、検索処理を終了する。
The
CPU110は、検索単語リストが空でない場合(ステップS112においてNOである場合)、図1(B)および図2(B)に示すように、タッチパネル120に検索単語リストを表示させる(ステップS118)。すなわち、CPU110は、図1(B)および図2(B)に示すように、抽出された検索単語を選択可能に表示させる。受付部1101として機能するCPU110は、検索単語の選択を受け付けたか否かを判断する(ステップS120)。
If the search word list is not empty (NO in step S112),
CPU110は、検索単語の選択を受け付けなかった場合(ステップS120においてNOである場合)、ステップS120を繰り返す。CPU110は、検索単語の選択を受け付けた場合(ステップS120においてYESである場合)、表示制御部1105として機能するCPU110は、タッチパネル120に辞書リストを表示させる。すなわち、CPU110は、図1(C)および図2(C)に示すように、辞書を選択可能に表示させる。
CPU110 repeats step S120, when selection of a search word is not received (when it is NO in step S120). When
受付部1101として機能するCPU110は、タッチパネル120を介して、キャンセルボタン120Cが押下されたか否かを判断する(ステップS122)。キャンセルボタン120Cが押下された場合(ステップS122においてYESである場合)、検索処理を終了する。キャンセルボタンが押下されなかった場合(ステップS122においてNOである場合)、CPU110は、辞書の選択を受け付けたか否かを判断する(ステップS124)。
The
CPU110は、辞書の選択を受け付けない場合(ステップS124においてNOである場合)、ステップS122からの処理を繰り返す。検索部1104として機能するCPU110は、辞書の選択を受け付けた場合(ステップS124においてYESである場合)、メモリ130の辞書データベース134を参照して、選択された検索単語についての辞書検索を行う。(ステップS128)。
CPU110 repeats the process from step S122, when selection of a dictionary is not received (when it is NO in step S124). When
表示制御部1105として機能するCPU110は、検索単語がヒットしたか否かを判断する(ステップS130)。検索単語がヒットしなかった場合(ステップS130においてNOである場合)、CPU110は、タッチパネル120に「該当する単語は見つかりません!」というメッセージを表示させる(ステップS116)。CPU110は、検索処理を終了する。
The
検索単語がヒットした場合(ステップS130においてNOである場合)、CPU110は、タッチパネル120に検索結果を表示させる(ステップS126)。すなわち、CPU110は、和英辞典が選択された場合には、図1(D)および図2(D)に示すように、選択された単語の検索結果を表示させる。あるいは、CPU110は、国語辞典が選択された場合には、図1(E)および図2(E)に示すように、選択された単語の検索結果を表示させる。CPU110は、検索処理を終了する。
If the search word is hit (NO in step S130),
<その他の実施の形態>
本発明は、システム或いは装置にプログラムを供給することによって達成される場合にも適用できることはいうまでもない。そして、本発明を達成するためのソフトウェアによって表されるプログラムを格納した外部の記録媒体141(メモリ130)を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU)が外部の記録媒体141(メモリ130)に格納されたプログラムコードを読出し実行することによっても、本発明の効果を享受することが可能となる。
<Other embodiments>
It goes without saying that the present invention can also be applied to a case where it is achieved by supplying a program to a system or apparatus. Then, an external recording medium 141 (memory 130) storing a program represented by software for achieving the present invention is supplied to the system or apparatus, and the computer (or CPU or MPU) of the system or apparatus is externally supplied. The effect of the present invention can also be enjoyed by reading and executing the program code stored in the recording medium 141 (memory 130).
この場合、外部の記録媒体141(メモリ130)から読出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコードを記憶した外部の記録媒体141(メモリ130)は本発明を構成することになる。 In this case, the program code itself read from the external recording medium 141 (memory 130) realizes the functions of the above-described embodiment, and the external recording medium 141 (memory 130) storing the program code is This constitutes the present invention.
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施の形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれることは言うまでもない。 Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) running on the computer based on the instruction of the program code However, it is needless to say that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
さらに、外部の記録媒体141(メモリ130)から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わる他の記録媒体に書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれることは言うまでもない。 Further, after the program code read from the external recording medium 141 (memory 130) is written to another recording medium provided in a function expansion board inserted in the computer or a function expansion unit connected to the computer, This includes the case where the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Needless to say.
今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は、上記した説明ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
100 電子辞書、120 タッチパネル、120A 検索単語リスト、120B 検索辞書リスト、120C キャンセルボタン、130 メモリ、131 形態素データベース、132 第1のデータベース、133 第2のデータベース、134 辞書データベース、140 メモリインターフェイス、141 記録媒体、150 通信インターフェイス、1101 受付部、1102 解析部、1103 抽出部、1104 検索部、1105 表示制御部。 100 electronic dictionary, 120 touch panel, 120A search word list, 120B search dictionary list, 120C cancel button, 130 memory, 131 morpheme database, 132 first database, 133 second database, 134 dictionary database, 140 memory interface, 141 record Medium, 150 communication interface, 1101 reception unit, 1102 analysis unit, 1103 extraction unit, 1104 search unit, 1105 display control unit.
Claims (8)
テキストを表示するためのディスプレイと、
前記テキストの中から文字列の選択を受け付けるための受付部と、
選択された前記文字列に対して形態素解析を行うことによって、前記文字列に含まれる形態素を取得するための解析部と、
前記辞書データを参照することによって、前記形態素についての辞書検索を行うための検索部と、
前記ディスプレイに検索結果を表示させるための表示制御部とを備える、電子辞書。 A storage unit for storing dictionary data;
A display for displaying text,
An accepting unit for accepting selection of a character string from the text;
An analysis unit for acquiring a morpheme included in the character string by performing a morphological analysis on the selected character string;
A search unit for performing a dictionary search for the morpheme by referring to the dictionary data;
An electronic dictionary comprising: a display control unit for displaying search results on the display.
前記電子辞書は、前記第1のテーブルを参照して、取得された前記形態素の中から前記検索対象となる形態素を抽出するための抽出部をさらに備え、
前記検索部は、抽出された形態素についての辞書検索を行う、請求項1に記載の電子辞書。 The storage unit stores a first table for storing morpheme arrangements and morphemes to be searched in association with each other,
The electronic dictionary further includes an extraction unit for extracting the morpheme to be searched from the acquired morphemes with reference to the first table,
The electronic dictionary according to claim 1, wherein the search unit performs a dictionary search for the extracted morphemes.
前記第1のテーブルは、形態素の属性の並び方と検索対象となる形態素の属性とを対応付けて格納し、
前記抽出部は、前記第1のテーブルを参照して、取得された前記形態素の原形の中から前記検索対象となる形態素の属性に対応する前記形態素の原形を抽出し、
前記検索部は、抽出された前記形態素の原形についての辞書検索を行い、
前記表示制御部は、前記ディスプレイに前記辞書検索でヒットした前記形態素の原形を選択可能に表示させ、
前記受付部は、前記形態素の原形の選択を受け付け、
前記表示制御部は、前記ディスプレイに選択された前記形態素の原形についての検索結果を表示させる、請求項2に記載の電子辞書。 The analysis unit acquires the original form of the morpheme and the attribute of the morpheme as information on each of the morphemes included in the character string,
The first table stores the arrangement of morpheme attributes and the morpheme attributes to be searched in association with each other,
The extraction unit refers to the first table and extracts the original form of the morpheme corresponding to the attribute of the search target morpheme from the acquired original form of the morpheme,
The search unit performs a dictionary search for the original form of the extracted morpheme,
The display control unit displays the original form of the morpheme that has been hit by the dictionary search on the display in a selectable manner,
The reception unit receives selection of the original form of the morpheme,
The electronic dictionary according to claim 2, wherein the display control unit displays a search result for the original form of the selected morpheme on the display.
前記第1のテーブルは、形態素の属性の並び方と検索対象となる形態素の属性とを対応付けて格納し、
前記抽出部は、前記第1のテーブルを参照して、取得された前記形態素の原形の中から前記検索対象となる形態素の属性に対応する前記形態素の原形を抽出し、
前記表示制御部は、前記ディスプレイに抽出された前記形態素の原形を選択可能に表示させ、
前記受付部は、前記形態素の原形の選択を受け付け、
前記検索部は、選択された形態素の原形についての辞書検索を行い、
前記表示制御部は、前記ディスプレイに選択された前記形態素の原形についての検索結果を表示させる、請求項2に記載の電子辞書。 The analysis unit acquires the original form of the morpheme and the attribute of the morpheme as information on each of the morphemes included in the character string,
The first table stores the arrangement of morpheme attributes and the morpheme attributes to be searched in association with each other,
The extraction unit refers to the first table and extracts the original form of the morpheme corresponding to the attribute of the search target morpheme from the acquired original form of the morpheme,
The display control unit displays the original form of the extracted morpheme on the display in a selectable manner,
The reception unit receives selection of the original form of the morpheme,
The search unit performs a dictionary search for the original form of the selected morpheme,
The electronic dictionary according to claim 2, wherein the display control unit displays a search result for the original form of the selected morpheme on the display.
前記演算処理部が、前記ディスプレイにテキストを表示させるステップと、
前記演算処理部が、前記テキストの中から文字列の選択を受け付けるステップと、
前記演算処理部が、選択された前記文字列に対して形態素解析を行うことによって、前記文字列に含まれる形態素を取得するステップと、
前記演算処理部が、前記辞書データを参照することによって、前記形態素についての辞書検索を行うステップと、
前記演算処理部が、前記ディスプレイに検索結果を表示させるステップとを備える、辞書検索方法。 A dictionary search method in an electronic dictionary including an arithmetic processing unit, a display, and a storage unit for storing dictionary data,
The arithmetic processing unit displaying text on the display;
The arithmetic processing unit accepting selection of a character string from the text;
The arithmetic processing unit acquires a morpheme included in the character string by performing a morphological analysis on the selected character string;
The arithmetic processing unit performing a dictionary search for the morpheme by referring to the dictionary data; and
A dictionary search method, comprising: the arithmetic processing unit displaying a search result on the display.
前記検索プログラムは、前記演算処理部に、
前記ディスプレイにテキストを表示させるステップと、
前記テキストの中から文字列の選択を受け付けるステップと、
選択された前記文字列に対して形態素解析を行うことによって、前記文字列に含まれる形態素を取得するステップと、
前記辞書データを参照することによって、前記形態素についての辞書検索を行うステップと、
前記ディスプレイに検索結果を表示させるステップとを実行させる、辞書検索プログラム。 A dictionary search program for making a dictionary search in an electronic dictionary including an arithmetic processing unit, a display, and a storage unit for storing dictionary data,
The search program is stored in the arithmetic processing unit.
Displaying text on the display;
Receiving a selection of a character string from the text;
Obtaining a morpheme included in the character string by performing a morphological analysis on the selected character string;
Performing a dictionary search for the morpheme by referring to the dictionary data;
A dictionary search program for executing a step of displaying a search result on the display.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009192276A JP2011044031A (en) | 2009-08-21 | 2009-08-21 | Electronic dictionary, dictionary search method and dictionary search program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009192276A JP2011044031A (en) | 2009-08-21 | 2009-08-21 | Electronic dictionary, dictionary search method and dictionary search program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011044031A true JP2011044031A (en) | 2011-03-03 |
Family
ID=43831414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009192276A Pending JP2011044031A (en) | 2009-08-21 | 2009-08-21 | Electronic dictionary, dictionary search method and dictionary search program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2011044031A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013045139A (en) * | 2011-08-22 | 2013-03-04 | Hitachi Consumer Electronics Co Ltd | Network terminal system, terminal device, display device and information retrieval method in network terminal system |
CN110709830A (en) * | 2017-05-16 | 2020-01-17 | 富士通株式会社 | Analysis program, analysis method, and analysis device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04137070A (en) * | 1990-09-28 | 1992-05-12 | Toshiba Corp | Electronic book device |
JPH0773200A (en) * | 1993-09-07 | 1995-03-17 | Ricoh Co Ltd | Key word extracting method |
JPH0969087A (en) * | 1995-08-31 | 1997-03-11 | Toshiba Corp | Device and method for document preparation |
JPH09185629A (en) * | 1996-01-08 | 1997-07-15 | Hitachi Ltd | Machine translation method |
JP2008071017A (en) * | 2006-09-13 | 2008-03-27 | Casio Comput Co Ltd | Electronic device with dictionary function and program |
-
2009
- 2009-08-21 JP JP2009192276A patent/JP2011044031A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04137070A (en) * | 1990-09-28 | 1992-05-12 | Toshiba Corp | Electronic book device |
JPH0773200A (en) * | 1993-09-07 | 1995-03-17 | Ricoh Co Ltd | Key word extracting method |
JPH0969087A (en) * | 1995-08-31 | 1997-03-11 | Toshiba Corp | Device and method for document preparation |
JPH09185629A (en) * | 1996-01-08 | 1997-07-15 | Hitachi Ltd | Machine translation method |
JP2008071017A (en) * | 2006-09-13 | 2008-03-27 | Casio Comput Co Ltd | Electronic device with dictionary function and program |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013045139A (en) * | 2011-08-22 | 2013-03-04 | Hitachi Consumer Electronics Co Ltd | Network terminal system, terminal device, display device and information retrieval method in network terminal system |
CN110709830A (en) * | 2017-05-16 | 2020-01-17 | 富士通株式会社 | Analysis program, analysis method, and analysis device |
CN110709830B (en) * | 2017-05-16 | 2022-11-22 | 富士通株式会社 | Recording medium storing analysis program, analysis method, and analysis device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8199112B2 (en) | Character input device | |
JP2009003957A (en) | Information equipment | |
JP2003223437A (en) | Method of displaying candidate for correct word, method of checking spelling, computer device, and program | |
US20080306731A1 (en) | Electronic equipment equipped with dictionary function | |
JP4983943B2 (en) | Text display device and program | |
JP2008123553A (en) | Information apparatus | |
JP2011044031A (en) | Electronic dictionary, dictionary search method and dictionary search program | |
US8335680B2 (en) | Electronic apparatus with dictionary function background | |
JP5482516B2 (en) | Electronic device and program with dictionary function | |
US20130249804A1 (en) | Handheld electronic device including automatic preferred selection of a punctuation, and associated method | |
JP2008217052A (en) | Information display device and information display program | |
JP3793878B2 (en) | Information display control device and program | |
JPH07334499A (en) | Input device for character string | |
JP2008059169A (en) | Chinese example sentence retrieval apparatus and program for process of retrieving chinese example sentence | |
JPS60254367A (en) | Sentence analyzer | |
JPH11161650A (en) | Electronic dictionary | |
JP2008117310A (en) | Dictionary retrieval device and dictionary retrieval processing program | |
JP2003178087A (en) | Retrieval device and method for electronic foreign language dictionary | |
JP2010061532A (en) | Electronic dictionary, and retrieval method and retrieval program of the same | |
JP2010061340A (en) | Electronic apparatus with dictionary function, and program | |
JP2008262248A (en) | Character search method | |
JP2005044071A (en) | Electronic dictionary | |
JP5338482B2 (en) | Chinese sentence example search device and program | |
JP2004295603A (en) | Information display controller, server, and program | |
KR20230037415A (en) | korean disambiguation sentence input system for search |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120704 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130701 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130709 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130829 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20131105 |