JP5314493B2 - Information search method, information search device, and information search program - Google Patents
Information search method, information search device, and information search program Download PDFInfo
- Publication number
- JP5314493B2 JP5314493B2 JP2009118478A JP2009118478A JP5314493B2 JP 5314493 B2 JP5314493 B2 JP 5314493B2 JP 2009118478 A JP2009118478 A JP 2009118478A JP 2009118478 A JP2009118478 A JP 2009118478A JP 5314493 B2 JP5314493 B2 JP 5314493B2
- Authority
- JP
- Japan
- Prior art keywords
- word
- position information
- character string
- index
- appearance frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、検索条件の文字列が出現する電子文書を検索し、前記文字列の出現頻度に基づきランキングする情報検索の技術に関する。 The present invention relates to an information search technique for searching an electronic document in which a character string of a search condition appears and ranking based on the appearance frequency of the character string.
周知のように一般的な情報検索装置は、任意の文字列を持つ電子文書を検索するために、予め蓄積された電子文書群からインデックス(単語インデックス)を作成する。この単語インデックスを参照して検索結果の集合を求め、該検索結果を表示する順序を決定(ランキング)する。 As is well known, a general information search apparatus creates an index (word index) from a previously stored electronic document group in order to search for an electronic document having an arbitrary character string. A set of search results is obtained with reference to this word index, and the order in which the search results are displayed is determined (ranking).
図6に基づき概略を説明すれば、情報検索装置1は、単語インデックス2,インデックス参照部3(近接検索手段6を含む。),検索条件入力部4,検索結果出力部5を備え、前記単語インデックス2のデータ構造に転置インデックスや「suffix array」などを利用する。ここでは転置インデクスのデータ構造を例に説明する。
Referring to FIG. 6, the
前記検索条件入力部4が検索条件、即ち検索語を受け付けると、該検索語の文字列(クエリ)が前記インデックス参照部3に転送される。前記インデックス参照部3では、例えば”東京都”や”東京 都知事”などのクエリを形態素解析し、単語毎に分割する。また、分割された単語を持つ文書を高速に検索するために前記単語インデックス2を参照する。
When the search
前記単語インデックス2には、例えば非特許文献1の転置インデックスが利用される。ここでは最もシンプルな転置インデックスの保持方法として、単語の位置情報を図7の方法で紹介している。この構造を転置インデックスと呼び、各単語のリスト(図7中の「word_x」毎のリスト)を転置リストと呼ぶ。この転置リストには文書ID(図7中のid),出現頻度,位置情報がそれぞれ格納されている。
For the
この文書IDは電子文書毎に付与された番号を示し、出現頻度は該IDの電子文書中で「word_x」が出現する回数を示し、位置情報は該IDの電子文書中の「word_x」の位置を示している。図7の例によれば、”東京”に対応する転置リストは文書ID「1」に4回出現し,その位置情報が「1,5,65,69」と示されている。 The document ID indicates a number assigned to each electronic document, the appearance frequency indicates the number of times “word_x” appears in the electronic document with the ID, and the position information indicates the position of “word_x” in the electronic document with the ID. Is shown. According to the example of FIG. 7, the transposed list corresponding to “Tokyo” appears four times in the document ID “1”, and the position information is indicated as “1, 5, 65, 69”.
この位置情報は、検索語が複合語やフレーズ(句,熟語など)の時に利用される。例えば“東京都”という複数の単語から構成される複合語で検索された場合、文書ID「1」の電子文書では5番目の単語が”東京”で6番目の単語が”都”なので、“東京都”という複合語が該電子文書に出現することが分かる。一方、文書ID「144」の電子文書は、”東京”と”都”が隣り合って出現していないので、”東京都”という複合語は出現していないことが分かる。このように複合語やフレーズとして出現しているか否かをチェックする処理を連接処理と呼ぶ。この連接処理は、主に前記インデックス参照部3が実行し、次の目的に利用される。
1:フレーズや複合語を持つ電子文書を特定する
2:フレーズ,複合語の出現頻度を数える
詳述すれば、「フレーズや複合語を持つ電子文書を特定する」とは,複合語が出現しているか否かを判断し,最後に検索結果として出力すべき電子文書か否かを特定することを意味する。例えば”東京都”という複合語が検索条件の場合、”東京都”が出現する電子文書のみを検索結果の集合とすることが挙げられる。
This position information is used when the search word is a compound word or a phrase (phrase, idiom, etc.). For example, when searching for a compound word composed of a plurality of words “Tokyo”, the fifth word is “Tokyo” and the sixth word is “Tokyo” in the electronic document with the document ID “1”. It can be seen that the compound word “Tokyo” appears in the electronic document. On the other hand, in the electronic document with the document ID “144”, “Tokyo” and “Tokyo” do not appear next to each other, so that it is understood that the compound word “Tokyo” does not appear. The process of checking whether or not it appears as a compound word or phrase is called a concatenation process. This connection process is mainly executed by the
1: Specifying an electronic document having a phrase or compound word 2: Counting the frequency of occurrence of a phrase or compound word In detail, “identifying an electronic document having a phrase or compound word” means that a compound word appears. This means that it is determined whether or not the electronic document is to be output as a search result. For example, when the search term is a compound word “Tokyo”, only electronic documents in which “Tokyo” appears can be used as a set of search results.
また、「出現頻度を数える」とは,検索条件となった複合語の電子文書中での出現頻度を数えることを意味する。図7の転置リストで”東京”と”都”の転置リストを参照すると、文書ID「1」の電子文書には複合語”東京都”が3回(”東京”の位置情報「5,65,69」、”都”の位置情報「6,66,70」)出現していることが分かる。この出現頻度は、前記検索結果出力部5から最終的に検索結果として出力する際の順序付け(ランキング)の指標に利用される。例えば検索条件となった文字列の出現頻度順に検索結果を表示することなどが挙げられる。以下、図8に基づき前記インデックス参照部3の処理ステップ(S001〜S0013)を説明する。
Further, “counting the appearance frequency” means counting the appearance frequency in the electronic document of the compound word serving as the search condition. Referring to the transposed list of “Tokyo” and “Miyako” in the transposed list of FIG. 7, the compound word “Tokyo” is included three times in the electronic document with the document ID “1” (position information “5,65” of “Tokyo”). , 69 ”and“ city ”position information“ 6, 66, 70 ”). This appearance frequency is used as an index for ranking when ranking is finally output from the search
S001:まず、前記検索条件入力部4から転送された検索条件の文字列を単語毎に分割する。例えば”東京都”という文字列が検索条件の場合は、”東京”と”都”という単語に分割される。これはMecab(非特許文献2参照)などの形態要素解析の技術で実現できる。
S001: First, the character string of the search condition transferred from the search
S002:S001で形態要素解析した結果、検索条件が複数の単語で構成されえいるか否かを判定する。例えば検索条件が”東京”である場合は,1つの単語で構成されるため、S003の処理に進み、その検索単語の転置リストを単語インデックス2から取得し、検索結果を作成して処理を終了する。一方、”東京都”のように複数の形態素で構成される場合はS004に処理に進む。
S002: As a result of the morphological element analysis in S001, it is determined whether or not the search condition can be composed of a plurality of words. For example, when the search condition is “Tokyo”, since it is composed of one word, the process proceeds to S003, the transposed list of the search word is acquired from the
S004.S005:ここでは検索条件を構成する各単語に応じた転置リストを単語インデックス2から取得する(S004)。取得した転置リストを参照し、すべての転置リストに出現する文書IDのうち、最も小さい番号の文書IDを取得する(S005)。例えば図7の転置リストでは、”東京”と”都”のそれぞれの単語が出現する最も小さい番号には文書ID「1」が該当する。 S004. S005: Here, a transposed list corresponding to each word constituting the search condition is acquired from the word index 2 (S004). With reference to the acquired transposed list, the document ID having the smallest number among the document IDs appearing in all the transposed lists is acquired (S005). For example, in the transposed list of FIG. 7, the document ID “1” corresponds to the smallest number in which the words “Tokyo” and “Tokyo” appear.
S006:S005の処理に合致する文書IDが存在するか否かをチェックする。先ほどの”東京都”の検索例では文書ID「1」が存在するので、S007の処理に移行する。逆にS005の処理に合致する文書IDが存在しない場合には処理を終了する。 S006: It is checked whether there is a document ID that matches the process of S005. Since the document ID “1” exists in the search example of “Tokyo”, the process proceeds to S007. Conversely, if there is no document ID that matches the process of S005, the process ends.
S007.S008:出現頻度iの初期値「1」を設定する(S007)。また、S006で存在確認された文書IDにおいて先頭の位置情報を取得する(S008)。例えば文書ID「1」の電子文書において、”東京”に対する先頭の位置情報は「1」と示されている。 S007. S008: An initial value “1” of the appearance frequency i is set (S007). Further, the top position information is acquired in the document ID whose existence is confirmed in S006 (S008). For example, in the electronic document with the document ID “1”, the head position information for “Tokyo” is indicated as “1”.
S009.S010:前記近接検索手段6を通じてS008で取得した位置情報が他の転置リストに隣り合って出現するか否かをチェックする(S009)。ここでは取得した位置情報に隣接する位置情報が他の転置リストに出現していればよいものとする。 S009. S010: It is checked whether or not the position information acquired in S008 through the proximity search means 6 appears next to another transposition list (S009). Here, it is only necessary that position information adjacent to the acquired position information appears in another transposition list.
図7の例では、”都”という単語が文書ID「1」中、位置情報「2」に出現する転置リストをチェックする。ここでは位置情報「2」には出現していないので、S010の処理に移行し、次の位置情報が存在するか否かをチェックする。この場合、”東京”の単語については位置情報「1」の次に位置情報「5」が存在するため、かかる位置情報「5」を取得して、S009の処理を再開する。このとき図7の例では、”東京”の位置情報5に対して、”都”の位置情報「6」が他の転置リストに存在するため、S010の処理に移行する。
In the example of FIG. 7, the transposed list in which the word “city” appears in the position information “2” in the document ID “1” is checked. Here, since it does not appear in the position information “2”, the process proceeds to S010 and it is checked whether or not the next position information exists. In this case, since the position information “5” exists after the position information “1” for the word “Tokyo”, the position information “5” is acquired, and the process of S009 is resumed. At this time, in the example of FIG. 7, since the location information “6” of “Miyako” exists in the other transposition list with respect to the
S011〜S013:出現頻度iに「1」を加算し(S011)、次の位置情報を取得する(S012)。ここで取得した位置情報に対して、S009以降の処理を繰り返し、最終的に出現頻度「i」とその文書IDを検索結果に追加する(S013)。 S011 to S013: “1” is added to the appearance frequency i (S011), and the next position information is acquired (S012). The processing after S009 is repeated for the position information acquired here, and finally the appearance frequency “i” and its document ID are added to the search result (S013).
しかしながら、出現頻度「i」を求めるためには、位置情報のチェック(S008〜S012の処理)を全ての位置情報について行わなければない。したがって、既存のインデックス形式の場合、連接処理は電子文書内に出現する全ての単語の位置情報を探索する必要性が生じ、処理速度が遅く、また処理コストが増加するおそれもあった。 However, in order to obtain the appearance frequency “i”, the position information must be checked (the processing of S008 to S012) for all the position information. Therefore, in the case of the existing index format, it becomes necessary to search the position information of all the words appearing in the electronic document, and the processing speed may be slow and the processing cost may increase.
本発明は、上述のような問題点を解決するためになされたものであり、検索条件を構成する文字列の出現頻度を迅速に算出し、処理効率を向上させることを解決課題としている。 The present invention has been made in order to solve the above-described problems, and it is an object of the present invention to quickly calculate the appearance frequency of the character strings constituting the search condition and improve the processing efficiency.
そこで、本発明は、検索条件を構成する単語間の近接数、即ち出現頻度を予測することで全ての位置情報を参照することなく、検索結果を作成させる。このとき連接処理の前記目的のうち、フレーズや複合語を持つ電子文書を特定する過程の情報を利用する。 Therefore, the present invention makes it possible to create a search result without referring to all position information by predicting the number of proximities between words constituting the search condition, that is, the appearance frequency. At this time, information on a process of specifying an electronic document having a phrase or a compound word is used among the purposes of the concatenation process.
本発明の一態様は、検索条件の文字列を含む電子文書を検索し、該検索結果に追加するために前記文字列の出現頻度を求める情報検索方法であって、インデックス参照手段が、予め蓄積された電子文書から作成された単語インデックスを参照して前記検索結果を求める第1ステップと、近接数予測手段が、前記文字列を構成する各単語の近接数を予測して、前記出現頻度を求める第2ステップと、を有する。 One aspect of the present invention is an information search method for searching for an electronic document including a character string of a search condition and obtaining an appearance frequency of the character string to add to the search result. A first step for obtaining the search result with reference to a word index created from the electronic document, and a proximity number predicting unit predicting the proximity number of each word constituting the character string, and calculating the appearance frequency A second step to obtain.
本発明の他の態様は、検索条件の文字列を含む電子文書を検索し、該検索結果に追加するために前記文字列の出現頻度を求める情報検索装置であって、予め蓄積された電子文書から作成された単語インデックスと、該単語インデックを参照して前記検索結果を作成するインデックス参照手段とを備え、前記インデックス参照手段に、前記文字列を構成する各単語の近接数を予測して、前記出現頻度を求める近接数予測手段が設けられている。 Another aspect of the present invention is an information search apparatus for searching for an electronic document including a character string of a search condition and obtaining an appearance frequency of the character string to add to the search result, the electronic document stored in advance And the index reference means for creating the search result with reference to the word index, the index reference means predicting the proximity number of each word constituting the character string, Proximity number predicting means for determining the appearance frequency is provided.
なお、本発明は、前記情報検索装置としてコンピュータを機能させるためのプログラムの態様としてもよく、また該プログラムを記録した記録媒体の態様で提供してもよい。 The present invention may be in the form of a program for causing a computer to function as the information retrieval apparatus, or may be provided in the form of a recording medium on which the program is recorded.
本発明によれば、電子文書内の全ての位置情報を参照することなく、出現頻度が算出されるため、処理効率が向上し、処理コストも抑制される。 According to the present invention, since the appearance frequency is calculated without referring to all position information in the electronic document, the processing efficiency is improved and the processing cost is also suppressed.
≪装置構成例≫
図1に示すように、本発明の実施形態に係る情報処理装置10は、前記情報処理装置1とほぼ同様に構成され、インデックス参照部7に近接数予測手段11が組み込まれている点で相違している。
≪Example of device configuration≫
As shown in FIG. 1, an
具体的には、前記情報処理装置10は、いわゆる検索エンジンとして機能し、通常のコンピュータのハードウェアリソース、例えばCPU,メモリ(RAM),ハードディスクドライブ装置、通信デバイスなどを備える。このハードウェアリソースとソフトウェアリソース(OS,アプリケーションなど)との協働の結果、前記情報処理装置10は、従来例と同様に予め蓄積された電子文書群から作成された単語インデックス2と、検索条件(検索語)を受け付ける検索条件入力4と、検索条件の文字列(クエリ)をもって単語インデック2を参照して検索結果を作成するインデックス参照部7と、検索結果を出力する検索結果出力部5とを有している。
Specifically, the
ここでは前記インデックス参照部7は、検索条件を構成する各単語が前記単語インテックス2の転置リスト間で隣接するか否かをチェックする近接検索手段6と、前記各単語の近接数、即ち複合語で構成された検索条件の出現頻度を予測する近接頻度予測手段11とを有している。
Here, the
この近接頻度予測手段11は、前記近接検索手段6にて任意の単語の出現位置からのチェックで近接状態、即ち位置情報の連接を少なくとも1回以上確認できれば、該単語の出現件数に対するチェック回数の割合で複合語が存在すると仮定して各単語の近接数を予測する。 If the proximity search means 6 can check the proximity state, that is, the connection of position information at least once by checking from the appearance position of an arbitrary word, the proximity frequency predicting means 11 can check the number of checks for the number of occurrences of the word. Assuming that compound words exist at a rate, the number of adjacent words is predicted.
なお、前記単語インデックス2は前記ハードディスドライブ装置に構築され、前記ハードディスドライブ装置には前記単語インデッククスを作成するための蓄積文書が格納されているものとする。また、前記入出力部4.5は前記通信デバイスを通じて実現され、図示省略のユーザ端末(例えばパーソナルコンピュータや携帯電話など)とインターネット経由で通信可能に接続されているものとする。
It is assumed that the
≪インデックス参照部7の基本的処理≫
以下、図2に基づき前記近接頻度予測手段11を組み込んだ前記インデックス参照部7の処理を説明する。ここでは前記検索条件入力部4が前記ユーザ端末から送信された検索条件(検索語)を受け付け、前記インデックス参照部7では検索条件入力部4から転送された検索条件の文字列(クエリ)をもって前記単語インデックス2を参照し、該文字列を含む電子文書の検索結果を作成するものとする。このとき前記文字列の出現頻度を一指標として検索結果をランキングし、前記検索結果出力部5を通じて前記ユーザ端末に返信するものとする。なお、前記検索条件は複合語あるいはフレーズとし、前記単語インデックス2の構造には図7の転置リスト例を用いて説明する。
<< Basic Processing of
Hereinafter, the processing of the
S101〜S106:ここでは前記インデック参照部7は、基本的に従来例のS001〜S006と同様の処理を実施する。この概略を説明すれば、まず前記検索条件入力部4から転送された検索条件の文字列を単語毎に分割する(S101)。例えば”東京都”という文字列が検索条件となった場合は”東京”と”都”という単語に分割される。この分割には非特許文献1の「Mecab」などの形態素解析が利用される。
S101 to S106: Here, the
つぎに形態素解析の結果,検索条件の文字列が複数の単語で構成されるか否かを判定する(S102)。例えば検索条件が”東京”である場合は、1つの単語で構成されるため、従来技術で検索を実施する(S103)。具体的には、検索条件”東京”の転置リストを単語インデックス2から取得し、検索結果を作成して検索処理を終了する。
Next, as a result of the morphological analysis, it is determined whether or not the character string of the search condition is composed of a plurality of words (S102). For example, if the search condition is “Tokyo”, the search condition is made up of a single word, so that the search is performed using the conventional technique (S103). Specifically, the transposed list of the search condition “Tokyo” is acquired from the
一方、先ほどの”東京都”のように検索条件が複数の形態素で構成される場合は、各単語に応じた転置リストを単語インデックス2から取得する(S104)。その後に取得した転置リストを参照し、全ての転置リストに出現する電子文書の文書IDのうちで、最も小さい番号の文書IDを取得する(S105)。図7の転置リスト例によれば、”東京”と”都”のそれぞれの単語が出現する電子文書のうち最も小さい番号は文書ID「1」が該当する。 On the other hand, when the search condition is composed of a plurality of morphemes as in “Tokyo”, the transposed list corresponding to each word is acquired from the word index 2 (S104). Thereafter, the obtained transposition list is referred to, and the document ID having the smallest number among the document IDs of the electronic documents appearing in all the transposition lists is obtained (S105). According to the transposed list example of FIG. 7, the document ID “1” corresponds to the smallest number among the electronic documents in which the words “Tokyo” and “City” appear.
このときS105の処理に合致する文書IDが存在するか否かがチェックされ(S106)、存在しない場合には処理を終了する。一方、先ほどの”東京都”の検索例では文書ID「1」が、S105の処理に合致するため、S107の処理に移行する。なお、前記単語配置リストや前記文書IDなどの中間データは、前記メモリに記憶されて処理が実施されるものとする。 At this time, it is checked whether or not there is a document ID that matches the process of S105 (S106). If there is no document ID, the process ends. On the other hand, in the previous search example of “Tokyo”, the document ID “1” matches the process of S105, so the process proceeds to S107. The intermediate data such as the word arrangement list and the document ID is stored in the memory and processed.
S107〜S109:前記インデック参照部7は、出現頻度を予測するための参照数iに初期値「1」を設定する(S107)。この設定後にS008.S009と同様な処理を実施する。すなわち、S106で存在確認された文書IDにおいて先頭の位置情報を取得する(S108)。図7の転置リスト例によれば、文書ID「1」において”東京”に対する先頭の位置情報は「1」と示されている。
S107 to S109: The
つぎに前記近接検索手段6が、S108で取得した位置情報が他の転置リストに隣り合って出現するか否か、即ち連接の有無をチェックする(S109)。図7の転置リストに基づき説明すれば、”都”という単語が文書ID「1」の位置情報「2」に出現する転置リストをチェック(確認)する。 Next, the proximity search means 6 checks whether or not the position information acquired in S108 appears next to another transposition list, that is, whether or not there is a connection (S109). To explain based on the transposed list of FIG. 7, the transposed list in which the word “city” appears in the position information “2” of the document ID “1” is checked (confirmed).
ここでは位置情報「2」が出現していないので、S110以降の処理に移行する。もし、チェックの結果、他の転置リストに出現する場合はS112以降の処理に移行するものとする。なお、前記各位置情報および前記参照数iも、前記メモリに記憶されて処理が実施されるものとする。 Since the position information “2” does not appear here, the process proceeds to S110 and subsequent steps. If, as a result of the check, it appears in another transposed list, the process proceeds to S112 and subsequent steps. Note that the position information and the reference number i are also stored in the memory and processed.
S110:前記インデックス参照部7は、S109のチェックの結果、所望の位置情報の出現が確認されなければ、参照数iに「1」を加算し、前記メモリの記憶情報の更新後に次の位置情報を取得する。図7の転置リストによれば、位置情報「1」の次に”東京”に対する位置情報「5」が存在するため、かかる位置情報「5」が取得される。ここで取得した位置情報「5」を前記メモリに記憶し、S111の処理に移行する。
S110: If the appearance of desired position information is not confirmed as a result of the check in S109, the
S111:前記インデックス参照部7は、S110で取得記憶した位置情報が電子文書の末尾であるか否かを確認し、末尾の場合にはS105の処理に戻る一方、末尾でない場合にはS109以降の処理を繰り返す。
S111: The
図7の転置リストでは、前記メモリに記憶(セット)された位置情報「5」は文書ID「1」の電子文書の末尾ではないので、S109の処理に移行する。このときS109の処理では、”都”の転置リストに位置情報「6」が出現するか否かがチェック(確認)される。ここでは”都”の文書ID「1」には位置情報「6」が存在するため、位置情報の連接が確認でき、S112の処理に移行する。 In the transposed list of FIG. 7, since the position information “5” stored (set) in the memory is not the end of the electronic document with the document ID “1”, the process proceeds to S109. At this time, in the process of S109, it is checked (confirmed) whether or not the position information “6” appears in the transposition list of “Miyako”. Here, since the position information “6” exists in the document ID “1” of “Me”, the connection of the position information can be confirmed, and the process proceeds to S112.
S112:前記近接予測手段11は、検索条件を構成する各単語の近接数、即ち複合語の出現頻度を予測する。このとき前記近接予測手段11は、前記メモリの記憶情報、即ち参照数「i」と転置リストの情報(各単語の出現頻度)とを利用して出現頻度の予測値を算出する。この算出には、例えば次の式(1)が用いられる。この式(1)はプログラムに定義されているものとする。
S112: The proximity predicting means 11 predicts the number of proximity of each word constituting the search condition, that is, the appearance frequency of the compound word. At this time, the
ここで「tf(q)」は、複合語を構成する単語のうち、最も「tf」が小さい単語「qmin」の出現頻度を示している。図7の転置リスト例では、”東京”と”都”の出現頻度が等しいので,出現頻度(qmin)は「4」と算出される。参照数は、図2のフロー中の参照数iを示している。図7の転置リスト例では、S110で初期値に「1」が加算されているので、参照数i=「2」が成立し、「tf(東京都)estimate=4/2=2(予測値)」と算出される。 Here, “tf (q)” indicates the appearance frequency of the word “q min ” having the smallest “tf” among the words constituting the compound word. In the example of the transposition list of FIG. 7, since the appearance frequencies of “Tokyo” and “Miyako” are equal, the appearance frequency (q min ) is calculated as “4”. The reference number indicates the reference number i in the flow of FIG. In the example of the transposed list in FIG. 7, since “1” is added to the initial value in S110, the reference number i = “2” is established, and “tf (Tokyo) estimate = 4/2 = 2 (predicted value) ) ".
S113:前記近接予測手段11は、文書ID「1」と該文書IDでの予測値(図7の転置リスト例では「2」)を検索結果に追加する。その後にS105の処理に戻って同様な処理を全ての転置リストで実施する。すなわち、文書ID「2」以降で順次にS105以降の処理を実施し、S105で該当する文書IDが存在しなくなれば処理を終了する(S106)。
S113: The
このように一般的に複数の単語で構成される検索条件の場合(複合語やフレーズなど)の出現回数は全ての位置情報を参照しなければならないが、前記近接予測手段11を組み込んだ前記インデックス参照部7によれば、S112で参照数と転置リストの情報(各単語の出現頻度など)を利用して出現頻度が予測されるため、全ての位置情報を参照することなく、検索結果が作成できる。
Thus, in general, in the case of a search condition composed of a plurality of words (compound words, phrases, etc.), the number of appearances must refer to all position information, but the index incorporating the proximity predicting means 11 According to the
図7に基づいて詳述すれば、”東京”の転置リストに対する出現頻度は、前記情報処理装置1の場合、位置情報(1,5,65,69)を全て参照して求めなければならない。これに対して前記情報処理装置10は、前記近接予測手段11が前記インデック参照部7に組み込まれているため、位置情報(1,5)を参照すればよく、これにより計算量が削減される。この点で処理効率が向上し、検索処理の迅速化に貢献する。また、計算量が削減されるので、計算コストも抑制される。
Referring to FIG. 7 in detail, in the case of the
≪他の処理例(1)≫
基本的処理例(S101〜S113)では、参照数iは最初の単語q1のみを計数するものの、図3に示すように、実際は単語毎に参照数iが存在する。図7の転置リスト例に基づく処理では、式(1)の参照数は”東京”という単語のみの参照数iを考慮していたが,複合語やフレーズを構成する全ての単語の参照数を利用して、出現頻度予測してもよい。この場合にはS112で、次の式(2)を用いて予測値が算出される。この式(2)もプログラムに定義されるものとする。
<< Other processing example (1) >>
The basic processing example (S101~S113), the reference number i although counts only the first word q 1, as shown in FIG. 3, the actual reference number i is present in each word. In the processing based on the transposed list example of FIG. 7, the number of references in formula (1) considers the number of references i only for the word “Tokyo”, but the number of references for all words constituting a compound word or phrase is calculated. It may be used to predict the appearance frequency. In this case, in S112, the predicted value is calculated using the following equation (2). This equation (2) is also defined in the program.
ここで,|Q|は文字列Qを構成する単語数を示し、参照数(q)は各単語の参照数を示している。このように単語毎に複合語やフレーズの出現頻度を予測し,その平均値を予測値とすることもできる。 Here, | Q | indicates the number of words constituting the character string Q, and the reference number (q) indicates the reference number of each word. Thus, the appearance frequency of a compound word or a phrase can be predicted for each word, and the average value can be used as a predicted value.
≪他の処理例(2)≫
また、基本的処理例(S101〜S113)では、複合語を構成する各単語が最初に隣接する位置で出現頻度を予測していた(S109.S112)が、複数回の出現から頻度を予測してもよい。この場合には、図4に示すように、文書ID「1」の位置情報が「5」の段階で1度連接していることを確認しているが、次の連接位置「65」までカーソルを進めて処理を実施する。
<< Other processing example (2) >>
In the basic processing example (S101 to S113), the appearance frequency is predicted at the position where each word constituting the compound word is first adjacent (S109.S112), but the frequency is predicted from a plurality of appearances. May be. In this case, as shown in FIG. 4, it is confirmed that the position information of the document ID “1” is connected once at the stage of “5”, but the cursor is moved to the next connection position “65”. To proceed with the process.
図5は、複数回の連接数、即ちK回の連接数を利用する処理フローを示し、S201〜S206は、S101〜S106と同様の処理を実施する。S207では前記近接予測手段11が、連接数「k=0(初期値)」を設定し、かつ閾値Kを設定している点で基本的処理例と相違する。ここで設定される閾値Kは整数とし、プログラムに設定してもよい。 FIG. 5 shows a processing flow that uses a plurality of connection numbers, that is, K connection numbers. S201 to S206 perform the same processes as S101 to S106. In S207, the proximity predicting means 11 is different from the basic processing example in that the connection number “k = 0 (initial value)” is set and the threshold value K is set. The threshold value K set here may be an integer and set in the program.
その後のS208〜S211において、S108〜S111と同様な処理を実施し、S212ではS209で位置情報の連接を確認できても、連接数kが閾値Kよりも小さい場合には次の位置情報の連接をチェックさせる。すなわち、S213で連接数kに「1」を加算し、S209以降の処理を繰り返す。このときS212で連接数kが閾値Kを越えていれば、S214.S215の処理、即ちS112.S113と同様な処理が実施される。なお、連接数kを前記メモリに記憶してS207以降の処理を実施するものとする。 In subsequent S208 to S211, the same processing as in S108 to S111 is performed. In S212, if the connection of position information can be confirmed in S209, if the connection number k is smaller than the threshold value K, the connection of the next position information is performed. Let me check. That is, “1” is added to the concatenation number k in S213, and the processing from S209 onward is repeated. At this time, if the connection number k exceeds the threshold value K in S212, S214. The process of S215, that is, S112. Processing similar to S113 is performed. It is assumed that the connection number k is stored in the memory and the processing from S207 is executed.
このように閾値Kを設定してあるので、全ての位置情報を参照することなく、検索結果を作成できる。このとき複数回の連接数を利用して出現頻度が予測されているため、予測の確実性も向上する。 Since the threshold value K is set in this way, a search result can be created without referring to all position information. At this time, since the appearance frequency is predicted using the number of consecutive connections, the certainty of prediction is also improved.
≪プログラムなど≫
本発明は、前記情報検索装置10の各手段2.4〜7.11の一部もしくは全部として、コンピュータを機能させるプログラムとして構成することもできる。このプログラムによれば、S101〜S113.S201〜S213の全ステップあるいは一部のステップをコンピュータに実行させる。
≪Programs≫
The present invention can also be configured as a program that causes a computer to function as a part or all of the means 2.4 to 7.11 of the
前記プログラムは、Webサイトや電子メールなどネットワークを通じて提供することができる。また、前記プログラムは、CD−ROM,DVD−ROM,CD−R,CD−RW,DVD−R,DVD−RW,MO,HDD,Blu−ray Disk(登録商標)などの記録媒体に記録して、保存・配布することも可能である。この記録媒体は、記録媒体駆動装置を利用して読み出され、そのプログラムコード自体が前記実施形態の処理を実現するので、該記録媒体も本発明を構成する。 The program can be provided through a network such as a website or e-mail. The program is recorded on a recording medium such as a CD-ROM, DVD-ROM, CD-R, CD-RW, DVD-R, DVD-RW, MO, HDD, Blu-ray Disk (registered trademark). It is also possible to save and distribute. This recording medium is read using a recording medium driving device, and the program code itself realizes the processing of the above embodiment, so that the recording medium also constitutes the present invention.
2…単語インデックス
4…検索条件入力部
5…検索結果出力部
6…近接検索手段
7…インデックス参照部(インデックス参照手段)
10…情報検索装置
11…近接数予測手段
2 ...
DESCRIPTION OF
Claims (7)
インデックス参照手段が、予め蓄積された電子文書から作成された単語インデックスを参照して前記検索結果を求める第1ステップと、
近接数予測手段が、前記文字列を構成する各単語の近接数を予測して、前記出現頻度を求める第2ステップと、
を有することを特徴とする情報検索方法。 An information search method for searching an electronic document including a character string of a search condition and obtaining an appearance frequency of the character string to add to the search result,
A first step in which an index reference means obtains the search result by referring to a word index created from an electronic document stored in advance;
A proximity number predicting means predicting the proximity number of each word constituting the character string and obtaining the appearance frequency;
A method for retrieving information, comprising:
前記文字列を構成する任意単語の位置情報が他の単語の位置情報と連接するまで該他の単語の位置情報群を順次参照するステップとを有し、
前記第2ステップは、前記両位置情報の連接が確認されれば、前記任意単語の出現頻度と前記参照の回数とから前記近接数を予測する
ことを特徴とする請求項1記載の情報検索方法。 The first step includes obtaining a list of document ID, appearance frequency, and appearance position group from the word index according to each word constituting the character string;
Sequentially referring to position information groups of other words until position information of arbitrary words constituting the character string is connected to position information of other words,
2. The information search method according to claim 1, wherein the second step predicts the proximity number from the appearance frequency of the arbitrary word and the number of times of reference if the connection of the two pieces of position information is confirmed. .
前記文字列を構成する任意の単語の位置情報における他の単語の位置情報との連接数が閾値の回数に達するまで該他の単語の位置情報群を順次参照するステップとを有し、
前記第2ステップは、前記両位置情報の連接数が前記閾値の回数に達すれば、前記任意単語の出現頻度と前記参照の回数とから前記近接数を予測する<BR>
ことを特徴とする請求項1記載の情報検索方法。 The first step includes obtaining a list of document ID, appearance frequency, and appearance position group from the word index according to each word constituting the character string;
Sequentially referencing the position information group of other words until the number of concatenations with the position information of other words in the position information of any word constituting the character string reaches a threshold number of times,
The second step predicts the proximity number from the appearance frequency of the arbitrary word and the reference frequency when the number of concatenations of the position information reaches the threshold number of times <BR>
The information search method according to claim 1, wherein:
予め蓄積された電子文書から作成された単語インデックスと、該単語インデックを参照して前記検索結果を作成するインデックス参照手段とを備え、
前記インデックス参照手段に、前記文字列を構成する各単語の近接数を予測して、前記出現頻度を求める近接数予測手段を設けた
ことを特徴とする情報検索装置。 An information search device that searches an electronic document including a character string of a search condition and obtains an appearance frequency of the character string to add to the search result,
A word index created from an electronic document stored in advance, and an index reference means for creating the search result by referring to the word index,
The information search apparatus according to claim 1, wherein the index reference means is provided with a proximity number predicting means for predicting the proximity number of each word constituting the character string and determining the appearance frequency.
前記文字列を構成する任意単語の位置情報が他の単語の位置情報と連接するまで該他の単語の位置情報群を順次参照し、
前記近接数予測手段は、前記両位置情報の連接が確認されれば、前記任意単語の出現頻度と前記参照の回数とから前記近接数を予測する
ことを特徴とする請求項4記載の情報検索装置。 The index reference means acquires a list of document ID, appearance frequency, appearance position from the word index according to each word constituting the character string,
Sequentially refer to the position information group of the other word until the position information of the arbitrary word constituting the character string is connected to the position information of the other word,
The information search according to claim 4, wherein the proximity number predicting unit predicts the proximity number from the appearance frequency of the arbitrary word and the number of times of reference when the connection of the both pieces of position information is confirmed. apparatus.
前記文字列を構成する任意の単語の位置情報における他の単語の位置情報との連接数が閾値の回数に達するまで該他の単語の位置情報群を順次参照し、
前記近接数予測手段は、前記両位置情報の連接数が前記閾値の回数に達すれば、前記任意単語の出現頻度と前記参照の回数とから前記近接数を予測する
ことを特徴とする請求項4記載の情報検索装置。 The index reference means acquires a list of document ID, appearance frequency, appearance position from the word index according to each word constituting the character string,
Sequentially refer to the position information group of the other word until the number of concatenations with the position information of the other word in the position information of an arbitrary word constituting the character string reaches a threshold number of times,
5. The proximity number predicting unit predicts the proximity number from the appearance frequency of the arbitrary word and the number of times of reference when the number of concatenations of the both pieces of position information reaches the threshold number of times. The information retrieval device described.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009118478A JP5314493B2 (en) | 2009-05-15 | 2009-05-15 | Information search method, information search device, and information search program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009118478A JP5314493B2 (en) | 2009-05-15 | 2009-05-15 | Information search method, information search device, and information search program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010267109A JP2010267109A (en) | 2010-11-25 |
| JP5314493B2 true JP5314493B2 (en) | 2013-10-16 |
Family
ID=43364021
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009118478A Expired - Fee Related JP5314493B2 (en) | 2009-05-15 | 2009-05-15 | Information search method, information search device, and information search program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5314493B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5179564B2 (en) * | 2010-12-28 | 2013-04-10 | ヤフー株式会社 | Query segment position determination device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2929963B2 (en) * | 1995-03-15 | 1999-08-03 | 松下電器産業株式会社 | Document search device, word index creation method, and document search method |
| JPH09114842A (en) * | 1995-10-13 | 1997-05-02 | Nec Software Ltd | Information retrieval processor and information retrieval processing method |
| JP4213931B2 (en) * | 2002-08-29 | 2009-01-28 | 中部電力株式会社 | Specific information search method and information search device |
-
2009
- 2009-05-15 JP JP2009118478A patent/JP5314493B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2010267109A (en) | 2010-11-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103518187B (en) | Method and system for information modeling and applications thereof | |
| RU2501078C2 (en) | Ranking search results using edit distance and document information | |
| JP4950444B2 (en) | System and method for ranking search results using click distance | |
| CN101273350B (en) | Click distance determination | |
| KR101479040B1 (en) | Method, apparatus, and computer storage medium for automatically adding tags to document | |
| JP5054593B2 (en) | Information retrieval apparatus and program | |
| CN110673836B (en) | A code completion method, device, computing device and storage medium | |
| JP4672418B2 (en) | Efficient capitalization by user modeling | |
| US9164980B2 (en) | Name identification rule generating apparatus and name identification rule generating method | |
| JP2003523559A (en) | System and iterative method for joint optimization of dictionaries, segmentation and language models | |
| JP2005122743A5 (en) | ||
| CN112154420A (en) | Automated Smart Cloud Service Testing Tool | |
| CN102906736A (en) | System and method for matching entities and synonym group organizer used therein | |
| WO2023138047A1 (en) | Cyber threat information extraction method, device, storage medium, and apparatus | |
| KR101120773B1 (en) | Representation of a deleted interpolation n-gram language model in arpa standard format | |
| JP4237813B2 (en) | Structured document management system | |
| CN111444703A (en) | Statement compression method, apparatus, device, and computer-readable storage medium | |
| JP5314493B2 (en) | Information search method, information search device, and information search program | |
| JP5980520B2 (en) | Method and apparatus for efficiently processing a query | |
| JP5179564B2 (en) | Query segment position determination device | |
| JP2011033806A (en) | Language model compression device, access device of language model, language model compression method, access method of language model, language model compression program, and access program of language model | |
| CN104615756B (en) | Webpage loading method | |
| JP2006040081A (en) | Information search apparatus, database search preprocessing circuit, and information search method | |
| JP5235730B2 (en) | Document search apparatus, document search method, and document search program | |
| JP5730798B2 (en) | Information search apparatus, information search method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110926 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130228 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130312 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130411 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130702 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130705 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5314493 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |