JP5389715B2 - Document number prediction apparatus, method and program for compound words - Google Patents
Document number prediction apparatus, method and program for compound words Download PDFInfo
- Publication number
- JP5389715B2 JP5389715B2 JP2010078794A JP2010078794A JP5389715B2 JP 5389715 B2 JP5389715 B2 JP 5389715B2 JP 2010078794 A JP2010078794 A JP 2010078794A JP 2010078794 A JP2010078794 A JP 2010078794A JP 5389715 B2 JP5389715 B2 JP 5389715B2
- Authority
- JP
- Japan
- Prior art keywords
- documents
- word
- document
- transposed index
- prediction
- 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 apparatus, method, and program for predicting the number of documents for a compound word, and more particularly to predicting the number of documents when the number of documents including the compound word is unknown for a compound word query input by a user. The present invention relates to a document number prediction apparatus, method, and program for a compound word focusing on a bias of a document including a compound word with respect to a part of a document group in order to improve a calculation amount of a document search and a response speed of a search result.
近年、インターネット上で検索サービスが広く普及し、ユーザが欲しい文書へのクエリを用いて文書を効率良く文書が検索できるようになった。ここで、この検索を実現するために、文書に関するインデックスを作成し、ユーザから入力されたクエリに該当するインデックスから文書を検索結果として提供している。 In recent years, search services have become widespread on the Internet, and it has become possible to search for documents efficiently using queries to documents that users want. Here, in order to realize this search, an index relating to the document is created, and the document is provided as a search result from the index corresponding to the query input by the user.
文書群に対するインデックスとして、一般に転置インデックスが用いられる(例えば、非特許文献1参照)。この転置インデックスとは、ある単語に対して単語を含む文書をリスト化したものである。図9の転置インデックスの例を用いて説明する。同図には「太陽」に関する転置インデックスを示している。転置インデックス内の1つ目の四角は「太陽」を含む文書に関する情報を示している。ここでは、文書として「Doc1」に関する情報が入っている。このDoc1に関する情報はいくつかの情報から構成されており、同図では、「Doc1」の情報として以下の3つの情報が入っている。 A transposed index is generally used as an index for a document group (see, for example, Non-Patent Document 1). The transposed index is a list of documents including words with respect to a certain word. This will be described with reference to the example of the inverted index in FIG. The figure shows a transposed index related to the “sun”. The first square in the transposed index indicates information regarding a document including “sun”. Here, information regarding “Doc1” is included as a document. The information related to Doc1 is composed of several pieces of information. In the figure, the following three pieces of information are included as information of “Doc1”.
1.文書ID
2.単語(「太陽」)の出現回数
3.単語(「太陽」)の出現位置
また、この転置インデックスは予め作成するため、単語を含む文書数の情報も保持している。図9では、「太陽」を含む文書は15文書存在する。
1. Document ID
2. 2. Number of occurrences of word ("sun") Appearance position of word ("sun") Since this transposed index is created in advance, information on the number of documents including the word is also held. In FIG. 9, there are 15 documents including “sun”.
前述のように単語に対する転置インデックスを検索対象となる文書群から抽出した単語に対して作成しておくが、ユーザから入力されるクエリには転置インデックスが用意されていない単語の場合がある。転置インデックスが用意されていないクエリに対しては、クエリを構成する単語群や関連する単語の転置インデックスから該当する文書を求める必要がある。 As described above, a transposed index for a word is created for a word extracted from a document group to be searched, but a query input from a user may be a word for which a transposed index is not prepared. For a query for which an inverted index is not prepared, it is necessary to obtain a corresponding document from a group of words constituting the query and an inverted index of related words.
ここではクエリが複合語(複数の単語から構成される語)の場合について取り上げ、複合語に対する転置インデックスが用意されていない時の文書のリストを求める方法について説明する。複合語のクエリとして「太陽エネルギー」の場合について説明する。図9のように「太陽」、「エネルギー」の転置インデックスが用意されている場合、「太陽エネルギー」を含む文書をこれら転置インデックスから求める必要がある。まずは、「太陽」を含む文書「Doc1」に着目し、「エネルギー」を含む文書を探索する。ここでは、「エネルギー」の転置インデックスから「Doc1」に「エネルギー」が含まれていることがわかる。 Here, a case where the query is a compound word (a word composed of a plurality of words) will be taken up, and a method for obtaining a list of documents when a transposed index for the compound word is not prepared will be described. The case of “solar energy” as a compound word query will be described. When transposed indexes of “sun” and “energy” are prepared as shown in FIG. 9, it is necessary to obtain a document including “solar energy” from these transposed indexes. First, paying attention to the document “Doc1” including “sun”, the document including “energy” is searched. Here, it can be seen from the transposition index of “energy” that “Doc1” contains “energy”.
次に、「Doc1」の「太陽」の出現位置の次に、「エネルギー」の出現位置が連続する箇所を探索する。図9からは「太陽」の出現位置が"1"に対し、「エネルギー」の出現位置が"2"のため「Doc1」に「太陽エネルギー」が含まれることを検出する。同様の処理を、「太陽」の転置インデックスに存在するすべての文書に対して処理し、「太陽エネルギー」を含む文書のリストを作成する。
Next, the location where the appearance position of “energy” continues after the appearance position of “Sun” in “Doc1” is searched. From FIG. 9, since the appearance position of “sun” is “1” and the appearance position of “energy” is “2”, it is detected that “
しかしながら、前述の従来技術では、ユーザからクエリが入力された際に、複合語を構成する複数の転置インデックスから複合語を含む文書を検出する必要があり、転置インデックス全体から逐次処理した場合は計算量が多く、応答時間が長くなる問題がある。 However, in the above-described conventional technology, when a query is input from a user, it is necessary to detect a document including a compound word from a plurality of inverted indexes constituting the compound word, and calculation is performed when sequentially processing from the entire inverted index. There is a problem that the amount is large and the response time becomes long.
また、対象とする文書群から予め複合語に対する転置インデックスを作成して応答時間を短縮する場合は、用意する転置インデックスの数が膨大になりコストが大きくなる問題がある。 In addition, when a transposed index for a compound word is created in advance from a target document group to shorten the response time, there is a problem that the number of prepared transposed indexes becomes enormous and the cost increases.
その一方で、複合語を構成する一部の文書数を基に、文書群全体の複合語を構成する文書数を予測する場合には、複合語を構成する一部の文書群の存在状況により予測値が大きく異なる問題がある。ここでの文書群の存在状況とは、文書に対象とする複合語が含まれていた文書数と含まれていなかった文書数の割合のことを示す。 On the other hand, when predicting the number of documents that make up the compound word of the entire document group based on the number of documents that make up the compound word, it depends on the existence status of some documents that make up the compound word. There is a problem that the predicted values differ greatly. The existence status of the document group here indicates the ratio of the number of documents in which the target compound word is included in the document to the number of documents that are not included.
本発明は、上記の点に鑑みなされたもので、少ないコストで文書数を予測でき、また、一部の文書群から検出した複合語を含む文書数を基に、文書数を予測する場合に、一般的な手段での予測文書数よりも精度良く予測可能な複合語に対する文書数予測装置及び方法及びプログラムを提供することを目的とする。 The present invention has been made in view of the above points. In the case where the number of documents can be predicted at a low cost, and the number of documents is predicted based on the number of documents including compound words detected from some document groups. Another object of the present invention is to provide a document number prediction apparatus, method, and program for a compound word that can be predicted with higher accuracy than the number of predicted documents by a general means.
図1は、本発明の原理構成図である。 FIG. 1 is a principle configuration diagram of the present invention.
本発明(請求項1)は、文書検索における複合語に対する文書数予測装置であって、
単語名毎に、該単語を含んでいる文書ID、単語の出現回数、単語の出現位置を含む転置インデックスを格納した転置インデックス記憶手段60と、
ユーザから入力されたクエリが複合語の場合に複合語を単一の単語に分割する単語分割手段10と、
分割された単語に基づいて転置インデックス記憶手段60を参照して、分割した単語それぞれに対する転置インデックスを抽出する転置インデックス取得手段21と、
予め設定した文書数を対象として、抽出された転置インデックスから抽出した複合語を含む文書数を算出する文書数算出手段22と、
検出した複合語を含む文書数と転置インデックス取得手段21で取得した各単語を含む文書数に基づいて、文書数予測ルールを用いて全文書に対する複合語を含む文書数の予測値を算出する予測値算出手段100と、を有する。
The present invention (Claim 1) is a document number prediction apparatus for compound words in document search,
For each word name, a transposed index storage means 60 that stores a transposed index including a document ID including the word, the number of appearances of the word, and the appearance position of the word;
Word splitting means 10 for splitting a compound word into a single word when the query inputted by the user is a compound word;
A transposed
Document number calculation means 22 for calculating the number of documents including a compound word extracted from the extracted transposed index for a preset number of documents;
Prediction for calculating a predicted value of the number of documents including a compound word for all documents using a document number prediction rule based on the number of documents including the detected compound word and the number of documents including each word acquired by the transposed
また、本発明(請求項2)は、請求項1の文書数予測ルールにおいて、
複合語を含む文書を検出する際に、各単語の転置インデックスを探索した文書数比が単独の単語の文書数比よりも大きい場合は、単独文書数比を用いて予測する文書数を小さく補正するルールを含む。
The present invention (Claim 2) provides the document number prediction rule of
When detecting a document containing compound words, if the ratio of the number of documents searched for the transposed index of each word is larger than the ratio of the number of documents of a single word, the number of predicted documents is corrected to be smaller using the ratio of the number of single documents. Including rules to do.
また、本発明(請求項3)は、請求項1の文書数予測ルールにおいて、
複合語を含む文書を検出する際に、各単語の転置インデックスを探索した文書数比が単独の単語の文書数比よりも小さい場合は、単独文書数比を用いて予測する文書数を大きく補正するルールを含む。
Further, the present invention (Claim 3) is the document number prediction rule of
When detecting documents containing compound words, if the ratio of the number of documents searched for the transposed index of each word is smaller than the ratio of the number of documents of a single word, the number of predicted documents is greatly corrected using the ratio of the number of single documents. Including rules to do.
図2は、本発明の原理を説明するための図である。 FIG. 2 is a diagram for explaining the principle of the present invention.
本発明(請求項4)は、文書検索における複合語に対する文書数予測方法であって、
単語名毎に、該単語を含んでいる文書ID、単語の出現回数、単語の出現位置を含む転置インデックスを格納した転置インデックス記憶手段と、
文書数予測ルールを格納したルール記憶手段と、を有する装置が、
ユーザから入力されたクエリが複合語の場合に複合語を単一の単語に分割する単語分割ステップ(ステップ1)と、
分割された単語に基づいて転置インデックス記憶手段を参照して、分割した単語それぞれに対する転置インデックスを抽出する転置インデックス取得ステップ(ステップ2)と、
予め設定した文書数を対象として、抽出された転置インデックスから抽出した複合語を含む文書数を算出する文書数算出ステップ(ステップ3)と、
検出した複合語を含む文書数と転置インデックス取得ステップ(ステップ2)で取得した各単語を含む文書数に基づいて、文書数予測ルールを用いて全文書に対する複合語を含む文書数の予測値を算出する予測値算出ステップ(ステップ4)と、を行う。
The present invention (Claim 4) is a method for predicting the number of documents for a compound word in document search,
For each word name, a transposed index storage unit that stores a transposed index including a document ID including the word, the number of occurrences of the word, and the appearance position of the word;
An apparatus having rule storage means storing document number prediction rules,
A word dividing step (step 1) for dividing the compound word into a single word when the query inputted by the user is a compound word;
A transposed index acquisition step (step 2) for referring to the transposed index storage means based on the divided words and extracting a transposed index for each divided word;
A document number calculation step (step 3) for calculating the number of documents including a compound word extracted from the extracted transposed index for a preset number of documents;
Based on the number of documents including the detected compound word and the number of documents including each word acquired in the transposed index acquisition step (step 2), the predicted value of the number of documents including the compound word for all documents is calculated using the document number prediction rule. A predicted value calculation step (step 4) to be calculated is performed.
また、本発明(請求項5)は、請求項4の予測値算出ステップにおいて、
複合語を含む文書を検出する際に、各単語の転置インデックスを探索した文書数比が単独の単語の文書数比よりも大きい場合は、単独文書数比を用いて予測する文書数を小さく補正する文書数予測ルールを用いる。
Further, according to the present invention (Claim 5), in the predicted value calculation step of
When detecting a document containing compound words, if the ratio of the number of documents searched for the transposed index of each word is larger than the ratio of the number of documents of a single word, the number of predicted documents is corrected to be smaller using the ratio of the number of single documents. Use the document number prediction rule.
また、本発明(請求項6)は、請求項4の予測値算出ステップにおいて、
複合語を含む文書を検出する際に、各単語の転置インデックスを探索した文書数比が単独の単語の文書数比よりも小さい場合は、単独文書数比を用いて予測する文書数を大きく補正する文書数予測ルールを用いる。
Further, the present invention (Claim 6) is a predicted value calculating step according to
When detecting documents containing compound words, if the ratio of the number of documents searched for the transposed index of each word is smaller than the ratio of the number of documents of a single word, the number of predicted documents is greatly corrected using the ratio of the number of single documents. Use the document number prediction rule.
本発明(請求項7)は、請求項1乃至3のいずれか1項に記載の文書数予測装置を構成する各手段としてコンピュータを機能させるための文書数予測プログラムである。
The present invention (Claim 7) is a document number prediction program for causing a computer to function as each means constituting the document number prediction apparatus according to any one of
上記のように本発明によれば、従来の複合語に対する文書数の計算において、複合語を構成する単語の転置インデックスを逐次スキャンして複合語を含む文書数を計算するより、少ない計算量で文書数を予測できる。また、一部の文書群から検出した複合語を含む文書数を基に文書数を予測する場合に、一般的な手段での予測文書数よりも精度よく予測できる。 As described above, according to the present invention, in the calculation of the number of documents for the conventional compound word, the calculation amount is smaller than the calculation of the number of documents including the compound word by sequentially scanning the transposed index of the words constituting the compound word. Predict the number of documents. Further, when the number of documents is predicted based on the number of documents including a compound word detected from a part of the document group, it can be predicted with higher accuracy than the number of documents predicted by a general means.
以下、図面と共に、本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図3は、本発明の一実施の形態における文書数予測装置の構成を示す。 FIG. 3 shows the configuration of the document number prediction apparatus according to the embodiment of the present invention.
同図に示す文書数予測装置は、クエリ入力部10、文書数予測部20、予測式1計算部30、予測式2計算部40、予測式3計算部50、転置インデックス記憶部60、予測ルール記憶部70から構成される。このうち、転置インデクス記憶部60、予測ルール記憶部70は、ハードディスクやメモリ等の記憶媒体である。
The document number prediction apparatus shown in the figure includes a
クエリ入力部10は、入力されたクエリが複合語である場合は、当該複合語を単一の単語に分割する。
When the input query is a compound word, the
文書数予測部20は、クエリ入力部10で分割された単語に基づいて、転置インデックス60を検索し、各単語に対応する文書ID、出現回数、出現位置を含む転置インデックスを抽出し、当該単語に対する転置リストを生成する。当該転置インデックスから複合語を含む文書数を検出する。
The document
予測式1計算部30、予測式計算部40、予測式3計算部50は、予め設定された条件に対応する予測ルールに基づいて、検出した複合語を含む文書数と当該複合語中の各単語を含む文書数を基に文書数を予測する。
The
転置インデックス記憶部60は、単語名毎に転置インデックスが格納されている。ここで、転置インデックスは、単語を含んでいる文書の文書ID,単語の出現回数、単語の出現位置を含む。
The transposed
予測ルール記憶部70は、予測式1計算部30、予測式計算部40、予測式3計算部50で用いる文書数予測のためのルールを格納する。
The prediction
上記の構成における動作を説明する。 The operation in the above configuration will be described.
図4は、本発明の一実施の形態における文書数予測装置の動作のフローチャートである。 FIG. 4 is a flowchart of the operation of the document number prediction apparatus according to the embodiment of the present invention.
ステップ101) 予め、処理する転置インデックスの割合を文書数予測装置のメモリ(図示せず)に設定する。 Step 101) The ratio of the inverted index to be processed is set in advance in the memory (not shown) of the document number prediction apparatus.
ステップ102) クエリ入力部10は、入力された複合語を形態素解析し、単一の単語に分割する。
Step 102) The
ステップ103) 文書数予測部20は、分割されたそれぞれの単語に対する転置インデックスを転置インデックス記憶部60から読み出す。
Step 103) The document
ステップ104) 文書数予測部20は、ステップ103で読み出した転置インデックスにより各単語に対する文書数dfを計数し、当該文書数において、最も文書数の小さい単語を選出し、ここでは単語aとする。反対に、文書数の小さい単語を単語bとする。また、単語aの文書数df1、単語bの文書数をdf2とする。
Step 104) The document
ステップ105) ステップ104で選出した単語aの転置インデックスに対して、ステップ101でメモリ(図示せず)に格納されている割合に基づいて、サーチする文書数を決定する。ここで決定した文書数をNとする。
Step 105) The number of documents to be searched is determined based on the ratio stored in the memory (not shown) in
ステップ106) ステップ104で選出した単語aの転置リストから、ステップ105で決定したN個分の、単語aの転置インデックスの先頭からの単語の出現位置を基に入力されたクエリの複合語を含む文書数を探索する。このとき検出した複合語を含む文書数をD、単語aでサーチしたインデックス数をs1、単語bでサーチしたインデックス数をs2とする。
Step 106) From the transposed list of word a selected in
ステップ107) 文書数予測部20は、s1/s2が、"1.0"よりも大きい場合は、ステップ108に移行し、そうでなければステップ109に移行する。
Step 107) When s1 / s2 is larger than “1.0”, the document
ステップ108) 予測式1計算部30は、条件(s1/s2>1.0)に基づいて予測ルール記憶部70から以下の予測式1を取得し、複合語の文書数を予測し、出力する。
Step 108) The
予測式1=D/(s2/(df1−s1+s2))
ステップ109) s1/s2とdf1/df2を比較し、s1/s2<df1/df2である場合は、ステップ110に移行し、s1/s2≧df1/df2である場合はステップ111に移行する。
Step 109) s1 / s2 is compared with df1 / df2, and if s1 / s2 <df1 / df2, the process proceeds to Step 110, and if s1 / s2 ≧ df1 / df2, the process proceeds to Step 111.
ステップ110) 予測式2計算部40は、条件(s1/s2>1.0かつ、s1/s2<df1/df2)に基づいて予測ルール記憶部70から以下の予測式2を取得し、複合語の文書数を予測し出力する。
Step 110) The prediction formula 2
予測式2=D/(a1/df1)×(1.0−((s1/s2)/(df1/df2)))
ステップ111) 予測式3計算部50は、条件(s1/s2>1.0、かつ、1/s2≧df1/df2)に基づいて予測ルール記憶部70から以下の予測式3を取得し、複合語の文書数を予測し出力する。
Prediction formula 2 = D / (a1 / df1) × (1.0 − ((s1 / s2) / (df1 / df2)))
Step 111) The
予測式3=D/(s1/df1)
以下に、上記の実施の形態で述べた文書数予測装置の具体的な動作を図4のフローチャートに沿って説明する。 The specific operation of the document number prediction apparatus described in the above embodiment will be described below with reference to the flowchart of FIG.
以下の実施例では、転置インデックス記憶部60には、単語名として「太陽」、「エネルギー」に関する転置インデックス情報が格納されているものとして説明する。
In the following embodiment, it is assumed that the transposed
クエリ入力部10にクエリとして、複合語「太陽エネルギー」が入力されると、「太陽エネルギー」を形態素解析し、「太陽」、「エネルギー」の2つの単語に分割する。次に、「太陽」、「エネルギー」を文書数予測部20に転送する(ステップ101)。
When the compound word “solar energy” is input as a query to the
文書数予測部20は、「太陽」、「エネルギー」の単語を取得すると、「太陽」、「エネルギー」の2つの単語に関する転置インデックス情報を転置インデックス記憶部60から読み出す(ステップ102)。ここで、読み出した転置インデックス情報の例を図9に示す。同図では、文書内に「太陽」、「エネルギー」の単語を含んでいる文書に関する転置インデックスとして、各文書に対する文書ID、出現回数、出現位置が格納されている。
When the document
次に、文書数予測部20は、「太陽」、「エネルギー」の各転置インデックスに対し、文書ID毎に「太陽エネルギー」の単語を含む文書を探索する(ステップ103)。まず、始めに、文書IDが「Doc1」の文書に対して「太陽エネルギー」の複合語が文書に含まれるかを探索するために、「太陽」の転置インデックスから「太陽」の単語の出現位置を抽出する。ここでは、図9より「1」を取り出す。次に、「エネルギー」の転置インデックスから「1」よりも大きく、かつ、最小の出現位置を抽出する。ここでは、「2」が取り出される。「太陽」の出現位置「1」、「エネルギー」の出現位置「2」が連続しているため、「太陽エネルギー」が当該文書(文書ID「Doc1」)内に出現することを検知する。文書ID「Doc1」で「太陽エネルギー」が検出されたため、次の文書に対して同様の処理を行う。
Next, the document
本実施例での「太陽エネルギー」を含む文書群の検出状況を図5に示す。図5では、1つの長方形が文書の転置インデックスを表しており、「○」が付いているのは文書内に「太陽エネルギー」を含む文書であることを示す(ステップ104)。 FIG. 5 shows a detection state of a document group including “solar energy” in the present embodiment. In FIG. 5, one rectangle represents a transposition index of a document, and “○” indicates that the document includes “solar energy” in the document (step 104).
本実施例では、文書数の小さい「太陽」の転置インデックスの先頭から4件サーチする。本実施例では、図6の例のように「太陽」の文書数(df1)が10とすると、転置インデックスの先頭の4文書をサーチする。このとき、4文書中1文書(D=1)見つかったものとする(図6の○の付いている文書)。 In the present embodiment, four items are searched from the top of the transposed index of “Sun” having a small number of documents. In this embodiment, if the number of documents (df1) of “sun” is 10, as in the example of FIG. 6, the first four documents of the transposed index are searched. At this time, it is assumed that one of four documents (D = 1) is found (a document with a circle in FIG. 6).
この例では、「太陽」をサーチした文書数s1が"4"、「エネルギー」をサーチした文書数s2が"2"となり(ステップ105,106)、2つの転置インデックスをサーチした文書数の比(4/2)が1.0以上のため(ステップ107)、予測式1計算部30において下記の予測式により文書数を予測する(ステップ108)。
In this example, the number of documents s1 searched for “sun” is “4” and the number of documents s2 searched for “energy” is “2” (
予測文書数=D/(s2/(df1−s1+s2))
=1/(2/(10−4+2))
=4
上記を「太陽エネルギー」の予測文書数とする。
Number of predicted documents = D / (s2 / (df1-s1 + s2))
= 1 / (2 / (10-4 + 2))
= 4
The above is the number of documents for “solar energy”.
次に、図7の例のように、複合語「太陽エネルギー」に関する文書の文書数を予測する場合について説明する。同図の例では、「太陽」の文書数が"10"、「エネルギー」の文書数が"11"であり(ステップ103)、文書数小さい「太陽」の転置インデックスに対して(ステップ104)、先頭の2文書をサーチし(ステップ105,106)、「太陽エネルギー」を含む文書が1つ(D=1)見つかったものとする。
Next, a case where the number of documents related to the compound word “solar energy” is predicted as in the example of FIG. 7 will be described. In the example shown in the figure, the number of documents of “sun” is “10”, the number of documents of “energy” is “11” (step 103), and the inverted index of “sun” is small (step 104). It is assumed that the first two documents are searched (
図7の例では、「太陽」をサーチした文書数s1が"2"、「エネルギー」でサーチした文書数s2が"7"となり、2つの転置インデックスをサーチした文書の比が2/7で1.0未満であり(ステップ107)、さらに、2つの単語のDF比(10/11)が2つの転置インデックスをサーチした文書の比(2/7)よりも大きいため(ステップ109)、予測式2計算部40において下記の予測式により文書数を予測する(ステップ110)。 In the example of FIG. 7, the document number s1 searched for “sun” is “2”, the document number s2 searched for “energy” is “7”, and the ratio of documents searched for two transposed indexes is 2/7. Since it is less than 1.0 (step 107) and the DF ratio (10/11) of the two words is larger than the ratio (2/7) of the documents searched for the two transposed indexes (step 109), the prediction The number of documents is predicted by the following prediction formula in the formula 2 calculation unit 40 (step 110).
予測文書数=D/(s1/df1)×(1.0−((s1/s2)/(df1/df2)))
=1/(2/10)×(1.0−((2/7)/(10/11)))
=1/(1/5)×(1.0−0.3143)
=1/(1/5)×0.6857
=3.4285
上記を「太陽エネルギー」の予測文書数とする。
Number of predicted documents = D / (s1 / df1) × (1.0 − ((s1 / s2) / (df1 / df2)))
= 1 / (2/10) x (1.0-((2/7) / (10/11)))
= 1 / (1/5) x (1.0-0.3143)
= 1 / (1/5) x 0.6857
= 3.4285
The above is the number of documents for “solar energy”.
次に、図8の例のように複合語「太陽エネルギー」に関する文書の文書数を予測する場合について説明する。同図の例では、「太陽」の文書数が"6"、「エネルギー」の文書数が"16"であり、文書数の小さい「太陽」の転置インデックスに対して、先頭の2文書をサーチし、「太陽エネルギー」を含む文書が1つ見つかったものとする(ステップ103〜104)。 Next, a case where the number of documents related to the compound word “solar energy” is predicted as in the example of FIG. 8 will be described. In the example in the figure, the number of documents for “Sun” is “6”, the number of documents for “Energy” is “16”, and the first two documents are searched for the inverted index of “Sun” with a small number of documents. It is assumed that one document including “solar energy” is found (steps 103 to 104).
この例では、「太陽」をサーチした文書数s1が"2"、「エネルギー」をサーチした文書数s2が"3"となり(ステップ105)、2つの転置インデックスをサーチした文書の比(2/3)が1.0未満であり(ステップ107)、さらに、2つの単語のDF比(6/16)が2つの転置インデックスをサーチした文書の比(2/3)よりも小さいため(ステップ109)、予測式3計算部50において下記の予測式により文書数を予測する(ステップ111)。
In this example, the document number s1 searched for “sun” is “2” and the document number s2 searched for “energy” is “3” (step 105). The ratio of documents searched for two transposed indexes (2 / 3) is less than 1.0 (step 107), and the DF ratio (6/16) of the two words is smaller than the ratio (2/3) of the documents searched for the two transposed indexes (step 109). ), The
予測文書数=D/(s1/df1)
=1/(2/6)
=3
上記を「太陽エネルギー」の予測DFとする。
Expected number of documents = D / (s1 / df1)
= 1 / (2/6)
= 3
The above is the prediction DF of “solar energy”.
なお、上記の図3に示す文書数予測装置の構成要素の動作をプログラムとして構築し、文書数予測装置として利用されるコンピュータにインストールして実行させる、または、ネットワークを介して流通させることが可能である。 The operations of the components of the document number predicting apparatus shown in FIG. 3 can be constructed as a program and installed in a computer used as the document number predicting apparatus, or can be distributed via a network. It is.
また、構築されたプログラムをハードディスクや、フレキシブルディスク、CD−ROM等の可搬記憶媒体に格納し、コンピュータにインストールする、または、配布することが可能である。 In addition, the constructed program can be stored in a portable storage medium such as a hard disk, a flexible disk, or a CD-ROM, and can be installed or distributed in a computer.
本発明は、上記の実施の形態及び実施例に限定されることなく、特許請求の範囲内において種々変更、応用が可能である。 The present invention is not limited to the above-described embodiments and examples, and various modifications and applications are possible within the scope of the claims.
10 単語分割手段、クエリ入力部
20 文書数予測部
21 転置インデックス取得手段
22 文書数算出手段
30 予測式1計算部
40 予測式2計算部
50 予測式3計算部
60 転置インデックス記憶手段、転置インデックス記憶部
70 予測ルール記憶部
100 予測値算出手段
DESCRIPTION OF
Claims (7)
単語名毎に、該単語を含んでいる文書ID、単語の出現回数、単語の出現位置を含む転置インデックスを格納した転置インデックス記憶手段と、
ユーザから入力されたクエリが複合語の場合に複合語を単一の単語に分割する単語分割手段と、
分割された単語に基づいて前記転置インデックス記憶手段を参照して、分割した単語それぞれに対する転置インデックスを抽出する転置インデックス取得手段と、
予め設定した文書数を対象として、抽出された前記転置インデックスから抽出した複合語を含む文書数を算出する文書数算出手段と、
検出した複合語を含む文書数と前記転置インデックス取得手段で取得した各単語を含む文書数に基づいて、文書数予測ルールを用いて全文書に対する複合語を含む文書数の予測値を算出する予測値算出手段と、
を有することを特徴とする文書数予測装置。 A device for predicting the number of documents for a compound word in document search,
For each word name, a transposed index storage unit that stores a transposed index including a document ID including the word, the number of occurrences of the word, and the appearance position of the word;
A word dividing means for dividing a compound word into a single word when a query inputted by a user is a compound word;
A transposed index obtaining unit that extracts a transposed index for each of the divided words by referring to the transposed index storage unit based on the divided words;
Document number calculation means for calculating the number of documents including compound words extracted from the extracted transposed index for the number of documents set in advance;
Prediction for calculating a predicted value of the number of documents including compound words for all documents using a document number prediction rule based on the number of documents including detected compound words and the number of documents including each word acquired by the transposed index acquisition unit A value calculating means;
An apparatus for predicting the number of documents.
複合語を含む文書を検出する際に、各単語の転置インデックスを探索した文書数比が単独の単語の文書数比よりも大きい場合は、単独文書数比を用いて予測する文書数を小さく補正するルールを含む
請求項1記載の文書数予測装置。 The document number prediction rule is:
When detecting a document containing compound words, if the ratio of the number of documents searched for the transposed index of each word is larger than the ratio of the number of documents of a single word, the number of predicted documents is corrected to be smaller using the ratio of the number of single documents. The document number prediction apparatus according to claim 1, further comprising:
複合語を含む文書を検出する際に、各単語の転置インデックスを探索した文書数比が単独の単語の文書数比よりも小さい場合は、単独文書数比を用いて予測する文書数を大きく補正するルールを含む
請求項1記載の文書数予測装置。 The document number prediction rule is:
When detecting documents containing compound words, if the ratio of the number of documents searched for the transposed index of each word is smaller than the ratio of the number of documents of a single word, the number of predicted documents is greatly corrected using the ratio of the number of single documents. The document number prediction apparatus according to claim 1, further comprising:
単語名毎に、該単語を含んでいる文書ID、単語の出現回数、単語の出現位置を含む転置インデックスを格納した転置インデックス記憶手段と、
文書数予測ルールを格納したルール記憶手段と、を有する装置が、
ユーザから入力されたクエリが複合語の場合に複合語を単一の単語に分割する単語分割ステップと、
分割された単語に基づいて前記転置インデックス記憶手段を参照して、分割した単語それぞれに対する転置インデックスを抽出する転置インデックス取得ステップと、
予め設定した文書数を対象として、抽出された前記転置インデックスから抽出した複合語を含む文書数を算出する文書数算出ステップと、
検出した複合語を含む文書数と前記転置インデックス取得ステップで取得した各単語を含む文書数に基づいて、文書数予測ルールを用いて全文書に対する複合語を含む文書数の予測値を算出する予測値算出ステップと、
を行うことを特徴とする文書数予測方法。 A method for predicting the number of documents for a compound word in a document search,
For each word name, a transposed index storage unit that stores a transposed index including a document ID including the word, the number of occurrences of the word, and the appearance position of the word;
An apparatus having rule storage means storing document number prediction rules,
A word splitting step that splits a compound word into a single word when the query entered by the user is a compound word;
A transposed index acquisition step of extracting a transposed index for each divided word with reference to the transposed index storage means based on the divided word;
A document number calculating step for calculating the number of documents including a compound word extracted from the extracted transposed index for a preset number of documents;
Prediction for calculating a predicted value of the number of documents including compound words for all documents using a document number prediction rule based on the number of documents including detected compound words and the number of documents including each word acquired in the transposed index acquisition step A value calculation step;
Document number prediction method characterized by performing
複合語を含む文書を検出する際に、各単語の転置インデックスを探索した文書数比が単独の単語の文書数比よりも大きい場合は、単独文書数比を用いて予測する文書数を小さく補正する前記文書数予測ルールを用いる
請求項4記載の文書数予測方法。 In the predicted value calculation step,
When detecting a document containing compound words, if the ratio of the number of documents searched for the transposed index of each word is larger than the ratio of the number of documents of a single word, the number of predicted documents is corrected to be smaller using the ratio of the number of single documents. The document number prediction method according to claim 4, wherein the document number prediction rule is used.
複合語を含む文書を検出する際に、各単語の転置インデックスを探索した文書数比が単独の単語の文書数比よりも小さい場合は、単独文書数比を用いて予測する文書数を大きく補正する前記文書数予測ルールを用いる
請求項4記載の文書数予測方法。 In the predicted value calculation step,
When detecting documents containing compound words, if the ratio of the number of documents searched for the transposed index of each word is smaller than the ratio of the number of documents of a single word, the number of predicted documents is greatly corrected using the ratio of the number of single documents. The document number prediction method according to claim 4, wherein the document number prediction rule is used.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010078794A JP5389715B2 (en) | 2010-03-30 | 2010-03-30 | Document number prediction apparatus, method and program for compound words |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010078794A JP5389715B2 (en) | 2010-03-30 | 2010-03-30 | Document number prediction apparatus, method and program for compound words |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2011210110A JP2011210110A (en) | 2011-10-20 |
| JP5389715B2 true JP5389715B2 (en) | 2014-01-15 |
Family
ID=44941077
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010078794A Expired - Fee Related JP5389715B2 (en) | 2010-03-30 | 2010-03-30 | Document number prediction apparatus, method and program for compound words |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5389715B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08329094A (en) * | 1995-05-30 | 1996-12-13 | Toshiba Corp | Document search device |
| JPH11282880A (en) * | 1998-02-02 | 1999-10-15 | Ricoh Co Ltd | Electronic document search system and storage medium |
-
2010
- 2010-03-30 JP JP2010078794A patent/JP5389715B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2011210110A (en) | 2011-10-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Qi et al. | Answering complex open-domain questions through iterative query generation | |
| US8533203B2 (en) | Identifying synonyms of entities using a document collection | |
| Shen et al. | Multi-document summarization via the minimum dominating set | |
| JP5638616B2 (en) | Information retrieval method and system | |
| JP5746426B2 (en) | Discovery of index documents | |
| KR101541306B1 (en) | Computer enabled method of important keyword extraction, server performing the same and storage media storing the same | |
| WO2010047286A1 (en) | Search system, search method, and program | |
| KR101651780B1 (en) | Method and system for extracting association words exploiting big data processing technologies | |
| Líška et al. | Similarity search for mathematics: Masaryk university team at the ntcir-10 math task | |
| US20080114742A1 (en) | Object entity searching method and object entity searching device | |
| JP5083367B2 (en) | SEARCH DEVICE, SEARCH METHOD, AND COMPUTER PROGRAM | |
| JP2013149061A (en) | Document similarity evaluation system, document similarity evaluation method, and computer program | |
| KR102243286B1 (en) | Method for constructing database, recording medium for performing the method | |
| KR100847376B1 (en) | Retrieval Method and Device Using Automatic Query Extraction | |
| JP5486667B2 (en) | Method and apparatus for diversifying query results | |
| JP5389715B2 (en) | Document number prediction apparatus, method and program for compound words | |
| US9916376B2 (en) | Digital document keyword generation | |
| JP5374881B2 (en) | Information search system, information search method and program | |
| US9934311B2 (en) | Generating unweighted samples from weighted features | |
| CN103514194A (en) | Method and device for determining relevancy between corpuses and entity and classifier training method | |
| KR20100105080A (en) | Query processing method and apparatus based on n-gram | |
| Anand et al. | Phrase query optimization on inverted indexes | |
| JP5199968B2 (en) | Keyword type determination device, keyword type determination method, and keyword type determination program | |
| JP2011227732A (en) | Document number prediction device, method and program | |
| US20130091166A1 (en) | Method and apparatus for indexing information using an extended lexicon |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120309 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130621 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130702 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130902 |
|
| 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: 20131001 |
|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20131001 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131009 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5389715 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 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 |