JP2007193641A - Information retrieval device, information retrieval method, information retrieval program and computer-readable recording medium recording information retrieval program - Google Patents
Information retrieval device, information retrieval method, information retrieval program and computer-readable recording medium recording information retrieval program Download PDFInfo
- Publication number
- JP2007193641A JP2007193641A JP2006012198A JP2006012198A JP2007193641A JP 2007193641 A JP2007193641 A JP 2007193641A JP 2006012198 A JP2006012198 A JP 2006012198A JP 2006012198 A JP2006012198 A JP 2006012198A JP 2007193641 A JP2007193641 A JP 2007193641A
- Authority
- JP
- Japan
- Prior art keywords
- search
- character string
- modification
- data
- search key
- 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 information search device, an information search method, an information search program, and a computer-readable recording medium on which the information search program is recorded, and in particular, an information search device, an information search method suitable for searching a displayed electronic document, The present invention relates to an information search program and a computer-readable recording medium on which the information search program is recorded.
文書を表示する機能と、その文書中に出現する単語や用語の意味を調べる機能とを兼ね備えた製品が増えてきている。 An increasing number of products have a function of displaying a document and a function of examining the meaning of words and terms appearing in the document.
たとえば、電子辞書には、ジャンプ機能と呼ばれる機能が搭載されてきている。ジャンプ機能とは、検索を行う文字列を入力するための画面に戻ることなく、直接画面に表示されている文章の中から、カーソルなどを利用して、意味を調べたい文字列を選択し、検索する機能である。PDA(Personal Digital Assistant、携帯情報端末)においても、同様の機能を備えた端末が存在する。特許文献1や特許文献2には、こうしたジャンプ機能の具体的な実現方法が開示されている。
For example, a function called a jump function has been installed in an electronic dictionary. The jump function is to select the character string you want to check the meaning from the text displayed on the screen directly using the cursor etc. without returning to the screen for entering the character string to search. This is a search function. In PDA (Personal Digital Assistant, portable information terminal), there are terminals having similar functions.
特許文献1は、単語を入力するための入力キーと、入力キーにより入力した単語の内容を記憶するRAM(Random Access Memory)と、入力された単語に対応する訳の内容を記憶するROM(Read Only Memory)と、内容を表示する表示装置を備えた電子辞書において、表示された内容の画面の中から任意の範囲を指定し、指定された日本語の文字列を見出し語として、さらに見出し語の内容が表示されることを特徴とする電子辞書を開示する。
特許文献1に開示された発明によると、任意の範囲の日本語の文字列からジャンプしてその訳語を表示できる。
According to the invention disclosed in
特許文献2は、文章データの中から検索を行う文字列を選択する検索キーの選択装置において、文章データ中から選択された任意の文字が入力されるキー入力部と、キー入力部に入力された任意の文字を先頭文字とする文章データに含まれる文字列と、外部の記憶部に検索情報の見出し語として格納された文字列とが一致するか否かを判定する判定部と、判定部が一致すると判定した場合に、一致した文字列を検索キーとして選択する選択部とを備える選択装置を開示する。
特許文献2に開示された発明によると、カーソルを移動させて文字列の先頭文字を指定するだけで、検索する文字列の指定を可能とし、ユーザの操作性を大幅に向上させることができる。たとえば、図28のように「電」をカーソルで指定するだけで、図29のように、自動的に「電子メール」が検索文字として選択される。
しかしながら、特許文献1および特許文献2に開示された発明では、隠された文字が検索結果やその説明文に表示されてしまい、ユーザにとって意図しない結果が生じる(見たくないのに表示されてしまう)という問題点がある。
However, in the inventions disclosed in
たとえば、図30のように、文書中にマスクで隠された部分が存在し、そのマスクの中に「家康」という文字列が存在する場合を考える。以下の説明において、「マスク」とは、文字の一部を塗りつぶして背後の文字を隠す機能を意味する。「マスク」は、参考書などで勉強をするときの、特殊なペンで文字の周囲に色を塗った後、特殊な下敷きを載せて色を塗った箇所を隠す動作を、学習装置で実現するための機能である。「マスク」に類似する機能として、文章の一部に矩形を表示し、その矩形中にキーボードやマウスを用いて文字を入力させる機能がある。以下の説明において、この機能を「テキストボックス」と称する。「テキストボックス」は、文章の一部を四角や下線に置き換え、かつ置き換えられた四角の中や下線の上などに当てはまる文字を記入させるといった、参考書などによく採用される書式を、学習装置で実現するための機能である。特許文献1および特許文献2に開示された発明において「徳川」を選択し、ジャンプ機能を用いて検索を行うと、図31のように、マスクによって隠されている「家康」を含む検索結果が表示されてしまう。特許文献1および特許文献2に開示された発明において、図32のように「関ヶ原」を選択し、ジャンプ機能を用いて検索を行い、検索結果である「関ヶ原の戦い」についての説明文を表示させると、図33のように、マスクによって隠されている「家康」を含む説明文が表示されてしまう。
For example, as shown in FIG. 30, a case where a portion hidden by a mask exists in a document and a character string “Ieyasu” exists in the mask is considered. In the following description, “mask” means a function of painting a part of a character and hiding the character behind it. “Mask” is a learning device that uses a special pen to paint around a character and then hides the painted area with a special underlay when studying with reference books. It is a function for. As a function similar to “mask”, there is a function of displaying a rectangle in a part of a sentence and inputting characters in the rectangle using a keyboard or a mouse. In the following description, this function is referred to as a “text box”. “Text Box” is a learning device that uses a format often used for reference books, such as replacing a part of a sentence with a square or underline, and letting the user enter characters that fit in the replaced square or underline. It is a function to realize with. When “Tokukawa” is selected in the inventions disclosed in
本発明は、上述の問題点を解決するためになされたものであって、その目的は、ユーザの意図しない内容の表示を防ぐことができる情報検索装置、情報検索方法、情報検索プログラム、および情報検索プログラムを記録したコンピュータ読取り可能な記録媒体を提供することにある。 The present invention has been made to solve the above-described problems, and an object of the present invention is to provide an information search device, an information search method, an information search program, and information that can prevent display of contents not intended by the user. An object of the present invention is to provide a computer-readable recording medium in which a search program is recorded.
上記目的を達成するために、本発明のある局面に従うと、情報検索装置は、記憶手段と、第1の修飾テーブル生成手段と、文書用の表示手段と、第1の検出手段と、設定手段と、検索手段と、結果用の表示手段とを含む。記憶手段は、文書を構成する文字列のデータである文字列データと文字列に対する文字修飾のデータとを含む、テキストデータテーブルを記憶する。第1の修飾テーブル生成手段は、テキストデータテーブルが含むデータを組み合わせることにより、文字修飾の対象となる文字列のデータテーブルである修飾テーブルを、文字修飾の種類ごとに生成する。文書用の表示手段は、テキストデータテーブルに基づき、文書を表示する。第1の検出手段は、ユーザの操作に基づいて、ユーザが文書の中から検索しようとする文字列である検索キーを検出する。設定手段は、検索に対する制約を設定する。検索手段は、第1の検出手段が検索キーを検出すれば、検索に対する制約に従って、テキストデータテーブルの中から、検索キーを含む文字列を検索する。結果用の表示手段は、検索キーを含む文字列を表示する。 In order to achieve the above object, according to an aspect of the present invention, an information search apparatus includes a storage unit, a first modification table generation unit, a document display unit, a first detection unit, and a setting unit. And search means and display means for results. The storage means stores a text data table including character string data that is character string data constituting the document and character modification data for the character string. The first modification table generation means generates a modification table that is a data table of a character string to be subjected to character modification for each type of character modification by combining data included in the text data table. The document display means displays the document based on the text data table. The first detection means detects a search key, which is a character string that the user intends to search from the document, based on a user operation. The setting means sets a restriction on the search. When the first detection means detects the search key, the search means searches for a character string including the search key from the text data table according to the restriction on the search. The result display means displays a character string including the search key.
また、上述の設定手段は、文字修飾の対象となる文字列である修飾付き文字列に対する検索キーの文書における位置と検索キーから修飾付き文字列までの距離とに応じた、検索の条件を設定するための手段を含むことが望ましい。併せて、検索手段は、第1の検出手段が検索キーを検出すれば、検索の条件に従って、テキストデータテーブルの中から、検索キーを含む文字列を検索するための手段を含むことが望ましい。 In addition, the setting means described above sets a search condition according to the position of the search key in the document with respect to the modified character string that is the character string subject to character modification and the distance from the search key to the modified character string. It is desirable to include means for doing so. In addition, it is preferable that the search means includes means for searching for a character string including the search key from the text data table according to the search condition if the first detection means detects the search key.
もしくは、上述の検索の条件を設定するための手段は、検索キーから修飾付き文字列までの距離が閾値以下であって、検索キーが文書において修飾付き文字列の前にあるか否かを判断するための手段と、検索キーから修飾付き文字列までの距離が閾値以下であって、検索キーが修飾付き文字列の前にある場合、後方一致、完全一致、およびワイルドカード検索を検索の条件とするように、検索の条件を設定するための手段とを含むことが望ましい。 Alternatively, the means for setting the search condition described above determines whether the distance from the search key to the qualified character string is equal to or less than a threshold value and the search key is in front of the qualified character string in the document. If the distance from the search key to the qualified character string is less than the threshold and the search key is before the qualified character string, the search conditions are backward match, exact match, and wildcard search. It is desirable to include a means for setting search conditions.
もしくは、上述の検索キーから修飾付き文字列までの距離は、検索キーから修飾付き文字列までの間に存在する文字の個数に対応する距離であることが望ましい。 Alternatively, the distance from the search key to the qualified character string is preferably a distance corresponding to the number of characters existing between the search key and the qualified character string.
もしくは、上述の検索キーから修飾付き文字列までの距離は、検索キーから修飾付き文字列までの形態素の個数に対応する距離であることが望ましい。 Alternatively, the distance from the search key to the qualified character string is preferably a distance corresponding to the number of morphemes from the search key to the qualified character string.
もしくは、上述の閾値はゼロであることが望ましい。
もしくは、検索の条件を設定するための手段は、検索キーから修飾付き文字列までの距離が閾値以下であって、検索キーが文書において修飾付き文字列の後にあるか否かを判断するための手段と、検索キーから修飾付き文字列までの距離が閾値以下であって、検索キーが修飾付き文字列の後にある場合、前方一致、完全一致、およびワイルドカード検索を検索の条件とするように、検索の条件を設定するための手段とを含むことが望ましい。
Alternatively, the above threshold is preferably zero.
Alternatively, the means for setting the search condition is for determining whether the distance from the search key to the qualified character string is equal to or less than a threshold value and the search key is after the qualified character string in the document. If the distance between the means and the search key to the qualified character string is less than the threshold and the search key is after the qualified character string, the search condition is forward match, exact match, and wildcard search. And means for setting search conditions.
もしくは、検索の条件を設定するための手段は、検索キーが修飾付き文字列を含むか否かを判断するための手段と、検索キーが修飾付き文字列を含む場合、前方一致、後方一致、部分一致、および完全一致を検索の条件とするように、検索の条件を設定するための手段とをさらに含むことが望ましい。 Alternatively, the means for setting the search condition includes a means for determining whether or not the search key includes a qualified character string, and if the search key includes a qualified character string, a forward match, a backward match, It is desirable to further include means for setting search conditions so that partial matches and complete matches are used as search conditions.
また、上述の設定手段は、文字修飾の対象となる文字列である修飾付き文字列の少なくとも一部と、検索キーの少なくとも一部とが一致すると、検索を禁止するような制約を設定するための手段を含むことが望ましい。併せて、検索手段は、第1の検出手段が検索キーを検出すれば、検索を禁止するような制約がある場合を除き、テキストデータテーブルの中から、検索キーを含む文字列を検索するための手段を含むことが望ましい。 In addition, the setting means described above sets a restriction that prohibits a search when at least a part of a character string with a modification, which is a character string to be character-modified, matches at least a part of a search key. It is desirable to include these means. At the same time, the search means searches for the character string including the search key from the text data table, unless there is a restriction that prohibits the search if the first detection means detects the search key. It is desirable to include these means.
もしくは、上述の検索を禁止するような制約を設定するための手段は、修飾付き文字列が検索キーを含むか否かを判断するための手段と、検索キーが修飾付き文字列を含むか否かを判断するための手段と、修飾付き文字列が検索キーを含む場合、および検索キーが修飾付き文字列を含む場合のいずれかに該当すれば、検索を禁止するような制約を設定するための手段とを含むことが望ましい。 Alternatively, the means for setting the restriction that prohibits the search described above includes means for determining whether or not the qualified character string includes a search key, and whether or not the search key includes a qualified character string. In order to set a constraint that prohibits the search if the means for determining whether or not the qualified character string includes a search key and the search key includes a qualified character string It is desirable to include these means.
また、上述の情報検索装置は、修飾付き文字列の少なくとも一部と、検索キーの少なくとも一部とが一致すると、表示を禁止するような制約を設定するための手段をさらに含むことが望ましい。併せて、結果用の表示手段は、表示を禁止するような制約がある場合を除き、検索キーを含む文字列を表示するための手段を含むことが望ましい。 In addition, it is preferable that the above-described information search apparatus further includes means for setting a restriction that prohibits display when at least a part of the qualified character string matches at least a part of the search key. In addition, the result display means preferably includes means for displaying a character string including a search key, unless there is a restriction that prohibits display.
また、上述の記憶手段は、テキストデータテーブルと共に、単語についての説明文を表わす説明文データをさらに含むことが望ましい。併せて、情報検索装置は、第2の検出手段と、第2の修飾テーブル生成手段と、説明用の表示手段とをさらに含むことが望ましい。第2の検出手段は、ユーザの操作に基づいて、ユーザが説明文の表示を希望している単語を検出する。第2の修飾テーブル生成手段は、説明文データのうち、ユーザが説明文の表示を希望する単語についての説明文である特定説明文を表わすデータについて、修飾テーブルのデータが表わす文字列と同じ文字列が、修飾テーブルのデータが表わす文字列と同じ文字修飾の対象となるように、特定説明文を構成する文字列についての文字修飾を表わすデータからなるデータテーブルである、説明用修飾テーブルを生成する。説明用の表示手段は、説明用修飾テーブルが含むデータの内容に従って、特定説明文を表示する。 Moreover, it is preferable that the above-mentioned storage means further includes explanatory text data representing an explanatory text about the word, together with the text data table. In addition, it is preferable that the information search apparatus further includes a second detection unit, a second modification table generation unit, and a display unit for explanation. A 2nd detection means detects the word which the user desires to display an explanatory note based on a user's operation. The second modification table generating means uses the same character as the character string represented by the data in the modification table for the data representing the specific explanation that is the explanation for the word that the user wants to display the explanation in the explanation data. Generates a modification table for explanation, which is a data table composed of data representing character modification of the character string constituting the specific description so that the column is subject to the same character modification as the character string represented by the data in the modification table To do. The explanation display means displays the specific explanation according to the contents of the data included in the explanation modification table.
また、上述の記憶手段は、テキストデータテーブルと共に、単語についての説明文を表わす説明文データをさらに含むことが望ましい。併せて、情報検索装置は、第2の検出手段と、制約を設定するための手段と、説明用の表示手段とをさらに含むことが望ましい。第2の検出手段は、ユーザの操作に基づいて、ユーザが説明文の表示を希望している単語を検出する。制約を設定するための手段は、ユーザが説明文の表示を希望する単語についての説明文である特定説明文のうちいずれかの部分を表わす文字列が、修飾テーブルのデータが表わす文字列と同じ場合、特定説明文の表示を禁止するような制約を設定する。説明用の表示手段は、第2の検出手段が単語を検出すると、特定説明文の表示を禁止するような制約がある場合を除き、特定説明文を表示する。 Moreover, it is preferable that the above-mentioned storage means further includes explanatory text data representing an explanatory text about the word together with the text data table. In addition, it is desirable that the information search apparatus further includes a second detection unit, a unit for setting a constraint, and a display unit for explanation. A 2nd detection means detects the word which the user desires to display an explanatory note based on a user's operation. The means for setting the constraint is that the character string representing any part of the specific descriptive text that is the descriptive text for the word that the user wants to display the descriptive text is the same as the character string represented by the data in the modification table In such a case, a restriction that prohibits the display of the specific explanatory text is set. The explanation display means displays the specific explanation unless there is a restriction that prohibits the display of the specific explanation when the second detection means detects the word.
また、上述の結果用の表示手段は、第3の修飾テーブル生成手段と、文字列を表示するための手段とを含むことが望ましい。第3の修飾テーブル生成手段は、検索キーを含む文字列のうち修飾テーブルのデータが表わす文字列と同じ文字列に、修飾テーブルのデータが表わす文字列と同じ文字修飾を表わすデータを対応付けることにより、検索キーを含む文字列についての文字修飾を表わすデータのデータテーブルである、表示用修飾テーブルを生成する。文字列を表示するための手段は、表示用修飾テーブルが含むデータの内容に従って、検索キーを含む文字列を表示する。併せて、情報検索装置は、表示用修飾テーブルを記憶するための手段をさらに含むことが望ましい。 Moreover, it is preferable that the display means for results described above includes third modification table generation means and means for displaying a character string. The third modification table generating means associates data representing the same character modification as the character string represented by the modification table data with the same character string represented by the modification table data among the character strings including the search key. Then, a display modification table, which is a data table of data representing the character modification of the character string including the search key, is generated. The means for displaying the character string displays the character string including the search key according to the contents of the data included in the display modification table. In addition, it is desirable that the information retrieval apparatus further includes means for storing the display modification table.
本発明の他の局面に従うと、情報検索方法は、記憶ステップと、第1の修飾テーブル生成ステップと、文書用の表示ステップと、第1の検出ステップと、設定ステップと、検索ステップと、結果用の表示ステップとを含む。記憶ステップは、文書を構成する文字列のデータである文字列データと文字列に対する文字修飾のデータとを含む、テキストデータテーブルを記憶する。第1の修飾テーブル生成ステップは、テキストデータテーブルが含むデータを組み合わせることにより、文字修飾の対象となる文字列のデータテーブルである修飾テーブルを、文字修飾の種類ごとに生成する。文書用の表示ステップは、テキストデータテーブルに基づき、文書を表示する。第1の検出ステップは、ユーザの操作に基づいて、ユーザが文書の中から検索しようとする文字列である検索キーを検出する。設定ステップは、検索に対する制約を設定する。検索ステップは、第1の検出ステップにおいて検索キーを検出すれば、検索に対する制約に従って、テキストデータテーブルの中から、検索キーを含む文字列を検索する。結果用の表示ステップは、検索キーを含む文字列を表示する。 According to another aspect of the present invention, an information search method includes a storage step, a first modification table generation step, a document display step, a first detection step, a setting step, a search step, a result Display step. The storing step stores a text data table including character string data, which is character string data constituting the document, and character modification data for the character string. The first modification table generation step generates a modification table, which is a data table of a character string to be subjected to character modification, for each type of character modification by combining data included in the text data table. The display step for the document displays the document based on the text data table. The first detection step detects a search key, which is a character string that the user intends to search from a document, based on a user operation. In the setting step, a restriction on search is set. In the search step, if the search key is detected in the first detection step, a character string including the search key is searched from the text data table according to the restriction on the search. The result display step displays a character string including the search key.
本発明の他の局面に従うと、情報検索プログラムは、記憶ステップと、第1の修飾テーブル生成ステップと、文書用の表示ステップと、第1の検出ステップと、設定ステップと、検索ステップと、結果用の表示ステップとを含む各ステップをコンピュータに実行させる。記憶ステップは、文書を構成する文字列のデータである文字列データと文字列に対する文字修飾のデータとを含む、テキストデータテーブルを記憶する。第1の修飾テーブル生成ステップは、テキストデータテーブルが含むデータを組み合わせることにより、文字修飾の対象となる文字列のデータテーブルである修飾テーブルを、文字修飾の種類ごとに生成する。文書用の表示ステップは、テキストデータテーブルに基づき、文書を表示する。第1の検出ステップは、ユーザの操作に基づいて、ユーザが文書の中から検索しようとする文字列である検索キーを検出する。設定ステップは、検索に対する制約を設定する。検索ステップは、第1の検出ステップにおいて検索キーを検出すれば、検索に対する制約に従って、テキストデータテーブルの中から、検索キーを含む文字列を検索する。結果用の表示ステップは、検索キーを含む文字列を表示する。 According to another aspect of the present invention, an information search program includes a storage step, a first modification table generation step, a document display step, a first detection step, a setting step, a search step, a result And causing the computer to execute each step including a display step. The storing step stores a text data table including character string data, which is character string data constituting the document, and character modification data for the character string. The first modification table generation step generates a modification table, which is a data table of a character string to be subjected to character modification, for each type of character modification by combining data included in the text data table. The display step for the document displays the document based on the text data table. The first detection step detects a search key, which is a character string that the user intends to search from a document, based on a user operation. In the setting step, a restriction on search is set. In the search step, if the search key is detected in the first detection step, a character string including the search key is searched from the text data table according to the restriction on the search. The result display step displays a character string including the search key.
本発明の他の局面に従えば、記録媒体は、情報検索プログラムを記録したコンピュータ読取可能な記録媒体である。情報検索プログラムは、記憶ステップと、第1の修飾テーブル生成ステップと、文書用の表示ステップと、第1の検出ステップと、設定ステップと、検索ステップと、結果用の表示ステップとを含む各ステップをコンピュータに実行させる。記憶ステップは、文書を構成する文字列のデータである文字列データと文字列に対する文字修飾のデータとを含む、テキストデータテーブルを記憶する。第1の修飾テーブル生成ステップは、テキストデータテーブルが含むデータを組み合わせることにより、文字修飾の対象となる文字列のデータテーブルである修飾テーブルを、文字修飾の種類ごとに生成する。文書用の表示ステップは、テキストデータテーブルに基づき、文書を表示する。第1の検出ステップは、ユーザの操作に基づいて、ユーザが文書の中から検索しようとする文字列である検索キーを検出する。設定ステップは、検索に対する制約を設定する。検索ステップは、第1の検出ステップにおいて検索キーを検出すれば、検索に対する制約に従って、テキストデータテーブルの中から、検索キーを含む文字列を検索する。結果用の表示ステップは、検索キーを含む文字列を表示する。 According to another aspect of the present invention, the recording medium is a computer-readable recording medium that records an information search program. The information search program includes a storage step, a first modification table generation step, a document display step, a first detection step, a setting step, a search step, and a result display step. Is executed on the computer. The storing step stores a text data table including character string data, which is character string data constituting the document, and character modification data for the character string. The first modification table generation step generates a modification table, which is a data table of a character string to be subjected to character modification, for each type of character modification by combining data included in the text data table. The display step for the document displays the document based on the text data table. The first detection step detects a search key, which is a character string that the user intends to search from a document, based on a user operation. In the setting step, a restriction on search is set. In the search step, if the search key is detected in the first detection step, a character string including the search key is searched from the text data table according to the restriction on the search. The result display step displays a character string including the search key.
本発明に係る情報検索装置、情報検索方法、情報検索プログラム、および情報検索プログラムを記録したコンピュータ読取り可能な記録媒体は、ユーザの意図しない内容の表示を防ぐことができる。 The information search device, the information search method, the information search program, and the computer-readable recording medium that records the information search program according to the present invention can prevent display of contents not intended by the user.
以下、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同一である。したがって、それらについての詳細な説明は繰返さない。 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.
<第1の実施の形態>
以下、本発明の第1の実施の形態に係る情報検索装置について説明する。
<First Embodiment>
The information search apparatus according to the first embodiment of the present invention will be described below.
図1は、本実施の形態にかかる情報検索装置100の制御ブロック図である。
なお、以下の説明において、情報検索装置100の各部分について特に注釈なく「**部から得る」、「**部へ送る(渡す)」という表現をしている場合、データが、後述するバス158を介してやりとりされていることを表わす。バス158を介する場合、データが直接各部分同士でやりとりされる場合もあれば、後述する主記憶装置144、外部記憶装置146、あるいはネットワーク先などを間に挟んでデータがやりとりされる場合もある。ネットワーク先を間に挟む場合、データは後述する通信デバイス156を介してやりとりされる。
FIG. 1 is a control block diagram of the
In the following description, when each part of the
図1を参照して、本実施の形態にかかる情報検索装置100は、文書データ入力部102と、修飾テーブル生成部104と、対象入力部106と、操作部108と、検索キー入力部110と、条件生成部112と、処理部114と、表示用修飾テーブル生成部116と、記憶部118と、作成部120と、表示部122とを含む。
Referring to FIG. 1, an
文書データ入力部102は、通信デバイス156を介したネットワーク先などから、文書データを得る。得られたデータは、修飾テーブル生成部104および記憶部118に渡される。
The document
修飾テーブル生成部104は、文書データ中の文字に修飾が存在すれば、その修飾情報を修飾テーブルにまとめ、記憶部118へ渡す。
If there is a modification in the text in the document data, the modification
対象入力部106は、通信デバイス156を介したネットワーク先などから、検索の対象となるデータを得る。得られたデータは、記憶部118に渡される。
The
操作部108は、ユーザがタブレット152のペン(以下単に「ペン」とする)などによって表示画面に対して行った操作、あるいはユーザがメニューなどを参照して行った操作を検出する。操作部108は、検出された操作を表わす情報を、ユーザからの検索の要求を含む場合は検索キー入力部110に、それ以外の場合は作成部120に渡す。
The
検索キー入力部110は、ユーザが文書の中から検索しようとする文字列(以下単に「検索キー」と称する)の情報を操作部108から得て、条件生成部112に渡す。検索キーは、ユーザがペンやキーボード150を介して入力した文字列や、ユーザが確定した文字列である。ユーザが文字列を確定しようとする場合、ユーザは、ペン、キーボード150、あるいはマウス148を用いて、ディスプレイ142に表示されている文書データの選択範囲を決定することにより、文字列を確定する。
The search
条件生成部112は、検索の条件を表わすデータ(以下「検索条件」と称する)と検索キーの情報とを処理部114へ渡す。条件生成部112は、検索キーの情報、文書データ、および修飾テーブルを元に検索条件を生成する。条件生成部112は、検索キーの情報を検索キー入力部110から得る。条件生成部112は、文書データおよび修飾テーブルを記憶部118から得る。
The
処理部114は、検索用テーブルを表示用修飾テーブル生成部116および記憶部118へ渡す。検索用テーブルとは、検索の結果の情報を含む、データテーブルである。処理部114は、検索条件と検索キーとを元に検索処理を行う。
The
表示用修飾テーブル生成部116は、検索キーと同じ文字列が文書データ中に存在し、かつ、その文字が修飾されていれば、その修飾の内容を表わすデータを記憶部118へ渡す。修飾の内容を表わすデータは、検索キーと同じ文字列を含む文字列すべてについてのデータテーブル(以下「表示用修飾テーブル」と称する)として記憶部118へ渡される。本実施の形態の場合、表示用修飾テーブルのデータ構造は、修飾テーブルのデータ構造と同じである。表示用修飾テーブル生成部116は、検索キーと同じ文字列が、説明データが表わす文字列中に存在し(説明データについては後述する)、かつ、その文字が修飾されていれば、その修飾の内容を表わすデータを記憶部118へ渡す。修飾の内容を表わすデータは、検索キーと同じ文字列を含む文字列すべてについてのデータテーブル(以下「説明用修飾テーブル」と称する)として記憶部118へ渡される。本実施の形態の場合、説明用修飾テーブルのデータ構造も、修飾テーブルのデータ構造と同じである。
If the same character string as the search key exists in the document data and the character is modified, the display modification
記憶部118は、文書データ、検索の対象となるデータ、修飾テーブル、説明用修飾テーブル、および検索の結果を表わすデータを記憶する。記憶されるデータなどは、文書データ入力部102、対象入力部106、条件生成部112、処理部114、修飾テーブル生成部104、表示用修飾テーブル生成部116から得たデータなどである。記憶部118は、必要に応じて、記憶されたデータなどを、条件生成部112、処理部114、作成部120に渡す。
The
作成部120は、記憶部118から文書データや検索の結果を表わすデータを得て、表示データを作成し、表示部122へ渡す。
The
表示部122は、作成部120から得た表示データを表示する。表示部122は、文書部130と、結果部132と、説明部134とを含む。文書部130は文書データを表示する。結果部132は検索の結果を表わすデータを表示する。説明部134は、説明文を表示する。
The
図2は、本実施の形態にかかる情報検索装置100を具体的に実現するハードウェアの構成例を示す図である。本実施の形態の場合、図1に示す情報検索装置100の各部分は、図2に示したコンピュータハードウェアと後述するCPU(Central Processing Unit)140により実行されるソフトウェアとにより実現される仮想装置である。
FIG. 2 is a diagram illustrating a hardware configuration example that specifically implements the
図2を参照して、情報検索装置100を具体的に実現するコンピュータハードウェアは、CPU140と、ディスプレイ142と、主記憶装置144と、外部記憶装置146と、マウス148と、キーボード150と、タブレット152と、スピーカ154と、通信デバイス156と、バス158とを含む。CPU140と、ディスプレイ142と、主記憶装置144と、外部記憶装置146と、マウス148と、キーボード150と、タブレット152と、スピーカ154と、通信デバイス156とは、バス158により相互に接続されている。
Referring to FIG. 2, the computer hardware that specifically implements
CPU140は、本実施の形態にかかる情報検索装置100を具体的に実現するための処理手順が記述されたプログラムを実行する。CPU140は、自らが実行するプログラムを、主記憶装置144、外部記憶装置146または通信デバイス156を介したネットワーク先などから得る。CPU140は、バス158を通じて、ディスプレイ142、マウス148、タブレット152、主記憶装置144、外部記憶装置146、通信デバイス156、キーボード150、およびスピーカ154とデータのやりとりを行う。
The
ディスプレイ142は、グラフィックカードなどと組合わされた表示媒体(あるいは出力媒体)である。本実施の形態におけるディスプレイ142は、モニタである。グラフィックカード上にはVRAM(Video Random Access Memory)が備えられる。VRAM上のデータは、表示信号に変換された後、ディスプレイ142に供給される。ディスプレイ142は供給された表示信号を画像として表示する。
The
主記憶装置144は、通常はDRAM(Dynamic Random Access Memory)、フラッシュメモリなどのメモリデバイスで構成される。主記憶装置144は、各種のデータを記憶する装置である。
The
外部記憶装置146も、各種のデータを記憶する装置である。本実施の形態の場合、外部記憶装置146は、ハードディスクドライブ160と、PC(Personal Computer)カードスロット162とを含む。
The
マウス148、キーボード150、およびタブレット152は、いずれもユーザが指示を入力する装置である。マウス148は、自らの移動方向と移動距離とを検出する検出機器やボタンなどを含む。タブレット152は、ペンとペン位置を検出する検出機器とを含む。キーボード150は、複数のボタン(キー)を含み、押下られたキーに応じた信号を生成する。マウス148、タブレット152、およびキーボード150から入力されたユーザの指示は、バス158を介してCPU140に入力される。
The
スピーカ154は、バス158などを介して送られる音声データを音声信号として解釈し、音声として出力する装置である。出力される音声は、単波長の単純な音の場合もあるし、音楽や人間の音声などの複雑な音の場合もある。
The
通信デバイス156は、ネットワークインタフェースカードなどにより実現される。通信デバイス156は、無線や有線などにより接続された他のネットワーク機器とデータをやりとりする装置である。
The
本実施の形態にかかる情報検索装置100は、上述したコンピュータハードウェアとCPU140により実行されるソフトウェアとにより実現される。本実施の形態の場合、操作部108は、CPU140と、マウス148、タブレット152、およびキーボード150のいずれかとにより実現される。本実施の形態の場合、表示部122は、ディスプレイ142とCPU140と主記憶装置144および外部記憶装置146のいずれかとにより実現される。本実施の形態の場合、操作部108および表示部122以外の各装置は、CPU140と主記憶装置144および外部記憶装置146のいずれかとにより実現される。一般的にこうしたソフトウェアは、PCカード170などの記録媒体に格納されて流通し、外部記憶装置146のPCカードスロット162などにより記録媒体から読取られてハードディスクドライブ160に一旦格納される。さらに主記憶装置144のDRAMに読出されて、上述したCPU140により実行される。上述したコンピュータハードウェア自体は一般的なものである。したがって、本発明の最も本質的な部分は、PCカードなどの記録媒体に記録されたソフトウェアである。
The
図3を参照して、情報検索装置100で実行されるプログラムは、検索に関し、以下のような制御を実行する。
Referring to FIG. 3, the program executed by
ステップ200(以下ステップをSと略す。)にて、文書データ入力部102は、文書データを取得する。文書データ入力部102は、取得した文書データを、記憶部118に渡す。
In step 200 (hereinafter, step is abbreviated as S), the document
S202にて、修飾テーブル生成部104は、文書データ入力部102が得た文書データに対応する、修飾テーブルを生成する。この処理は、後述するS250〜S264の各処理に相当する。
In S202, the modification
S204にて、作成部120は、文書データ入力部102が取得した文書データをもとに、表示部122の文書部130が表示するための表示データを作成する。S206にて、文書部130は、作成部120が作成した表示データの内容を表示する。
In S <b> 204,
S208にて、操作部108は、ユーザの操作(検索の要求を除く)があったか否かを判断する。ユーザの操作があったと判断した場合(S208にてYES)、処理はS210へと移される。もしそうでないと(S208にてNO)、処理はS212へと移される。
In S208,
S210にて、情報検索装置100の各部は、操作部108が検出したユーザの操作に対応する処理を行なう。情報検索装置100の各部が実行する処理には、上述した文書データのスクロール操作や、マスクの表示の有無の切換(マスクの表示の有無の切換はマウス148やキーボード150などにより検出される)などの操作が含まれる。
In S210, each unit of
S212にて、操作部108は、ユーザからの検索の要求があったか否かを判断する。検索の要求があったと判断した場合(S212にてYES)、処理はS214へと移される。もしそうでないと(S212にてNO)、処理はS224へと移される。
In S212,
S214にて、検索キー入力部110、条件生成部112、および処理部114は、ユーザから検索の要求があった検索キーについて検索を実行する。この処理は後述するS1400〜S1404の各処理に該当する。
In S214, search
S216にて、作成部120は、記憶部118が記憶したデータを参照することにより、検索結果がある(検索結果を表わす情報が記憶されている)か否かを判断する。検索結果があると判断した場合(S216にてYES)、処理はS218へと移される。もしそうでないと(S216にてNO)、処理はS226へと移される。S218にて、作成部120は、検索の結果の表示データを作成する。表示部122の結果部132は、作成部120が作成したデータに基づき、検索の結果を表示する。
In S216,
S220にて、操作部108は、説明文の表示の要求があったか否かを判断する。説明文の表示の要求があったと判断した場合(S220にてYES)、処理はS222へと移される。もしそうでないと(S220にてNO)、処理はS224へと移される。S222にて、情報検索装置100の各部は説明文を表示する。この処理は後述するS2204〜S2210の各処理に該当する。
In S220,
S224にて、操作部108は、検索を終了するか否かを判断する。操作部108は、ディスプレイ142の電源を切断することがディスプレイ142のスイッチやディスプレイ142に付属するリモコン(図示せず)などを介して指示されているか否かに基づき上述の判断をする。操作部108は、ディスプレイ142の電源の切断に代え、情報検索装置100全体の電源の切断の指示があるか否かに基づいて、上述の判断を行なってもよい。
In S224,
S226にて、作成部120は検索結果が見つからない旨の表示データを作成する。結果部132は作成部120が作成した表示データに基づき、検索結果が見つからない旨を表示する。
In S226,
図4を参照して、修飾テーブル生成部104および記憶部118で実行されるプログラムは、修飾テーブルの生成に関し、以下のような制御を実行する。
Referring to FIG. 4, the program executed by modification
S250にて、修飾テーブル生成部104は、文書データ入力部102からテキストデータテーブルの一番目のデータを取得する。
In S250, the modification
S252にて、修飾テーブル生成部104は、自らが取得したデータに対する修飾の種類が「ノン」以外か否かを判断する。修飾の種類が「ノン」以外と判断した場合には(S252にてYES)、処理はS254へと移される。もしそうでないと(S252にてNO)、処理はS262へと移される。
In S252, the modification
S254にて、修飾テーブル生成部104は、記憶部118が記憶するデータを参照することにより、「種類」に対応する修飾テーブルがあるか否かを判断する。図4に示す処理における「種類」とは、S250にて修飾テーブル生成部104が取得したデータに対する修飾の種類のことである。「種類」に対応する修飾テーブルがあると判断した場合(S254にてYES)、処理はS256へと移される。もしそうでないと(S254にてNO)、処理はS260へと移される。
In S254, the modification
S256にて、修飾テーブル生成部104は、記憶部118から「種類」に対応する修飾テーブルを取得する。S258にて、修飾テーブル生成部104は、S256にて取得した修飾テーブルにテキストデータテーブルから取得したデータのデータ位置などを登録する。修飾テーブルに登録される具体的な内容は後述する。S260にて、修飾テーブル生成部104は、「種類」に対応する修飾テーブルを新規に生成する。生成された修飾テーブルは、記憶部118により記憶される。
In S256, the modification
S262にて、修飾テーブル生成部104は、テキストデータテーブルにまだ修飾の種類を識別していないデータが存在するか否かを判断する。修飾の種類を識別していないデータが存在すると判断した場合(S262にてYES)、処理はS264へと移される。もしそうでないと(S262にてNO)、処理は終了する。S264にて、修飾テーブル生成部104は、テキストデータテーブルの次のデータを取得する。
In S262, the modification
図5を参照して、情報検索装置100で実行されるプログラムは、検索に関し、以下のような制御を実行する。
Referring to FIG. 5, the program executed by
S1400にて、検索キー入力部110は、操作部108が検出した操作に基づき、検索キーを検出する。本実施の形態の場合、検索キー入力部110は、文書部130に表示されている文書のうち、ユーザが操作部108を介して指定した範囲の文字列を検索キーとみなす。本実施の形態の場合、検索キー入力部110は、修飾された文字列が検索キーに含まれている場合、修飾された文字の代わりに、「*」という文字が指定されたとみなす(なお、本実施の形態とは異なる実施の形態では、「*」という文字が指定されたとみなす代わりに、別の文字が指定されたとみなしてもよい)。「*」という文字は、ワイルドカード検索に用いられる文字である。検索キー入力部110は、ユーザが操作部108を介して指定した範囲と修飾テーブルが含むデータとを比較することにより、修飾された文字列が検索キーに含まれていることを検知する。
In S1400, search
S1402にて、条件生成部112は、検索キーに基づいて検索条件を生成する。この処理は後述するS14200〜S14228の各処理に該当する。
In S1402,
S1404にて、処理部114は、検索キーおよび条件生成部112が生成した検索条件に基づいて、テキストデータテーブルのデータから検索キーに一致する文字列を検索する。本実施の形態の場合、処理部114は、検索キーとテキストデータテーブルのデータとを順次比較することにより、テキストデータテーブルのデータから検索キーに一致する文字列を検索する。
In S1404, based on the search condition generated by search key and
図6を参照して、条件生成部112で実行されるプログラムは、検索条件の生成に関し、以下のような制御を実行する。
Referring to FIG. 6, the program executed by
S14200にて、条件生成部112は、検索条件を初期化する。このステップにおいて、「検索条件を初期化する」とは、「前方一致」、「後方一致」、「部分一致」、「ワイルドカード検索」、および「完全一致」の5種類の検索を実施すべき旨の情報を生成することを意味する。なお、本実施の形態における「前方一致」とは、文字列のうち先頭を含む一部分が検索キーと一致する文字列を検索することをいう。本実施の形態における「後方一致」とは、文字列のうち末尾を含む一部分が検索キーと一致する文字列を検索することをいう。本実施の形態における「部分一致」とは、文字列のうちいずれかの一部分が検索キーと一致する文字列を検索することをいう。本実施の形態における「ワイルドカード検索」とは、文字列のうちいずれかの一部分が検索キーのうち「*」で表わされる文字以外の文字列と一致する文字列を検索することをいう。本実施の形態における「完全一致」とは、文字列のすべてが検索キーと一致する文字列を検索することをいう。
In S14200,
S14202にて、条件生成部112は、記憶部118が記憶するデータを参照することにより、修飾テーブルが存在するか否かを判断する。修飾テーブルが存在すると判断した場合(S14202にてYES)、処理はS14204へと移される。もしそうでないと(S14202にてNO)、処理は終了する。S14204にて、条件生成部112は、記憶部118から1つ目の修飾テーブルを取得する。S14206にて、条件生成部112は、修飾テーブルから1つ目の修飾データを取得する。
In S14202,
S14208にて、条件生成部112は、検索キー入力部110から検索キーを取得する。検索キーが取得されると、条件生成部112は、修飾付き文字列(文字修飾の対象となる文字列。このステップの場合、修飾付き文字列は、条件生成部112によって取得された修飾データが表わす文字列である)と検索キーとが一致するか否かを判断する。修飾付き文字列と検索キーとが一致すると判断した場合(S14208にてYES)、処理はS14209へと移される。もしそうでないと(S14208にてNO)、処理はS14210へと移される。
In S14208,
S14209にて、条件生成部112は、検索を禁止する旨の情報に、検索条件を変更する。
In S14209, the
S14210にて、条件生成部112は、検索キーから修飾付き文字列までの距離が閾値以下であって検索キーと一致する範囲が修飾付き文字列の位置より前か否かを判断する。この「位置」は文書における修飾付き文字列の位置を意味する。「文書」は文書データが表わす文書を意味する。本実施の形態の場合、「検索キーから修飾付き文字列までの距離」とは、検索キーと一致する範囲から実際に文字列が修飾されている範囲までの間に存在する文字の個数に対応する距離を意味する。本実施の形態の場合、上述した閾値はゼロであることとする。これにより、条件生成部112は、検索キーと一致する範囲が修飾付き文字列の位置より前であって隣接しているか否かを判断することとなる。検索キーと一致する範囲が修飾付き文字列の位置より前であって隣接していると判断した場合には(S14210にてYES)、処理はS14212へと移される。もしそうでないと(S14210にてNO)、処理はS14214へと移される。S14212にて、条件生成部112は、S14202にて生成した検索条件より「前方一致」の検索を実施すべき旨の情報と「部分一致」の検索を実施すべき旨の情報とを削除する。
In S14210,
S14214にて、条件生成部112は、検索キーから修飾付き文字列までの距離が閾値以下であって検索キーと一致する範囲が修飾付き文字列の位置より後ろか否かを判断する。この「位置」も文書における修飾付き文字列の位置を意味する。「文書」の意味も同様である。「検索キーから修飾付き文字列までの距離」の意味も同様である。これにより、条件生成部112は、検索キーと一致する範囲が修飾付き文字列の位置より後であって隣接しているか否かを判断することとなる。検索キーから修飾付き文字列までの距離が閾値以下であって検索キーと一致する範囲が修飾付き文字列の位置より後ろと判断した場合には(S14214にてYES)、処理はS14216へと移される。もしそうでないと(S14214にてNO)、処理はS14218へと移される。S14216にて、条件生成部112は、S14200にて生成した検索条件から「後方一致」の検索を実施すべき旨の情報と「部分一致」の検索を実施すべき旨の情報とを削除する。これにより、条件生成部112は、検索キーが修飾付き文字列の後にある場合、前方一致、完全一致、およびワイルドカード検索を検索の条件とするように、検索の条件を設定することとなる。
In S14214,
S14218にて、条件生成部112は、検索キーが修飾付き文字列を含むか否かを判断する。修飾付き文字列を含むと判断した場合(S14218にてYES)、処理はS14220へと移される。もしそうでないと(S14218にてNO)、処理はS14222へと移される。S14220にて、条件生成部112は、S14200にて生成した検索条件より「ワイルドカード検索」を実施すべき旨の情報を削除する。
In S14218,
S14222にて、条件生成部112は、まだ検索に利用されていない修飾データが存在するか否かを判断する。修飾データが存在すると判断した場合(S14222にてYES)、処理はS14224へと移される。もしそうでないと(S14222にてNO)、処理はS14226へと移される。S14224にて、条件生成部112は、修飾テーブルから次の修飾データを取得する。
In S14222,
S14226にて、条件生成部112は、まだ検索に利用されていない修飾テーブルが存在するか否かを判断する。修飾テーブルが存在すると判断した場合には(S14226にてYES)、処理はS14228へと移される。もしそうでないと(S14226にてNO)、処理は終了する。S14228にて、条件生成部112は、次の修飾テーブルを取得する。
In S14226,
図7を参照して、情報検索装置100で実行されるプログラムは、説明文の表示に関し、以下のような制御を実行する。
Referring to FIG. 7, the program executed by
S2204にて、表示用修飾テーブル生成部116は、説明用修飾テーブルを生成する。この処理は後述するS2400〜S2422の処理に該当する。S2206にて、作成部120は、説明用修飾テーブルに従って表示データを作成する。表示データが作成されると、説明部134は、表示データに従って説明を表示する。
In S2204, display modification
S2208にて、表示用修飾テーブル生成部116は、説明データをすべて表示したか否かを判断する。説明データをすべて表示した場合(S2208にてYES)、処理は終了する。もしそうでないと(S2208にてNO)、処理はS2210へと移される。S2210にて、表示用修飾テーブル生成部116は次の説明データを取得する。
In S2208, display modification
図8を参照して、表示用修飾テーブル生成部116で実行されるプログラムは、修飾テーブルの生成に関し、以下のような制御を実行する。
Referring to FIG. 8, the program executed by display modification
S2400にて、表示用修飾テーブル生成部116は、データを取得する。取得されるデータは、作成しようとする修飾テーブルにより異なる。たとえば、説明用修飾テーブルを作成する場合、取得されるデータは、記憶部118に記憶された説明テーブルが含む、検索キーについての説明データである。
In S2400, display modification
S2402にて、表示用修飾テーブル生成部116は、記憶部118を参照することにより、修飾テーブルが存在するか否かを判断する。修飾テーブルが存在すると判断した場合(S2402にてYES)、処理はS2404へと移される。もしそうでないと(S2402にてNO)、処理は終了する。S2404にて、表示用修飾テーブル生成部116は、1つ目の修飾テーブルを取得する。
In S2402, the display modification
S2406にて、表示用修飾テーブル生成部116は、修飾テーブルの中に取得された説明データが表わす文字列と同じ文字列が存在するか否かを判断する。同じ文字列が存在すると判断した場合(S2406にてYES)、処理はS2408へと移される。もしそうでないと(S2406にてNO)、処理はS2424へと移される。S2408にて、表示用修飾テーブル生成部116は、取得された説明データが表わす文字列に対応する修飾データを取得する。
In S2406, display modification
S2410にて、表示用修飾テーブル生成部116は、修飾データが表わす修飾の種類がマスクか否かを判断する。修飾の種類がマスクと判断した場合(S2410にてYES)、処理はS2412へと移される。もしそうでないと(S2410にてNO)、処理はS2416へと移される。
In S2410, display modification
S2412にて、表示用修飾テーブル生成部116は、修飾データが表わす修飾の状態が「有」か否かを判断する。修飾の状態が「有」と判断した場合(S2412にてYES)、処理はS2414へと移される。もしそうでないと(S2412にてNO)、処理はS2416へと移される。S2414にて、表示用修飾テーブル生成部116は、作成中の修飾テーブルに新たな修飾データを登録する。
In S2412, display modification
S2416にて、表示用修飾テーブル生成部116は、修飾データが表わす修飾の種類がテキストボックスか否かを判断する。修飾の種類がテキストボックスと判断した場合には(S2416にてYES)、処理はS2418へと移される。もしそうでないと(S2416にてNO)、処理はS2420へと移される。
In S2416, display modification
S2418にて、表示用修飾テーブル生成部116は、テキストボックスの中に文字が入力されていないか否かを判断する。文字が入力されていないと判断した場合には(S2418にてYES)、処理はS2420へと移される。もしそうでないと(S2418にてNO)、処理はS2414へと移される。
In S2418, display modification
S2420にて、表示用修飾テーブル生成部116は、まだ修飾データが存在するか否かを判断する。修飾データが存在すると判断した場合には(S2420にてYES)、処理はS2422へと移される。もしそうでないと(S2420にてNO)、処理はS2424へと移される。S2422にて、表示用修飾テーブル生成部116は、次の修飾データを取得する。
In S2420, display modification
S2424にて、表示用修飾テーブル生成部116は、記憶部118を参照することにより、まだ修飾テーブルが存在するか否かを判断する。修飾テーブルが存在すると判断した場合には(S2424にてYES)、処理はS2426へと移される。もしそうでないと(S2424にてNO)、処理は終了する。
In S2424, display modification
S2426にて、表示用修飾テーブル生成部116は、次の修飾テーブルを取得する。
以上のような構造およびフローチャートに基づく、情報検索装置100の動作について説明する。
In S2426, display modification
The operation of the
[マスクされた文字列の直前の文字列が検索キーと一致する場合]
マスクされた文字列の直前の文字列が検索キーと一致する場合の処理について説明する。
[When the character string immediately before the masked character string matches the search key]
A process when the character string immediately before the masked character string matches the search key will be described.
文書データ入力部102は、文書データを取得する。この場合、検索キーの内容は「徳川」とする。文書データ入力部102は、取得した文書データを、記憶部118に渡す(S200)。記憶部118は文書データを記憶する。本実施の形態の場合、文書データは、テキストデータテーブルと、説明テーブルとを含む。
The document
図9は、テキストデータテーブルのデータ構造とデータの内容とを表わす図である。図9を参照して、テキストデータテーブルは、「データ位置」と、「データ種類」と、「XY位置」と、「データ」と、「修飾」と、「状態」とを含む。テキストデータテーブルは、「修飾」と「状態」とを含むことにより、「データ」が表わす文字列に対する文字修飾のデータを含むこととなる。 FIG. 9 shows the data structure of the text data table and the contents of the data. Referring to FIG. 9, the text data table includes “data position”, “data type”, “XY position”, “data”, “modification”, and “state”. By including “modification” and “state”, the text data table includes character modification data for the character string represented by “data”.
「データ位置」はテキストデータテーブルの中で「データ」を特定するための情報である。本実施の形態の場合、「データ位置」はテキストデータテーブルの先頭から何番目のデータに該当するかを表わすこととする。 “Data position” is information for specifying “data” in the text data table. In the case of the present embodiment, “data position” represents the number of data corresponding to the head of the text data table.
「データ種類」は「データ」が文字列データか画像データかを表わす情報である。本発明において、文字列データとは、文書を構成する文字列のデータである。本実施の形態の場合、「データ」が文字列データの場合、テキストデータテーブルは、「データ種類」として値「0」を含む。「データ」が画像データの場合、テキストデータテーブルは、「データ種類」として値「1」を含む。 “Data type” is information indicating whether “data” is character string data or image data. In the present invention, the character string data is data of a character string constituting a document. In the present embodiment, when “data” is character string data, the text data table includes a value “0” as “data type”. When “data” is image data, the text data table includes a value “1” as “data type”.
「XY位置」は、ディスプレイ142の画面におけるX座標とY座標との値の組を表わす情報である。本実施の形態の場合、ディスプレイ142の画面のX座標とY座標とは、画面の左上を原点とする。
The “XY position” is information representing a set of values of the X coordinate and the Y coordinate on the screen of the
「データ」は、文書を構成するデータである。「データの種類」の値が「0」の場合、テキストデータテーブルは、「データ」として文字列データを含む。「データの種類」の値が「1」の場合、テキストデータテーブルは、「データ」として画像データを含む。 “Data” is data constituting a document. When the value of “data type” is “0”, the text data table includes character string data as “data”. When the value of “data type” is “1”, the text data table includes image data as “data”.
「修飾」は、「データ」が表わす文字列に対する文字修飾の種類を表わすデータである。「データ」に対しマスクが行なわれる場合、テキストデータテーブルは、「修飾」として「マスク」という文字列のデータを含む。文書部130が「データ」に代えてユーザが指定した文字列を表示する場合、テキストデータテーブルは、「修飾」として「テキストボックス」という文字列のデータを含む。
“Modification” is data representing the type of character modification for the character string represented by “data”. When masking is performed on “data”, the text data table includes character string data “mask” as “modification”. When the
「状態」は、「データ」が表わす文字列に対する文字修飾の状態を表わすデータである。本実施の形態の場合、テキストデータテーブルが、「修飾」として「マスク」という文字列のデータを含み、かつ「状態」として「有」という文字列のデータを含むならば、「データ」が表わす文字列に対し、マスクが付される。本実施の形態の場合、テキストデータテーブルが、「修飾」として「マスク」という文字列のデータを含み、かつ「状態」として「なし」という文字列のデータを含むならば、「データ」が表わす文字列に対し、何ら修飾が付されない。 “State” is data representing the state of character modification for the character string represented by “data”. In the case of the present embodiment, if the text data table includes character string data “mask” as “modification” and character string data “present” as “state”, “data” represents. A mask is attached to the character string. In the case of the present embodiment, if the text data table includes character string data “mask” as “modification” and character string data “none” as “state”, “data” represents the data. No modification is added to the string.
本実施の形態の場合、テキストデータテーブルが、「修飾」として「テキストボックス」という文字列のデータを含み、かつ「状態」として何らかのデータが含まれていれば、「データ」に代え、「状態」として含まれるデータが表わす文字列などが表示される。本実施の形態の場合、「データ」が画像データの場合、テキストデータテーブルは、「修飾」として「ノン」という文字列(本実施の形態において「データ」に対する修飾が何らなされないことを表わす情報)を含む。ただし、このことは、「ノン」という文字列が必須の情報であることを意味するものではない。本実施の形態以外の実施の形態においては、「データ」が画像データの場合、テキストデータテーブルは、「修飾」として特段の情報を含まなくてもよい。 In the case of the present embodiment, if the text data table includes character string data “text box” as “modification” and some data is included as “state”, “state” is used instead of “data”. "Is displayed as a character string represented by the data included. In the case of this embodiment, when “data” is image data, the text data table has a character string “non” as “modification” (information indicating that no modification is made to “data” in this embodiment). )including. However, this does not mean that the character string “non” is essential information. In embodiments other than the present embodiment, when “data” is image data, the text data table may not include special information as “modification”.
文書データが取得されると、修飾テーブル生成部104は、テキストデータテーブルの一番目のデータを取得する(S250)。本実施の形態の場合、取得されるデータは、「データ位置」の値が「1」のデータである。データが取得されると、修飾テーブル生成部104は、修飾の種類すなわちテストデータテーブルにおける「修飾」の内容が「ノン」以外か否かを判断する(S252)。この場合、「修飾」の内容は「マスク」なので(S252にてYES)、修飾テーブル生成部104は、「修飾」に対応する修飾テーブルがあるか否かを判断する(S254)。この場合、修飾テーブルがないので(S254にてNO)、修飾テーブル生成部104は、修飾の種類「マスク」に対応する修飾テーブルを新規に生成する(S260)。
When the document data is acquired, the modification
修飾テーブルが生成されると、修飾テーブル生成部104は、その修飾テーブルにデータ位置などを登録する(S258)。S258およびS260の処理は、修飾テーブル生成部104が、テキストデータテーブルが含むデータを組み合わせることにより、修飾テーブルを、文字修飾の種類ごとに生成していることを表わす。データ位置などが登録されると、修飾テーブル生成部104はまだ修飾の種類を識別していないデータが存在するか否かを判断する(S262)。この場合、そのようなデータが存在するので(S262にてYES)、修飾テーブル生成部104は次のデータを取得する(S264)。データが取得されると、S252〜S264の処理が繰返される。
When the modification table is generated, the modification
図10は、作成され、かつ記憶部118に記憶された修飾テーブルの内容を表わす図である。本実施の形態の場合、修飾テーブルは、「修飾」と「データ位置」と「データ種類」と「XY位置」と「データ」と「状態」とを含む。「修飾」〜「状態」は図9に示したテキストデータテーブルのものと同じである。「データ」が含まれているので、修飾テーブルは、文字列データを含むデータテーブルとなる。「データ」と「状態」とが含まれているので、修飾テーブルが含むデータが表わす文字列は、文字修飾の対象となる文字列となる。
FIG. 10 is a diagram showing the contents of the modification table created and stored in the
修飾テーブルが生成されると、作成部120は表示データを作成する(S204)。表示データが作成されると、文書部130は表示データの内容を表示する(S206)。これにより、文書部130は、テキストデータテーブルに基づき、文書を表示することとなる。
When the modification table is generated, the
表示データが表示されると、操作部108は、ユーザの操作(検索の要求を除く)があったか否かを判断する(S208)。この場合、検索の要求があったとすると(S208にてNO)、操作部108は、検索の要求があったか否かを判断する(S212)。この場合、検索の要求があったと判断されるので(S212にてYES)、検索キー入力部110は、ユーザの操作に基づいて、ユーザが文書の中から検索しようとする文字列である検索キーを検出する(S1400)。検索キーが取得されると、条件生成部112は検索条件を初期化する(S14200)。検索条件が初期化されると、条件生成部112は修飾テーブルが存在するか否かを判断する(S14202)。この場合、修飾テーブルが存在するので(S14202にてYES)、条件生成部112は1つ目の修飾テーブルを取得する(S14204)。修飾テーブルが取得されると、条件生成部112は1つ目の修飾データを取得する(S14206)。この場合、1つ目の修飾テーブルは「修飾」の内容が「マスク」のものである。1つ目の修飾データは「データ位置」の値が「1」の修飾データである。修飾データが取得されると、条件生成部112は、修飾付き文字列(文字修飾の対象となる文字列)と検索キーとが一致するか否かを判断する(S14208)。この場合、検索キーの内容が「徳川」であって修飾付き文字列の内容が「ABC」である。その結果、修飾付き文字列と検索キーとが一致しないので(S14208にてNO)、条件生成部112は、検索キーと一致する範囲が修飾付き文字列の位置より前であって隣接しているか否かを判断する(S14210)。この場合、修飾付き文字列は、検索キー「徳川」と隣接していないので(S14210にてNO)、条件生成部112は、検索キーと一致する範囲が修飾付き文字列の位置より後であって隣接しているか否かを判断する(S14214)。この場合、修飾付き文字列は、検索キー「徳川」と隣接していないので(S14214にてNO)、条件生成部112は、検索キーが修飾付き文字列を含むか否かを判断する(S14218)。この場合、検索キーが修飾付き文字列を含まないので(S14218にてNO)、条件生成部112は、まだ検索に利用されていない修飾データが存在するか否かを判断する(S14222)。この場合、まだ修飾データが存在するので(S14222にてYES)、条件生成部112は、次の修飾データを取得する(S14224)。
When the display data is displayed, the
修飾データが取得されると、S14208〜S14224の処理が繰返される。処理が繰返された後、「データ」の内容が「家康」である修飾データが取得されると、条件生成部112は、検索キーと一致する範囲が修飾付き文字列の位置より前であって隣接しているか否かを判断する(S14210)。これにより、条件生成部112は、検索キーから修飾付き文字列までの距離が閾値以下であって検索キーが文書において修飾付き文字列の前にあるか否かを判断することとなる。この「文書」は文書データが表わす文書を意味する。この場合、検索キーと一致する範囲が修飾付き文字列の位置より前であって隣接しているので(S14210にてYES)、条件生成部112は、検索条件より「前方一致」の検索を実施すべき旨の情報と「部分一致」の検索を実施すべき旨の情報とを実施すべき旨の情報を削除する(S14212)。これにより、条件生成部112は、検索キーが文字修飾の対象となる文字列の前にある場合、後方一致、完全一致、およびワイルドカード検索を検索の条件とするように、検索の条件を設定することとなる。S14208〜S14212の処理により、条件生成部112は、検索に対する制約を設定することとなる。本実施の形態の場合、条件生成部112は、修飾付き文字列に対する検索キーの文書における位置に応じて、検索に対する制約として、検索の条件を設定することとなる。なお、「文書」は、文書データが表わす文書を意味する。
When the decoration data is acquired, the processes of S14208 to S14224 are repeated. After the process is repeated, when the modification data whose content of “data” is “Ieyasu” is acquired, the
情報が削除されると、S14222〜S14224の処理を経て、S14208〜S14224の処理が繰返される。その後、まだ検索に利用されていない修飾データが存在しなくなると(S14222にてNO)、条件生成部112はまだ検索に利用されていない修飾テーブルが存在するか否かを判断する(S14226)。この場合、「修飾」が「テキストボックス」である修飾テーブルが存在するので(S14226にてYES)、条件生成部112は次の修飾テーブルを取得する(S14228)。修飾テーブルが取得されると、S14208〜S14224の処理が繰返される。その後、再び検索に利用されていない修飾テーブルが存在するか否か判断される(S14226)。この場合、そのような修飾テーブルは存在しないので(S14226にてNO)、処理部114は検索を実行する(S1404)。これにより、処理部114は、検索キー入力部110が検索キーを検出すれば、条件生成部112が設定した検索に対する制約(本実施の形態の場合、「検索に対する制約」とは検索の条件のこと)に従って、テキストデータテーブルの中から、検索キーを含む文字列を検索することとなる。
When the information is deleted, the processing of S14208 to S14224 is repeated through the processing of S14222 to S14224. Thereafter, when there is no modification data that is not yet used for search (NO in S14222),
検索が実行されると、作成部120は検索結果があるか否かを判断する(S216)。この場合、検索結果があるので(S216にてYES)、作成部120は検索の結果を表わす表示データを作成する。結果部132は、作成部120が作成した表示データに基づき、検索の結果(検索キーを含む文字列)を表示する(S218)。検索の結果が表示されると、操作部108は説明文の表示の要求があったか否かを判断する(S220)。この場合、そのような要求はなかったとすると(S220にてNO)、操作部108は検索を終了するか否かを判断する(S224)。この場合、検索を終了するとすると(S224にてYES)、処理は終了する。図11は、S228にて検索の結果が表示されたディスプレイ142の画面を表わす図である。テキストデータテーブルの図示されていない部分に「徳川」のみからなる文字列があるため、「徳川」が表示されている。
When the search is executed, the
[検索結果が見つからない場合]
検索結果が見つからない場合の処理について説明する。
[If no search results are found]
Processing when the search result is not found will be described.
処理部114が検索を実行した後(S1404)、作成部120は検索結果があるか否かを判断する(S216)。この場合、検索結果がないので(S216にてNO)、作成部120は検索結果が見つからない旨の表示データを作成する。結果部132は検索結果が見つからない旨を表示する(S226)。図12は、修飾が施されていない単語に検索キーと一致する文字列が含まれなかった場合のディスプレイ142の画面を表わす図である。
After the
[マスクされた文字を含む文字列のみが検索キーと一致する場合]
マスクされた文字を含む文字列が検索キーと一致する場合の処理について説明する。
[When only the character string including the masked character matches the search key]
Processing when a character string including a masked character matches a search key will be described.
検索キーとして「日米和親条約」のうち「和親」の部分がマスクされた文字列が指定された場合、S200〜S14206の処理を経た後、S14208〜S14224の処理が繰返される。その後、S14208にて取得された修飾付き文字列が「日米和親条約」、「日米通商航海条約」、「日米修好通商条約」、あるいは「日米安全保障条約」などであれば、S14208〜S14214の処理を経て、条件生成部112は、検索キーが修飾付き文字列を含むか否かを判断する(S14218)。検索キーが修飾付き文字列を含むと判断されるので(S14218にてYES)、条件生成部112は検索条件より「ワイルドカード検索」を実施すべき旨の情報を削除する(S14220)。これにより、検索キーが修飾付き文字列を含む場合、条件生成部112は、前方一致、後方一致、部分一致、および完全一致を検索の条件とするように、検索の条件を設定することとなる。
When a character string in which the “Japanese parent” part of the “Japan-US US-Japan Treaty” is masked is designated as the search key, the processing of S14208 to S14224 is repeated after the processing of S200 to S14206. After that, if the qualified character string acquired in S14208 is “Japan-US Treaty of Peace”, “Japan-US Trade Treaty”, “Japan-US Good Trade Treaty”, or “Japan-US Security Treaty”, etc., Through the processing of S14208 to S14214, the
その後、S14222〜S14224、およびS14208〜S14228の処理が繰返された後、処理部114は検索を実行する(S1404)。検索が実行されると、作成部120は検索結果があるか否かを判断する(S216)。この場合、検索結果が見つからないこととなるので(S216にてNO)、作成部120は検索結果が見つからない旨の表示データを作成する。結果部132は検索結果が見付からない旨を表示する(S226)。図13は、検索キーとして、「日米和親条約」を選択した場合のディスプレイ142の画面を表わす図である。図14は、検索キーとして「日米和親条約」を選択した結果、修飾が施された文字以外検索キーに一致する単語が見付からなかった場合のディスプレイ142の画面を表わす図である。図15は、従来の情報検索装置の検索の結果を表示している場合のディスプレイの画面を表わす図である。
Thereafter, after the processes of S14222 to S14224 and S14208 to S14228 are repeated, the
[説明文を表示させる場合]
説明文を表示させる場合であって、文書データ中においてマスクされた文字列と同じ文字列がその説明文に含まれる場合の処理について説明する。
[When displaying explanatory text]
A description will be given of processing in a case where an explanatory text is displayed, and the same text string as the masked text string is included in the text data.
図16は、本実施の形態に係る説明テーブルの内容を表わす図である。本実施の形態において、「説明テーブル」とは、単語についての説明文を表わす説明文データのデータテーブルである。記憶部118は、テキストデータテーブルと共に、説明テーブルを記憶する。図16の「データ」欄には、説明文データの一部が示されているが、実際の説明文データは図16に示した説明文のみを表わすデータではない。
FIG. 16 is a diagram showing the contents of the explanation table according to the present embodiment. In the present embodiment, the “explanation table” is a data table of explanatory text data representing an explanatory text about a word. The
検索キーとして「関が原」が指定された場合、S200〜S218の処理を経た後、操作部108は、説明文の表示の要求があったか否かを判断する(S220)。これにより、操作部108は、ユーザの操作に基づいて、ユーザが説明文の表示を希望している単語を検出することとなる。この場合、操作部108は、説明文の表示の要求があったと判断するので(S220にてYES)、表示用修飾テーブル生成部116は記憶部118に記憶された説明テーブルより、検索キーについての説明データを取得する(S2400)。説明データが取得されると、表示用修飾テーブル生成部116は修飾テーブルが存在するか否かを判断する(S2402)。この場合、修飾テーブルが存在するとすると(S2402にてYES)、表示用修飾テーブル生成部116は1つ目の修飾テーブルを取得する(S2404)。修飾テーブルが取得されると、表示用修飾テーブル生成部116は修飾テーブル中に取得された説明データが表わす文字列と同じ文字列が存在するか否かを判断する(S2406)。この場合、そのような文字列が存在するので(S2406にてYES)、表示用修飾テーブル生成部116は取得された文字列に対応する修飾データを取得する(S2408)。
When “Sekigahara” is designated as the search key, after the processing of S200 to S218, the
修飾データが取得されると、表示用修飾テーブル生成部116は「修飾」が「マスク」か否かを判断する(S2410)。この場合、「修飾」が「マスク」とすると(S2410にてYES)、表示用修飾テーブル生成部116は「状態」が「有」か否かを判断する(S2412)。この場合、「状態」が「有」とすると(S2412にてYES)、表示用修飾テーブル生成部116は作成中の修飾テーブル(この場合は説明用修飾テーブル)に修飾データを登録する(S2414)。これにより、表示用修飾テーブル生成部116は、説明用修飾テーブルを生成することとなる。本実施の形態の場合、説明用修飾テーブルは、説明文データのうち、特定説明文を表わすデータについて、修飾テーブルのデータが表わす文字列と同じ文字列が、修飾テーブルのデータが表わす文字列と同じ文字修飾の対象となるように、生成される。本実施の形態において、「説明用修飾テーブル」とは、特定説明文を構成する文字列についての文字修飾のデータからなる、データテーブルのことである。「特定説明文」とは、ユーザが説明文の表示を希望する単語についての説明文のことである。本実施の形態の場合、説明用修飾テーブルの構造は修飾テーブルの構造と同じである。このため説明用修飾テーブルについての説明はここでは繰返さない。
When the modification data is acquired, the display modification
修飾データが登録されると、表示用修飾テーブル生成部116はまだ修飾データが存在するか否かを判断する(S2420)。この場合、まだ修飾データが存在するので(S2420にてYES)、表示用修飾テーブル生成部116は次の修飾データを取得する(S2422)。
When the modification data is registered, the display modification
修飾データが取得されると、S2410〜S2422の処理が繰返される。その後、修飾データが存在しなくなるので(S2420にてNO)、表示用修飾テーブル生成部116はまだ修飾テーブルが存在するか否かを判断する(S2424)。この場合、まだ修飾テーブルが存在するので(S2424にてYES)、表示用修飾テーブル生成部116は次の修飾テーブルを取得する(S2426)。修飾テーブルが取得されると、S2406とS2408との処理を経て、S2410〜S2422の処理が繰返される。その後、表示用修飾テーブル生成部116はまだ修飾テーブルが存在するか否かを判断する(S2424)。この場合、修飾テーブルが存在しないとすると(S2424にてNO)、作成部120は説明用修飾テーブルに従って表示データを作成する。表示データが作成されると、説明部134は作成部120が作成した表示データに従って説明文を表示する(S2206)。これにより、説明部134は、説明用修飾テーブルが含むデータの内容に従って、特定説明文を表示することとなる。
When the modification data is acquired, the processes of S2410 to S2422 are repeated. After that, since there is no modification data (NO in S2420), the display modification
説明文が表示されると作成部120は説明データをすべて表示したか否かを判断する(S2208)。説明データをすべて表示したとすると(S2208にてYES)、操作部108は検索を終了するか否かを判断する(S224)。図17は、説明文の表示があった場合のディスプレイ142の画面を表わす図である。説明文にも文書と同様の修飾が施されている。
When the explanatory text is displayed, the creating
以上のようにして、本実施の形態に係る情報検索装置は、表示されている文書の内容に応じて、検索を行なう際の条件や検索の結果の表示に制限を加えることにより、ユーザの意図しない内容の表示を防ぐことができる。ユーザの意図しない内容の表示を防ぐことができるので、学習の用途に適した情報検索装置を提供することができる。 As described above, the information search apparatus according to the present embodiment limits the display of the search conditions and search results according to the contents of the displayed document, thereby Display of content that is not performed can be prevented. Since it is possible to prevent display of contents not intended by the user, it is possible to provide an information search apparatus suitable for the purpose of learning.
なお、テキストデータテーブルには、「XY位置」に代えて、「バイト位置」を含んでもよい。「バイト位置」とはテキストデータテーブルが表わす文書のうち「データ」が表わすデータの位置をバイト数によって表わす情報を含む。図18は、「XY位置」に代えて「バイト位置」が含まれる場合のテキストデータテーブルの構造を表わす図である。 The text data table may include “byte position” instead of “XY position”. The “byte position” includes information indicating the position of data represented by “data” in the document represented by the text data table by the number of bytes. FIG. 18 is a diagram illustrating the structure of the text data table when “byte position” is included instead of “XY position”.
また、情報検索装置100の各装置同士におけるデータのやりとりは、バス158を介して行う以外にも、通信ケーブルや無線通信装置などデータを送受信できるものを介して行ってもよい。また、情報検索装置100の各装置としては、CPU140に限らず、DSP(Digital Signal Processor)や処理手順が回路としてみ込まれているロジック回路などにより実現されてもよい。
Further, data exchange between the devices of the
また、情報検索装置100を具体的に実現するハードウェアは、マウス148、タブレット152、およびキーボード150に加え、マイクによる音声入力やボタンによる指示など、様々な入力装置を使用してもよい。
In addition to the
また、スピーカ154は、音声信号ではなく、単なるオン、オフの制御信号だけを受信し、予め決まっている音声を出力する装置であってもよい。
The
また、主記憶装置144は、CPU140内部に含まれるメモリやレジスタなどであってもよい。
Further, the
また、外部記憶装置146は、他のネットワーク機器に取付けられた装置であってもよい。この段落における「他のネットワーク機器」とは、CPU140とネットワークを介して有線または無線で接続された機器のことである。
The
また、作成部120は、S220にて説明文の表示の要求があったと判断された場合、特定説明文のうちいずれかの部分を表わす文字列が、修飾テーブルのデータが表わす文字列と同じか否かを判断してもよい。「特定説明文」とは、ユーザが説明文の表示を希望する単語についての説明文である。このような判断をする場合、作成部120は、特定説明文のうちいずれかの部分を表わす文字列が、修飾テーブルのデータが表わす文字列と同じならば、特定説明文の表示が禁止されている旨の表示データを作成してもよい。説明文の表示データに代え、このような表示データが作成されることにより、作成部120は、特定説明文のうちいずれかの部分を表わす文字列が、修飾テーブルのデータが表わす文字列と同じ場合、特定説明文の表示を禁止するような制約を設定することになる。説明部134は、表示データが表わす情報を表示するので、操作部108が単語を検出すると、特定説明文の表示を禁止するような制約がある場合を除き、特定説明文を表示することとなる。
If it is determined in S220 that a description text display request has been made, the
また、テキストデータテーブルは、「XY位置」に代え、「文書の先頭からの相対位置」を含んでもよい。「文書の先頭からの相対位置」とは、文書データが表わす文書を1枚の紙に印刷したときの、文書を構成する各文字の位置のことである。文書を1枚の紙に印刷したときの行数や1行あたりの文字数は特に限定されない。「文書の先頭からの相対位置」の原点の定め方も特に限定されない。ただし、原点の定め方の一例には、文書を構成する文字のうち最初の文字が占める位置を原点とする定め方が含まれる。 Further, the text data table may include “relative position from the beginning of the document” instead of “XY position”. The “relative position from the beginning of the document” is the position of each character constituting the document when the document represented by the document data is printed on one sheet of paper. The number of lines and the number of characters per line when the document is printed on one sheet of paper are not particularly limited. The method of determining the origin of “relative position from the beginning of the document” is not particularly limited. However, an example of how to determine the origin includes a method in which the origin occupies the position occupied by the first character among the characters constituting the document.
また、S14210およびS14214にて、「検索キーから修飾付き文字列までの距離」は、検索キーと一致する範囲から実際に文字列が修飾されている範囲までの間に存在する形態素の個数であってもよい。なお、「形態素」とは、言語において意味を持つ最小単位を意味する。条件生成部112は、形態素解析を実施することにより、形態素の個数を特定することができる。形態素解析の具体的な方法は周知であるので、ここではその詳細な説明は繰返さない。
In S14210 and S14214, the “distance from the search key to the qualified character string” is the number of morphemes that exist between the range that matches the search key and the range in which the character string is actually modified. May be. Note that “morpheme” means the smallest unit that has meaning in a language. The
<第2の実施の形態>
以下、本発明の第2の実施の形態に係る情報検索装置について説明する。
<Second Embodiment>
Hereinafter, an information search apparatus according to the second embodiment of the present invention will be described.
本実施の形態に係る情報検索装置のハードウェア構成については前述の第1の実施の形態と同じである。それらについての機能も同じである。したがって、それらについての詳細な説明はここでは繰返さない。 The hardware configuration of the information search apparatus according to the present embodiment is the same as that of the first embodiment described above. The function about them is the same. Therefore, detailed description thereof will not be repeated here.
図19を参照して、情報検索装置100で実行されるプログラムは、検索条件の生成に関し、以下のような制御を実行する。なお、図19に示すフローチャートの中で、前述の図6に示した処理は同じステップ番号を付してある。それらの処理も同じである。したがって、それらについての詳細な説明はここでは繰返さない。
Referring to FIG. 19, the program executed by
S14230にて、条件生成部112は、修飾付き文字列が検索キーを含むか否かを判断する。検索キーを含むと判断した場合(S14230にてYES)、処理はS14234へと移される。もしそうでないと(S14230にてNO)、処理はS14232へと移される。
In S14230,
S14232にて、条件生成部112は、検索キーが修飾付き文字列を含むか否かを判断する。修飾付き文字列を含むと判断した場合(S14232にてYES)、処理はS14234へと移される。もしそうでないと(S14232にてNO)、処理はS14222へと移される。S14234にて、条件生成部112は、検索を禁止する旨の情報に、検索条件を変更する。
In S14232,
以上のような構造およびフローチャートに基づく、情報検索装置100の動作について説明する。
The operation of the
検索キーとして「徳川」が選択されたこととする。S14204までの処理を経て、条件生成部112は1つ目の修飾データを取得する(S14206)。修飾データが取得されると、条件生成部112は、修飾付き文字列が検索キーを含むか否かを判断する(S14230)。この場合、修飾付き文字列が検索キーを含まないとすると(S14230にてNO)、条件生成部112は検索キーが修飾付き文字列を含むか否かを判断する(S14232)。検索キーが修飾付き文字列を含まないとすると(S14232にてNO)、S14222〜S14224の処理を経て、S14230〜S14224の処理が繰返される。その後、修飾付き文字列が「徳川家康」の場合、条件生成部112は修飾付き文字列が検索キーを含むと判断するので(S14230にてYES)、条件生成部112は、検索条件を検索条件の禁止を表わす旨に変更する(S14234)。これにより、条件生成部112は、修飾付き文字列の少なくとも一部と、検索キーの少なくとも一部とが一致すると、検索を禁止するような制約を設定することとなる。本実施の形態おいて、「修飾付き文字列の少なくとも一部と、検索キーの少なくとも一部とが一致する」とは、修飾付き文字列が検索キーを含む場合、および検索キーが文字修飾の対象となる文字列を含む場合のいずれかに該当することである。
It is assumed that “Tokugawa” is selected as a search key. Through the processing up to S14204, the
検索条件が変更されると、処理部114は検索を実行する(S1404)。この場合、検索条件が検索を禁止する旨となった情報なので、処理部114は実際の検索を行なわない。このようにして、条件生成部112は、検索キー入力部110が検索キーを検出すれば、検索を禁止するような制約がある場合を除き、テキストデータテーブルの中から、検索キーを含む文字列を検索することとなる。実際の検索が行なわれないまま検索が終了すると、作成部120は検索結果があるか否かを判断する(S216)。この場合、検索結果がないので(S216にてNO)、作成部120は検索結果が見つからない旨の表示データを作成する。結果部132は作成部120が作成した表示データに基づき、検索結果が見つからない旨を表示する(S226)。
When the search condition is changed, the
以上のようにして、本実施の形態に係る情報検索装置は、検索の対象となる文字がマスクされている場合に検索が許されない旨を表示する。これにより、ユーザの意図しない内容の表示を防ぐことができる。 As described above, the information search apparatus according to the present embodiment displays that the search is not permitted when the search target character is masked. Thereby, the display of the content which a user does not intend can be prevented.
なお、S14234にて、検索条件を変更することに代え、条件生成部112は、修飾付き文字列の少なくとも一部と、検索キーの少なくとも一部とが一致すると、表示を禁止するような制約を設定してもよい。この場合、条件生成部112は、表示を禁止するような制約を設定するために、検索結果の表示を禁止する旨の信号を生成する。条件生成部112は、検索結果の表示を禁止する旨の信号を作成部120に送信する。作成部120は、検索結果の表示を禁止する旨の信号が送信されると、検索結果の表示が禁止された旨の表示データを作成する。結果部132は、検索結果の表示が禁止された旨のメッセージを表示する。これにより、結果部132は、表示を禁止するような制約がある場合を除き、検索キーを含む文字列を表示することとなる。図20は、検索が許されていない旨のメッセージが表示されたディスプレイ142の画面を表わす図である。
In S14234, instead of changing the search condition, the
また、検索結果が見付からない旨のメッセージに代え、マスクが含まれているため検索結果を表示しない旨のメッセージを表示してもよい。図21は、そのような場合のディスプレイ142の画面を表わす図である。
Further, instead of a message that the search result is not found, a message that the search result is not displayed may be displayed because a mask is included. FIG. 21 is a diagram showing a screen of
<第3の実施の形態>
以下、本発明の第3の実施の形態に係る情報検索装置について説明する。
<Third Embodiment>
Hereinafter, an information search apparatus according to the third embodiment of the present invention will be described.
本実施の形態に係る情報検索装置のハードウェア構成については前述の第1の実施の形態と同じである。それらについての機能も同じである。したがって、それらについての詳細な説明はここでは繰返さない。 The hardware configuration of the information search apparatus according to the present embodiment is the same as that of the first embodiment described above. The function about them is the same. Therefore, detailed description thereof will not be repeated here.
図22を参照して、情報検索装置100で実行されるプログラムは、検索に関し、以下のような制御を実行する。なお、図22に示すフローチャートの中で、前述の図3に示した処理は同じステップ番号を付してある。それらの処理も同じである。したがって、それらのついての詳細な説明はここでは繰返さない。
Referring to FIG. 22, the program executed by
S230にて、情報検索装置100の各部は検索の結果を表示する。この処理は、後述するS2302〜S2312の各処理に該当する。
In S230, each unit of
図23を参照して、情報検索装置100の各部で実行されるプログラムは、検索結果の表示に関し、以下のような制御を実行する。
Referring to FIG. 23, the program executed by each unit of
S2302にて、表示用修飾テーブル生成部116は、検索の結果を記憶部118から取得する。S2304にて、表示用修飾テーブル生成部116は、検索の結果のうち、1つ目のデータを読出す。
In
S2306にて、表示用修飾テーブル生成部116は、表示用修飾テーブルを生成する。この処理はS2400〜S2426の各処理に該当する。
In S2306, display modification
S2308にて、作成部120は記憶部118に記憶された検索結果と表示用修飾テーブルとを参照することにより、テキストデータテーブルに含まれたデータと同じ文字修飾が施されるように表示データを作成する。結果部132は、作成部120が作成した表示データに基づき検索結果を表示する。
In S2308, the
S2310にて、表示用修飾テーブル生成部116はまだ検索結果があるか否かを判断する。検索結果があると判断した場合(S2310にてYES)、処理はS2312へと移される。もしそうでないと(S2312にてNO)、処理は終了する。
In S2310, display modification
以上の構造およびフローチャートに基づく、情報検索装置100の動作について説明する。
An operation of
検索キーとして「徳川」が選択されたこととする。S214までの処理を経て、表示用修飾テーブル生成部116は検索の結果を取得する(S2302)。図24は、本実施の形態において検索の対象となるデータのデータテーブルを表わす図である。検索の対象となるデータのデータテーブルは記憶部118に記憶される。検索の対象となるデータのデータテーブルは、「データ位置」と「読み」と「表記」と「先頭」と「最後」とを含む。「データ位置」は検索の対象となるデータにおいて各データを特定するための情報である。本実施の形態の場合、検索結果の中で何番目のデータであるかを表わす値が「データ位置」として含まれる。「読み」は処理部114により検索された文字列の読みを表わす情報である。本実施の形態の場合、テキストデータテーブルには、文書を構成する単語ごとに予め読みが定義されていることとする。「表記」は処理部114による検索の対象となった文字列を表わす情報である。「先頭」とは処理部114による検索の対象となった文字列の文書における位置のうち先頭を表わす値である。「最後」は処理部114の検索の対象となった文字列の文書における位置のうち最後を表わす値である。
It is assumed that “Tokugawa” is selected as a search key. Through the processing up to S214, the display modification
検索結果が取得されると、表示用修飾テーブル生成部116は1つ目の検索結果のデータを読出す(S2304)。図25は、検索結果のデータテーブルの構造を表わす図である。検索結果のデータテーブルは、「番号」と「データ位置」と「読み」と「表記」とを含む。「番号」は検索の対象となるデータにおいて各データを特定するための情報である。その他は検索の対象となるデータのデータテーブルと同様である。
When the search result is acquired, the display modification
検索結果が読出されると、表示用修飾テーブル生成部116は表示用修飾テーブルを生成する(S2306)。本実施の形態の場合、表示用修飾テーブル生成部116は、検索キーを含む文字列のうち修飾テーブルのデータが表わす文字列と同じ文字列に、修飾テーブルのデータが表わす文字列と同じ文字修飾を表わすデータを対応付けることにより、検索キーを含む文字列についての文字修飾を表わすデータのデータテーブルである、表示用修飾テーブルを生成する。
When the search result is read, the display modification
図26は、表示用修飾テーブルの内容を表わす図である。本実施の形態に係る表示用修飾テーブルの構造は第1の実施の形態に係る修飾テーブルと同様である。 FIG. 26 shows the contents of the display modification table. The structure of the display modification table according to the present embodiment is the same as that of the modification table according to the first embodiment.
表示用修飾テーブルが生成されると、結果部132は、表示用修飾テーブルが含むデータの内容に従って、検索結果(検索キーを含む文字列)を表示する(S2308)。図27は、検索結果が表示されたときのディスプレイ142の画面を表わす図である。検索結果にも、文書と同様の修飾が施されている。
When the display modification table is generated, the result unit 132 displays the search result (character string including the search key) according to the data content included in the display modification table (S2308). FIG. 27 is a diagram illustrating a screen of
以上のようにして、本実施の形態に係る情報検索装置は、検索の結果にも文書と同様の修飾を施すことができる。これにより、ユーザの意図しない内容の表示を防ぐことができる。 As described above, the information search apparatus according to the present embodiment can apply the same modification to the search result as the document. Thereby, the display of the content which a user does not intend can be prevented.
今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 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 情報検索装置、102 文書データ入力部、104 修飾テーブル生成部、106 対象入力部、108 操作部、110 検索キー入力部、112 条件生成部、114 処理部、116 表示用修飾テーブル生成部、118 記憶部、120 作成部、122 表示部、130 文書部、132 結果部、134 説明部、140 CPU、142 ディスプレイ、144 主記憶装置、146 外部記憶装置、148 マウス、150 キーボード、152 タブレット、154 スピーカ、156 通信デバイス、158 バス、160 ハードディスクドライブ、162 PCカードスロット、170 PCカード。
100 Information Retrieval Device, 102 Document Data Input Unit, 104 Modification Table Generation Unit, 106 Target Input Unit, 108 Operation Unit, 110 Search Key Input Unit, 112 Condition Generation Unit, 114 Processing Unit, 116 Display Modification Table Generation Unit, 118 Storage unit, 120 creation unit, 122 display unit, 130 document unit, 132 result unit, 134 description unit, 140 CPU, 142 display, 144 main storage device, 146 external storage device, 148 mouse, 150 keyboard, 152 tablet, 154
Claims (17)
前記テキストデータテーブルが含むデータを組み合わせることにより、文字修飾の対象となる前記文字列のデータテーブルである修飾テーブルを、文字修飾の種類ごとに生成するための第1の修飾テーブル生成手段と、
前記テキストデータテーブルに基づき、文書を表示するための文書用の表示手段と、
ユーザの操作に基づいて、前記ユーザが前記文書の中から検索しようとする文字列である検索キーを検出するための第1の検出手段と、
検索に対する制約を設定するための設定手段と、
前記第1の検出手段が検索キーを検出すれば、前記検索に対する制約に従って、前記テキストデータテーブルの中から、前記検索キーを含む文字列を検索するための検索手段と、
前記検索キーを含む文字列を表示するための結果用の表示手段とを含む、情報検索装置。 Storage means for storing a text data table including character string data that is character string data constituting a document and character modification data for the character string;
First modification table generation means for generating a modification table, which is a data table of the character string to be subjected to character modification, for each type of character modification by combining data included in the text data table;
A document display means for displaying the document based on the text data table;
First detection means for detecting a search key, which is a character string that the user intends to search from the document, based on a user operation;
A setting means for setting constraints on the search;
If the first detection means detects a search key, search means for searching for a character string including the search key from the text data table according to restrictions on the search;
An information search apparatus comprising: a result display means for displaying a character string including the search key.
前記検索手段は、前記第1の検出手段が検索キーを検出すれば、前記検索の条件に従って、前記テキストデータテーブルの中から、前記検索キーを含む文字列を検索するための手段を含む、請求項1に記載の情報検索装置。 The setting means includes a search condition according to a position of the search key in the document with respect to a qualified character string that is a character string to be character-modified and a distance from the search key to the qualified character string. Including means for setting
The search means includes means for searching for a character string including the search key from the text data table according to the search condition if the first detection means detects a search key. Item 2. The information search device according to Item 1.
前記検索キーから前記修飾付き文字列までの距離が閾値以下であって、前記検索キーが前記文書において前記修飾付き文字列の前にあるか否かを判断するための手段と、
前記検索キーから前記修飾付き文字列までの距離が閾値以下であって、前記検索キーが前記修飾付き文字列の前にある場合、後方一致、完全一致、およびワイルドカード検索を検索の条件とするように、検索の条件を設定するための手段とを含む、請求項2に記載の情報検索装置。 Means for setting the search conditions include:
Means for determining whether a distance from the search key to the qualified character string is less than or equal to a threshold, and the search key is in front of the qualified character string in the document;
When the distance from the search key to the qualified character string is less than or equal to a threshold and the search key is before the qualified character string, the search condition is a backward match, an exact match, and a wildcard search. The information search apparatus according to claim 2, further comprising: means for setting search conditions.
前記検索キーから前記修飾付き文字列までの距離が閾値以下であって、前記検索キーが前記文書において前記修飾付き文字列の後にあるか否かを判断するための手段と、
前記検索キーから前記修飾付き文字列までの距離が閾値以下であって、前記検索キーが前記修飾付き文字列の後にある場合、前方一致、完全一致、およびワイルドカード検索を検索の条件とするように、検索の条件を設定するための手段とを含む、請求項2に記載の情報検索装置。 Means for setting the search conditions include:
Means for determining whether a distance from the search key to the qualified character string is less than or equal to a threshold, and the search key is after the qualified character string in the document;
When the distance from the search key to the qualified character string is less than or equal to a threshold value and the search key is after the qualified character string, the search condition is a forward match, an exact match, and a wildcard search. The information search apparatus according to claim 2, further comprising: means for setting search conditions.
前記検索キーが前記修飾付き文字列を含むか否かを判断するための手段と、
前記検索キーが前記修飾付き文字列を含む場合、前方一致、後方一致、部分一致、および完全一致を検索の条件とするように、検索の条件を設定するための手段とをさらに含む、請求項7に記載の情報検索装置。 Means for setting the search conditions include:
Means for determining whether the search key includes the qualified character string;
And further comprising means for setting a search condition such that a forward match, a backward match, a partial match, and a complete match are used as a search condition when the search key includes the qualified character string. 8. The information search device according to 7.
前記検索手段は、前記第1の検出手段が検索キーを検出すれば、前記検索を禁止するような制約がある場合を除き、前記テキストデータテーブルの中から、前記検索キーを含む文字列を検索するための手段を含む、請求項1に記載の情報検索装置。 The setting means is for setting a constraint that prohibits a search when at least a part of a qualified character string that is a character string to be subjected to character modification matches at least a part of the search key. Including means,
The search means searches for a character string including the search key in the text data table, unless there is a restriction that prohibits the search if the first detection means detects the search key. The information retrieval apparatus according to claim 1, comprising means for
前記修飾付き文字列が前記検索キーを含むか否かを判断するための手段と、
前記検索キーが前記修飾付き文字列を含むか否かを判断するための手段と、
前記修飾付き文字列が前記検索キーを含む場合、および前記検索キーが前記修飾付き文字列を含む場合のいずれかに該当すれば、検索を禁止するような制約を設定するための手段とを含む、請求項9に記載の情報検索装置。 Means for setting a constraint that prohibits the search includes:
Means for determining whether the qualified character string includes the search key;
Means for determining whether the search key includes the qualified character string;
Means for setting a restriction that prohibits a search if the qualified character string includes the search key and the search key includes the qualified character string. The information search device according to claim 9.
前記結果用の表示手段は、前記表示を禁止するような制約がある場合を除き、前記検索キーを含む文字列を表示するための手段を含む、請求項1に記載の情報検索装置。 The information search apparatus further includes means for setting a constraint to prohibit display when at least a part of the qualified character string matches at least a part of the search key,
The information search apparatus according to claim 1, wherein the result display means includes means for displaying a character string including the search key, unless there is a restriction that prohibits the display.
前記情報検索装置は、
前記ユーザの操作に基づいて、前記ユーザが前記説明文の表示を希望している単語を検出するための第2の検出手段と、
前記説明文データのうち、前記ユーザが説明文の表示を希望する単語についての説明文である特定説明文を表わすデータについて、前記修飾テーブルのデータが表わす文字列と同じ文字列が、前記修飾テーブルのデータが表わす文字列と同じ文字修飾の対象となるように、前記特定説明文を構成する文字列についての文字修飾を表わすデータからなるデータテーブルである、説明用修飾テーブルを生成するための、第2の修飾テーブル生成手段と、
前記説明用修飾テーブルが含むデータの内容に従って、前記特定説明文を表示するための説明用の表示手段とをさらに含む、請求項1に記載の情報検索装置。 The storage means further includes explanatory text data representing an explanatory text about the word together with the text data table,
The information search device includes:
Second detection means for detecting a word that the user desires to display the explanatory text based on the operation of the user;
Among the explanatory text data, for the data representing the specific explanatory text that is the explanatory text for the word that the user desires to display the explanatory text, the same character string as the character string represented by the data of the modification table is the modification table. In order to generate a description modification table, which is a data table composed of data representing character modification of the character string constituting the specific description so that the same character modification target as the character string represented by the data of Second modification table generation means;
The information search apparatus according to claim 1, further comprising display means for explanation for displaying the specific explanatory text according to the content of data included in the explanation modification table.
前記情報検索装置は、
前記ユーザの操作に基づいて、前記ユーザが前記説明文の表示を希望している単語を検出するための第2の検出手段と、
前記ユーザが説明文の表示を希望する単語についての説明文である特定説明文のうちいずれかの部分を表わす文字列が、前記修飾テーブルのデータが表わす文字列と同じ場合、前記特定説明文の表示を禁止するような制約を設定するための手段と、
前記第2の検出手段が前記単語を検出すると、前記特定説明文の表示を禁止するような制約がある場合を除き、前記特定説明文を表示するための説明用の表示手段とをさらに含む、請求項1に記載の情報検索装置。 The storage means further includes explanatory text data representing an explanatory text about the word together with the text data table,
The information search device includes:
Second detection means for detecting a word that the user desires to display the explanatory text based on the operation of the user;
When the character string representing any part of the specific explanatory text that is an explanatory text for the word that the user wants to display the explanatory text is the same as the character string represented by the data of the modification table, Means for setting restrictions that prohibit display,
When there is a restriction that prohibits display of the specific explanatory text when the second detecting means detects the word, it further includes explanatory display means for displaying the specific explanatory text, The information search device according to claim 1.
前記検索キーを含む文字列のうち前記修飾テーブルのデータが表わす文字列と同じ文字列に、前記修飾テーブルのデータが表わす文字列と同じ文字修飾を表わすデータを対応付けることにより、前記検索キーを含む文字列についての文字修飾を表わすデータのデータテーブルである、表示用修飾テーブルを生成するための、第3の修飾テーブル生成手段と、
前記表示用修飾テーブルが含むデータの内容に従って、前記検索キーを含む文字列を表示するための手段とを含み、
前記情報検索装置は、前記表示用修飾テーブルを記憶するための手段をさらに含む、請求項1に記載の情報検索装置。 The result display means includes:
Including the search key by associating data representing the same character modification as the character string represented by the data of the modification table with the same character string represented by the data of the modification table among the character strings including the search key Third modification table generating means for generating a display modification table, which is a data table of data representing character modification of a character string;
Means for displaying a character string including the search key according to the content of the data included in the display modification table,
The information search device according to claim 1, further comprising means for storing the display modification table.
前記テキストデータテーブルが含むデータを組み合わせることにより、文字修飾の対象となる前記文字列のデータテーブルである修飾テーブルを、文字修飾の種類ごとに生成する第1の修飾テーブル生成ステップと、
前記テキストデータテーブルに基づき、文書を表示する文書用の表示ステップと、
ユーザの操作に基づいて、前記ユーザが前記文書の中から検索しようとする文字列である検索キーを検出する第1の検出ステップと、
検索に対する制約を設定する設定ステップと、
前記第1の検出ステップにおいて検出キーを検出すれば、前記検索に対する制約に従って、前記テキストデータテーブルの中から、前記検索キーを含む文字列を検索する検索ステップと、
前記検索キーを含む文字列を表示する結果用の表示ステップとを含む、情報検索方法。 A storage step of storing a text data table, including character string data that is data of a character string constituting the document and character modification data for the character string;
A first modification table generation step of generating a modification table, which is a data table of the character string to be subjected to character modification, for each type of character modification by combining data included in the text data table;
A document display step for displaying the document based on the text data table;
A first detection step of detecting a search key that is a character string that the user intends to search from the document based on a user operation;
A configuration step to set constraints on the search;
If a detection key is detected in the first detection step, a search step for searching a character string including the search key from the text data table in accordance with restrictions on the search;
A result display step for displaying a character string including the search key.
前記テキストデータテーブルが含むデータを組み合わせることにより、文字修飾の対象となる前記文字列のデータテーブルである修飾テーブルを、文字修飾の種類ごとに生成するための第1の修飾テーブル生成ステップと、
前記テキストデータテーブルに基づき、文書を表示する文書用の表示ステップと、
ユーザの操作に基づいて、前記ユーザが前記文書の中から検索しようとする文字列である検索キーを検出する第1の検出ステップと、
検索に対する制約を設定する設定ステップと、
前記第1の検出ステップにおいて検索キーを検出すれば、前記検索に対する制約に従って、前記テキストデータテーブルの中から、前記検索キーを含む文字列を検索する検索ステップと、
前記検索キーを含む文字列を表示する結果用の表示ステップとを含む各ステップをコンピュータに実行させるための情報検索プログラム。 A storage step of storing a text data table, including character string data that is data of a character string constituting the document and character modification data for the character string;
A first modification table generating step for generating a modification table, which is a data table of the character string to be subjected to character modification, for each type of character modification by combining data included in the text data table;
A document display step for displaying the document based on the text data table;
A first detection step of detecting a search key, which is a character string to be searched from the document, based on a user operation;
A configuration step to set constraints on the search;
If a search key is detected in the first detection step, a search step of searching for a character string including the search key from the text data table according to restrictions on the search;
An information search program for causing a computer to execute each step including a result display step for displaying a character string including the search key.
前記テキストデータテーブルが含むデータを組み合わせることにより、文字修飾の対象となる前記文字列のデータテーブルである修飾テーブルを、文字修飾の種類ごとに生成する第1の修飾テーブル生成ステップと、
前記テキストデータテーブルに基づき、文書を表示する文書用の表示ステップと、
ユーザの操作に基づいて、前記ユーザが前記文書の中から検索しようとする文字列である検索キーを検出する第1の検出ステップと、
検索に対する制約を設定する設定ステップと、
前記第1の検出ステップにおいて検出キーを検出すれば、前記検索に対する制約に従って、前記テキストデータテーブルの中から、前記検索キーを含む文字列を検索する検索ステップと、
前記検索キーを含む文字列を表示する結果用の表示ステップとを含む各ステップをコンピュータに実行させるための情報検索プログラムを記録したコンピュータ読取り可能な記録媒体。 A storage step of storing a text data table, including character string data that is data of a character string constituting the document and character modification data for the character string;
A first modification table generation step of generating a modification table, which is a data table of the character string to be subjected to character modification, for each type of character modification by combining data included in the text data table;
A document display step for displaying the document based on the text data table;
A first detection step of detecting a search key that is a character string that the user intends to search from the document based on a user operation;
A configuration step to set constraints on the search;
If a detection key is detected in the first detection step, a search step for searching a character string including the search key from the text data table in accordance with restrictions on the search;
A computer-readable recording medium storing an information search program for causing a computer to execute each step including a result display step for displaying a character string including the search key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006012198A JP2007193641A (en) | 2006-01-20 | 2006-01-20 | Information retrieval device, information retrieval method, information retrieval program and computer-readable recording medium recording information retrieval program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006012198A JP2007193641A (en) | 2006-01-20 | 2006-01-20 | Information retrieval device, information retrieval method, information retrieval program and computer-readable recording medium recording information retrieval program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007193641A true JP2007193641A (en) | 2007-08-02 |
Family
ID=38449287
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006012198A Pending JP2007193641A (en) | 2006-01-20 | 2006-01-20 | Information retrieval device, information retrieval method, information retrieval program and computer-readable recording medium recording information retrieval program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007193641A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011159090A (en) * | 2010-01-29 | 2011-08-18 | Sanyo Electric Co Ltd | Search system, search device and search program |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0736926A (en) * | 1993-06-28 | 1995-02-07 | Nippon Telegr & Teleph Corp <Ntt> | Method and device for matching incomplete character string with character string |
JPH11238068A (en) * | 1998-02-20 | 1999-08-31 | Fuji Xerox Co Ltd | Text retrieval device |
JP2000099535A (en) * | 1998-09-24 | 2000-04-07 | Canon Inc | Picture retrieval device and method, and computer readable memory |
JP2002259368A (en) * | 2001-03-01 | 2002-09-13 | Nippon Telegr & Teleph Corp <Ntt> | Method and device for working document cipher, document cipher working processing program and recording medium therefor |
JP2004164502A (en) * | 2002-11-15 | 2004-06-10 | Casio Comput Co Ltd | Terminal device, server, dictionary retrieval program and dictionary retrieval method |
-
2006
- 2006-01-20 JP JP2006012198A patent/JP2007193641A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0736926A (en) * | 1993-06-28 | 1995-02-07 | Nippon Telegr & Teleph Corp <Ntt> | Method and device for matching incomplete character string with character string |
JPH11238068A (en) * | 1998-02-20 | 1999-08-31 | Fuji Xerox Co Ltd | Text retrieval device |
JP2000099535A (en) * | 1998-09-24 | 2000-04-07 | Canon Inc | Picture retrieval device and method, and computer readable memory |
JP2002259368A (en) * | 2001-03-01 | 2002-09-13 | Nippon Telegr & Teleph Corp <Ntt> | Method and device for working document cipher, document cipher working processing program and recording medium therefor |
JP2004164502A (en) * | 2002-11-15 | 2004-06-10 | Casio Comput Co Ltd | Terminal device, server, dictionary retrieval program and dictionary retrieval method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011159090A (en) * | 2010-01-29 | 2011-08-18 | Sanyo Electric Co Ltd | Search system, search device and search program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5724430B2 (en) | Information retrieval apparatus and program | |
JP5688230B2 (en) | INPUT PROGRAM, INPUT DEVICE, SYSTEM, AND INPUT METHOD | |
JP2004021791A (en) | Method for describing existing data by natural language and program for the method | |
JP2002117027A (en) | Feeling information extracting method and recording medium for feeling information extracting program | |
JP2006259919A (en) | Device for supporting input of character string | |
JP2011076384A (en) | Information output device and information output program | |
JP2007193641A (en) | Information retrieval device, information retrieval method, information retrieval program and computer-readable recording medium recording information retrieval program | |
WO2019235131A1 (en) | Search text generation system and search text generation method | |
JP2003167600A (en) | Voice recognition unit and its method, page description language display device and its control method, and computer program | |
JP2006163651A (en) | Display device, control method of display device, program and font data | |
JP7247593B2 (en) | Generation device, software robot system, generation method and generation program | |
JP6036911B2 (en) | Information display control device, information display control method, and program | |
US20130174029A1 (en) | Method and apparatus for analyzing a document | |
JP2017102939A (en) | Authoring device, authoring method, and program | |
JP5741542B2 (en) | Information display control device, information display control method, and program | |
JP2002207754A (en) | Electronic dictionary system and electronic dictionary system program therefor | |
JP2011197814A (en) | Input program, input device, system, and input method | |
JP4416644B2 (en) | Character processing apparatus with prediction function, method, recording medium, and program | |
JP5417774B2 (en) | Electronic device and program with dictionary function | |
CN110390241B (en) | Information processing apparatus, information processing method, and computer-readable recording medium | |
JP3022791B2 (en) | Character input simplification device | |
JPH1091701A (en) | Form document system | |
JP5569178B2 (en) | Dictionary search apparatus and program | |
JP5782841B2 (en) | Chinese sentence display device and program | |
AU2013200005B2 (en) | Method and apparatus for analyzing abbreviations in a document |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080220 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100423 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100427 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100622 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100928 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101122 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110712 |