JP3872764B2 - SEARCH DEVICE, SEARCH METHOD, AND PROGRAM - Google Patents
SEARCH DEVICE, SEARCH METHOD, AND PROGRAM Download PDFInfo
- Publication number
- JP3872764B2 JP3872764B2 JP2003062953A JP2003062953A JP3872764B2 JP 3872764 B2 JP3872764 B2 JP 3872764B2 JP 2003062953 A JP2003062953 A JP 2003062953A JP 2003062953 A JP2003062953 A JP 2003062953A JP 3872764 B2 JP3872764 B2 JP 3872764B2
- Authority
- JP
- Japan
- Prior art keywords
- document
- search
- unit
- documents
- term
- 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
- 238000000034 method Methods 0.000 title claims description 31
- PWPJGUXAGUPAHP-UHFFFAOYSA-N lufenuron Chemical compound C1=C(Cl)C(OC(F)(F)C(C(F)(F)F)F)=CC(Cl)=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F PWPJGUXAGUPAHP-UHFFFAOYSA-N 0.000 title 1
- 238000004364 calculation method Methods 0.000 claims description 28
- 230000010365 information processing Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000877 morphologic effect Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、文書同士が参照関係を有しうるような文書群を適切に検索するのに好適な、検索装置、検索方法、ならびに、プログラムに関する。
【0002】
【従来の技術】
従来から、インターネットで公開されている文書や各種の文献データベースに蓄積されている文書から、与えられた検索用の用語(「ターム」ともいう。)を含む文書を抽出し、適宜スコアを計算して、当該スコア順に文書を提示する検索システム(「検索エンジン」ともいう。)が使われている。
【0003】
一方で、ウェブサイトで文書の公開に用いられるHTML(HyperText Markup Language)形式の文書等では、他のHTML形式の文書を参照するリンクを設定することができる。このような参照関係は、HTML形式の文書におけるリンクに限らず、種々の文書でも見られることである。
【0004】
【発明が解決しようとする課題】
そこで、文書同士の間に参照関係があるような文書群から、与えられた検索タームにより適切に文書や文書群を検索し、これらを適切に整列してユーザに提示する技術が求められている。
【0005】
本発明は、上記の課題を解決するもので、文書同士が参照関係を有しうるような文書群を適切に検索するのに好適な、検索装置、検索方法、ならびに、プログラムを提供することを目的とする。
【0006】
【課題を解決するための手段】
上記目的を達成するため、本発明の第1の観点に係る検索装置は、入力受付部と、記憶部と、検索部と、計算部と、整列部と、を備え、以下のように構成する。
【0007】
すなわち、入力受付部は、検索タームの入力を受け付ける。
【0008】
一方、記憶部は、文書とこれに含まれるタームと、文書同士の参照関係と、を記憶する。
【0009】
さらに、検索部は、記憶部を参照して、入力を受け付けた検索タームを含む文書を検索し、さらに、参照関係にある複数の文書からなる文書群であって、これに含まれる文書のそれぞれが当該検索タームを含むものを検索する。
【0010】
そして、計算部は、検索された文書に当該検索タームが出現する頻度と、検索された文書群に当該検索タームが出現する頻度と、から、当該文書および文書群に対するスコアを計算する。
【0011】
一方、整列部は、検索された文書および文書群を、計算されたスコアにより整列して、検索結果として出力する。
【0012】
本発明のその他の観点に係る検索装置は、入力受付部と、記憶部と、検索部と、計算部と、整列部と、を備え、以下のように構成する。
【0013】
すなわち、入力受付部は、複数の検索タームの入力を受け付ける。
【0014】
一方、記憶部は、文書とこれに含まれるタームと、文書同士の参照関係と、を記憶する。
【0015】
さらに、検索部は、記憶部を参照して、入力を受け付けた複数の検索タームの少なくとも1つを含む文書を検索し、さらに、参照関係にある複数の文書からなる文書群であって、これに含まれる文書のそれぞれが当該複数の検索タームの少なくとも1つを含むものを検索する。
【0016】
そして、計算部は、検索された文書に当該複数の検索タームのそれぞれが出現する頻度と、検索された文書群に当該複数の検索タームのそれぞれが出現する頻度と、から、当該文書および文書群に対するスコアを計算する。
【0017】
一方、整列部は、検索された文書および文書群を、計算されたスコアにより整列して、検索結果として出力する。
【0018】
また、本発明の上記の検索装置は、以下のように構成することができる。
【0019】
すなわち、記憶部は、文書同士の参照関係を、その種類とともに記憶する。
【0020】
一方、計算部は、当該文書群に対するスコアを、当該文書のそれぞれに対して計算されたスコアと、当該参照関係の種類にあらかじめ対応付けられた重みと、から、計算する。
【0021】
また、本発明の検索装置において、検索部は、「複数の検索タームの少なくとも1つを含む」にかえて、「複数の検索タームとの類似度が所定の閾値より大きい」とし、計算部は、「文書に検索タームが出現する頻度」にかえて「文書と検索タームとの類似度」を用いるように構成することができる。この場合は、検索タームを一切含まない文書であっても、類似度が高い場合には、検索結果として採用されることとなる。
【0022】
本発明の他の観点に係る検索方法は、文書とこれに含まれるタームと、文書同士の参照関係と、を記憶する記憶部を用い、入力受付工程と、検索工程と、計算工程と、整列工程と、を備え、以下のように構成する。
【0023】
すなわち、入力受付工程では、検索タームの入力を受け付ける。
【0024】
一方、検索工程では、記憶部を参照して、入力を受け付けた検索タームを含む文書を検索し、さらに、参照関係にある複数の文書からなる文書群であって、これに含まれる文書のそれぞれが当該検索タームを含むものを検索する。
【0025】
さらに、計算工程では、検索された文書に当該検索タームが出現する頻度と、検索された文書群に当該検索タームが出現する頻度と、から、当該文書および文書群に対するスコアを計算する。
【0026】
そして、整列工程では、検索された文書および文書群を、計算されたスコアにより整列して、検索結果として出力する。
【0027】
本発明の他の観点に係る検索方法は、文書とこれに含まれるタームと、文書同士の参照関係と、を記憶する記憶部を用い、入力受付工程と、検索工程と、計算工程と、整列工程と、を備え、以下のように構成する。
【0028】
すなわち、入力受付工程では、複数の検索タームの入力を受け付ける。
【0029】
一方、検索工程では、記憶部を参照して、入力を受け付けた複数の検索タームの少なくとも1つを含む文書を検索し、さらに、参照関係にある複数の文書からなる文書群であって、これに含まれる文書のそれぞれが当該複数の検索タームの少なくとも1つを含むものを検索する。
【0030】
さらに、計算工程では、検索された文書に当該複数の検索タームのそれぞれが出現する頻度と、検索された文書群に当該複数の検索タームのそれぞれが出現する頻度と、から、当該文書および文書群に対するスコアを計算する。
【0031】
そして、整列工程では、検索された文書および文書群を、計算されたスコアにより整列して、検索結果として出力する。
【0032】
本発明の他の観点に係るプログラムは、コンピュータを、上記の検索装置として機能させ、または、コンピュータに、上記の検索方法を実行させるように構成する。
【0033】
上記のプログラムは、コンパクトディスクやフレキシブルディスクなどの各種の記録媒体に記録することができるほか、インターネットなどのコンピュータ通信網を介して配布することができる。
【0034】
【発明の実施の形態】
以下、添付図面を参照して、本発明の実施の形態について説明する。なお、以下に説明する実施形態は説明のためのものであり、本願発明の範囲を制限するものではない。
【0035】
したがって、当業者であればこれらの各要素もしくは全要素をこれと均等なものに置換した実施形態を採用することが可能であるが、これらの実施形態も本発明の範囲に含まれる。
【0036】
(情報処理装置の概要構成)
図1は、本発明の検索装置として機能しうる典型的な情報処理装置の概要構成を示す模式図である。以下、図1を参照して説明する。
【0037】
情報処理装置101は、CPU(Central Processing Unit;中央処理ユニット)102によって制御される。情報処理装置101に電源を投入すると、CPU 102は、ROM 103に記憶されたIPL(Initial Program Loader;初期プログラムローダ)を実行する。
【0038】
IPLは、ハードディスク104、FDドライブ110に装着されたFD、CD−ROMドライブ111に装着されたCD−ROMなどの記録媒体に記憶されたOS(Operating System;オペレーティング・システム)プログラムを読み出して実行するプログラムである。
【0039】
OSを起動した後、CPU 102は、キーボード105やマウス106などにより入力されたユーザの指示にしたがって、あるいは、ハードディスク104などにあらかじめ記述された設定ファイルの内容にしたがって、ハードディスク104などに記憶されたアプリケーションプログラムを実行する。
【0040】
当該アプリケーションプログラムを実行することにより、情報処理装置101は、検索装置として機能することとなる。アプリケーションプログラムは、ハードディスク104、FDドライブ110に装着されたFD、CD−ROMドライブ111に装着されたCD−ROMなどの記憶媒体に記録される。
【0041】
CPU 102は、これらのプログラムの実行の際に、RAM 107を一時的な作業用記憶領域として用いる。このほか、一時的な作業用記憶領域として、CPU 102内に設けられたレジスタやキャッシュ(図示せず)が使われる。
【0042】
プログラムの実行に伴ない、ユーザに結果を報告したり、途中経過を見せるため、CPU 102は、液晶ディスプレイやCRT(Cathode Ray Tube)などの表示装置108に当該情報を表示することができる。マウス106による指示操作では、マウス106を移動することにより、画面に表示されたカーソルが移動し、マウス106をクリックすることにより、カーソルが指すメニュー項目を選択することができる。
【0043】
情報処理装置101は、NIC(Network Interface Card)やモデムなどのインターフェース109を介してインターネットなどのコンピュータ通信網と通信を行うことができる。インターフェース109を介して受信した文書データを処理の対象としたり、処理した結果をインターフェース109を介して送信したり、インターフェース109を介して受信したプログラムを実行したり、などができる。
【0044】
図2は、本発明の実施形態の1つにかかる検索装置の概要構成を示す模式図である。図3は、本実施形態の検索装置にて実行される処理の制御の流れを示すフローチャートである。以下、これら図を参照して説明する。
【0045】
検索装置201は、入力受付部202と、記憶部204と、検索部203と、計算部205と、整列部206と、を備える。
【0046】
まず、入力受付部202は、検索タームの入力を受け付ける(ステップS301)。検索タームの入力の手法については、以下のような種々の技術を適用することができる。
(a)単語を入力させて、これを検索タームとするもの。
(b)自然文を入力させ、これを形態素解析して単語を得て、これを検索タームとするもの。
(c)上記(a)(b)において、さらに単語の正規化を行い、適切な検索タームを得るもの。
【0047】
したがって、キーボード105やマウス106がCPU 102や表示装置108と共働して、入力受付部202として機能する。
【0048】
一方、記憶部204は、文書とこれに含まれるタームと、文書同士の参照関係と、を記憶する。本実施形態では、文書そのものは、たとえばインターネット内にあるものをそのまま利用するものとしても良いし、文書そのものを記憶部204に記憶するのでも良い。前者の場合は、たとえば、以下のようなデータを1つのレコードとして記憶しておけば良い。
(1)文書がインターネット内で配置されているURL(Universal Resource Locator)。
(2)当該文書に含まれている検索タームとその出現頻度。尚、検索タームが上記のように正規化されている場合には、検索タームそのものの綴りを記憶するのではなく、当該検索タームに割り当てられた識別番号等を記憶するのでも良い。
(3)当該文書が参照する他の文書のURLと、参照関係の種類の情報。各レコードがレコード番号によって管理されている場合は、URLにかえて、当該文書のレコード番号を利用するのでも良い。
【0049】
図4は、3つの文書間の参照関係構造を示す説明図である。
【0050】
文書Aは「構造化検索」についての文書であり、その中で、文書B「検索とは」を引用するとともに、文書Aをさらに詳しく説明する文書として文書C「効果は?」を参照している。
【0051】
したがって、文書Aに対するレコードにおいては、「文書B」の参照関係の種類は「引用」であり、「文書C」の参照関係の種類は「説明」である、などのような情報が記憶されることとなる。
【0052】
したがって、ハードディスク104が記憶部204として機能する。
【0053】
さらに、検索部203は、記憶部204を参照して、入力を受け付けた検索タームを含む文書を検索する(ステップS302)。すなわち、上記のように記憶されたレコードから、当該検索タームを含むレコードをまず得ることとなる。
【0054】
さらに、ステップS302において検索された文書(参照元)と参照関係にある複数の文書からなる文書群であって、これに含まれる文書のそれぞれが当該検索タームを含むものを検索する(ステップS303)。すなわち、ステップS302において得られたレコード(参照元)のそれぞれについて、当該レコード(参照元)と参照関係にあるレコード(参照先)を得て、当該得られた参照関係にあるレコード(参照先)が当該検索タームを含むかどうか判定し、当該検索タームを含むレコード(参照先)をまとめて1つの「文書群」とする。
【0055】
すなわち、検索結果の文書(参照元)は、文書群に含まれる文書(参照先)を参照することとなる。
【0056】
したがって、CPU 102がハードディスク104と共働して、検索部203として機能する。
【0057】
そして、計算部205は、検索された文書と、当該検索タームから、当該文書に対するスコアを計算し、検索された文書群に含まれる文書のそれぞれに対して計算されたスコアから、当該文書群に対するスコアを計算する(ステップS304)。
【0058】
本実施形態では、各文書に含まれる検索タームとその頻度が記憶部204に記憶されているため、各文書と検索タームと間のスコアの計算には、ベクトル内積法を利用するのが好適である。
【0059】
そして、得られた各文書のスコアに対して、当該参照関係の種類にあらかじめ対応付けられた重みを乗じて総和をとることにより、文書群のスコアを得る。たとえば、上記例での「引用」関係の場合には、文書B(参照先)を文書A(参照元)よりも重く見るようにし、「説明」関係の場合には、文書A(参照元)を文書C(参照先)よりも重く見るようにする、等の手法を採用することができる。
【0060】
なお、文書群のスコアのこのほかの計算方法については、後述する。
【0061】
したがって、CPU 102がハードディスク104と共働して、計算部205として機能する。
【0062】
最後に、整列部206は、検索された文書および文書群を、計算されたスコアにより整列して、検索結果として出力する(ステップS305)。
【0063】
したがって、CPU 102が表示装置108(検索結果を表示する場合)やハードディスク104(検索結果を保存する場合)と共働して、整列部206として機能する。
【0064】
上記のように、検索タームの入力を1つだけ受け付ける場合は、検索結果の文書群に含まれる文書は、いずれも当該検索タームを含むものとなる。一方、検索タームの入力を複数受け付ける場合は、ステップS302において検索される文書(参照元)や、これが参照する文書(参照先)は、複数の検索タームのいずれか少なくとも1つを含むもの、としておいて、スコアを計算することが望ましい。
【0065】
(他のスコアの計算方法)
上記実施形態では、検索結果の文書(参照元)についてのスコア計算と、検索結果の文書群に含まれる文書(参照先)についてのスコア計算と、を独立に行い、これらについて得られたスコアを、参照関係の種類に応じて適宜重み付けをして「検索された文書および文書群」のスコアを得ていた。
【0066】
以下では、他のスコアの計算方法について、種々述べる。
【0067】
まず、検索された文書と、検索された文書群に含まれる文書と、を連結した1つの文書(以下「総文書」という。)を考える。そして、この総文書に、当該検索タームが出現する頻度により、スコアを計算する、というものである。総文書における検索タームの出現頻度は、検索された文書と、検索された文書群に含まれる文書と、のそれぞれにおける検索タームの出現頻度の総和であることを用いれば、容易に本手法のスコアを得ることができる。図3に示すフローチャートに即して処理をこれを説明すると、以下のようになる。すなわち、検索タームの入力を受け付け(ステップS301)、当該検索タームを含む文書(「参照元」)を検索し(ステップS302)参照元から参照されている文書であって当該検索タームを含む文書群を検索する(ステップS303)のは上記実施形態と同様であるが、スコアを計算する(ステップS304)際に、参照元の文書と参照元から参照されている文書であって当該検索タームを含む文書群とを連結した総文書のスコアを計算する。そして、総文書をスコアの順に整列して出力する(ステップS305)のである。
【0068】
このほか、検索タームのそれぞれについて、検索された文書と、検索された文書群に含まれる文書と、における当該タームの出現頻度の最大値を考え、この最大値によって、スコアを得る、という手法もある。
【0069】
さらに、上記実施形態においては、各文書は検索タームを必ず含むものとしているが、文書の検索を行うための手法としてVector Space Modelを採用した場合には、検索タームと文書との類似度を内積等により計算する。この場合、類似度が高い文書であっても、検索タームを一切含まないことがありうる。そこで、この場合には、「検索タームを少なくとも1つ含む」という条件を「検索タームとの類似度がある閾値より大きい」という条件に変更し、「検索タームのそれぞれが出現する頻度」にかえて「検索タームのそれぞれに対する類似度」を採用すれば良い。
【0070】
また、記憶部204は、文書とこれに含まれるタームと、文書同士の参照関係と、を記憶するが、記憶部204に対してこれらの情報を登録する場合には、ある文書に含まれるタームとして、「当該文書には含まれないが、当該文書と参照関係にある文書から抽出できるタームであって、当該参照関係に対応するもの」を追加しても良い。
【0071】
たとえばHTML文書におけるフレームを定義する文書は、他の文書に対するリンク情報しか含まないため、タームに相当するものがほとんど含まれないのが一般的である。そこで当該フレームを定義する文書を記憶部204に登録する際には、当該フレームから参照される文書に含まれるタームを、当該フレームを定義する文書のタームとして登録する。
【0072】
このようにすることによって、HTMLのフレームを定義する文書にインデックスとしての役割を付加することができるほか、当該文書を文書グループの代表(上位)ページとすることができ、検索結果が良好となる。
【0073】
【発明の効果】
以上説明したように、本発明によれば、文書同士が参照関係を有しうるような文書群を適切に検索するのに好適な、検索装置、検索方法、ならびに、これらをコンピュータにて実現するためのプログラムを提供することができる。
【図面の簡単な説明】
【図1】 本発明の検索装置が実現される典型的な情報処理装置の概要構成を示す模式図である。
【図2】 本発明の実施形態の1つに係る検索装置の概要構成を示す模式図である。
【図3】 当該検索装置にて実行される処理の制御の流れを示すフローチャートである。
【図4】 3つの文書間の参照関係構造を示す説明図である。
【符号の説明】
101 情報処理装置
102 CPU
103 ROM
104 HD
105 キーボード
106 マウス
107 RAM
108 表示装置
109 インターフェース
110 FDドライブ
111 CD−ROMドライブ
201 検索装置
202 入力受付部
203 検索部
204 記憶部
205 計算部
206 整列部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a search device, a search method, and a program suitable for appropriately searching for a document group in which documents can have a reference relationship.
[0002]
[Prior art]
Conventionally, a document containing a given search term (also referred to as “term”) is extracted from documents published on the Internet or stored in various literature databases, and a score is calculated as appropriate. A search system (also referred to as a “search engine”) that presents documents in the order of the scores is used.
[0003]
On the other hand, in an HTML (HyperText Markup Language) format document used for publishing a document on a website, a link for referring to another HTML format document can be set. Such a reference relationship is not limited to links in HTML format documents, but can be found in various documents.
[0004]
[Problems to be solved by the invention]
Therefore, there is a need for a technique for appropriately searching a document or a document group from a document group having a reference relationship between documents using a given search term, and arranging them appropriately and presenting it to the user. .
[0005]
The present invention solves the above-described problem, and provides a search device, a search method, and a program suitable for appropriately searching a document group in which documents can have a reference relationship. Objective.
[0006]
[Means for Solving the Problems]
To achieve the above object, a search device according to a first aspect of the present invention includes an input reception unit, a storage unit, a search unit, a calculation unit, and an alignment unit, and is configured as follows. .
[0007]
That is, the input receiving unit receives an input of a search term.
[0008]
On the other hand, the storage unit stores documents, terms included therein, and reference relationships between documents.
[0009]
Further, the search unit refers to the storage unit to search for a document including a search term that has received an input, and further includes a document group including a plurality of documents having a reference relationship, and each of the documents included in the document group Searches for items that contain the search term.
[0010]
Then, the calculation unit calculates a score for the document and the document group from the frequency at which the search term appears in the searched document and the frequency at which the search term appears in the searched document group.
[0011]
On the other hand, the sorting unit sorts the searched documents and document groups according to the calculated score, and outputs the results as a search result.
[0012]
A search device according to another aspect of the present invention includes an input reception unit, a storage unit, a search unit, a calculation unit, and an alignment unit, and is configured as follows.
[0013]
That is, the input reception unit receives input of a plurality of search terms.
[0014]
On the other hand, the storage unit stores documents, terms included therein, and reference relationships between documents.
[0015]
Further, the search unit refers to the storage unit to search for a document including at least one of the plurality of search terms that have received the input, and further includes a document group including a plurality of documents having a reference relationship, Each of the documents included in is searched for a document including at least one of the plurality of search terms.
[0016]
Then, the calculation unit calculates the document and the document group from the frequency at which each of the plurality of search terms appears in the searched document and the frequency at which each of the plurality of search terms appears in the searched document group. Calculate the score for.
[0017]
On the other hand, the sorting unit sorts the searched documents and document groups according to the calculated score, and outputs the results as a search result.
[0018]
Further, the above-described search device of the present invention can be configured as follows.
[0019]
That is, the storage unit stores the reference relationship between documents together with their types.
[0020]
On the other hand, the calculation unit calculates the score for the document group from the score calculated for each of the documents and the weight associated with the type of the reference relationship in advance.
[0021]
Further, in the search device of the present invention, the search unit replaces “including at least one of the plurality of search terms” with “the similarity with the plurality of search terms is greater than a predetermined threshold”, and the calculation unit The “similarity between the document and the search term” can be used instead of the “frequency at which the search term appears in the document”. In this case, even a document that does not include any search terms is adopted as a search result if the degree of similarity is high.
[0022]
A search method according to another aspect of the present invention uses a storage unit that stores a document, a term included in the document, and a reference relationship between the documents, an input reception process, a search process, a calculation process, and an alignment. The process is comprised as follows.
[0023]
That is, in the input receiving process, the search term input is received.
[0024]
On the other hand, in the search step, the storage unit is referenced to search for a document including the search term that has received the input, and each of the documents included in the document group includes a plurality of documents having a reference relationship. Searches for items that contain the search term.
[0025]
Further, in the calculation step, a score for the document and the document group is calculated from the frequency at which the search term appears in the searched document and the frequency at which the search term appears in the searched document group.
[0026]
In the alignment step, the searched documents and document groups are aligned according to the calculated scores and output as search results.
[0027]
A search method according to another aspect of the present invention uses a storage unit that stores a document, a term included in the document, and a reference relationship between the documents, an input reception process, a search process, a calculation process, and an alignment. The process is comprised as follows.
[0028]
That is, in the input receiving step, input of a plurality of search terms is received.
[0029]
On the other hand, in the search step, a document including at least one of a plurality of search terms accepted for input is searched with reference to the storage unit, and a document group including a plurality of documents having a reference relationship, Each of the documents included in is searched for a document including at least one of the plurality of search terms.
[0030]
Further, in the calculation step, the document and the document group are calculated from the frequency at which each of the plurality of search terms appears in the searched document and the frequency at which each of the plurality of search terms appears in the searched document group. Calculate the score for.
[0031]
In the alignment step, the searched documents and document groups are aligned according to the calculated scores and output as search results.
[0032]
A program according to another aspect of the present invention is configured to cause a computer to function as the search device described above or to cause the computer to execute the search method described above.
[0033]
The above program can be recorded on various recording media such as a compact disc and a flexible disc, and can be distributed via a computer communication network such as the Internet.
[0034]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the accompanying drawings. The embodiments described below are for explanation, and do not limit the scope of the present invention.
[0035]
Therefore, those skilled in the art can employ embodiments in which each or all of these elements are replaced with equivalent ones, and these embodiments are also included in the scope of the present invention.
[0036]
(Outline configuration of information processing device)
FIG. 1 is a schematic diagram showing a schematic configuration of a typical information processing apparatus that can function as a search apparatus of the present invention. Hereinafter, a description will be given with reference to FIG.
[0037]
The
[0038]
The IPL reads and executes an OS (Operating System) program stored in a recording medium such as the
[0039]
After starting the OS, the
[0040]
By executing the application program, the
[0041]
The
[0042]
As the program is executed, the
[0043]
The
[0044]
FIG. 2 is a schematic diagram illustrating a schematic configuration of a search device according to one embodiment of the present invention. FIG. 3 is a flowchart showing a flow of control of processing executed by the search device of the present embodiment. Hereinafter, description will be given with reference to these drawings.
[0045]
The
[0046]
First, the
(A) A word is input and this is used as a search term.
(B) A natural sentence is input, a morphological analysis is performed to obtain a word, and this is used as a search term.
(C) In (a) and (b) above, further normalization of words is performed to obtain an appropriate search term.
[0047]
Accordingly, the
[0048]
On the other hand, the
(1) A URL (Universal Resource Locator) where a document is located in the Internet.
(2) Search terms included in the document and their appearance frequency. If the search term is normalized as described above, the identification number assigned to the search term may be stored instead of storing the spelling of the search term itself.
(3) URL of other document referred to by the document and information on the type of reference relationship. If each record is managed by a record number, the record number of the document may be used instead of the URL.
[0049]
FIG. 4 is an explanatory diagram showing a reference relationship structure between three documents.
[0050]
Document A is a document about “structured search”, in which document B “What is search” is cited, and document C “what is the effect?” Is referred to as a document that explains document A in more detail. Yes.
[0051]
Therefore, in the record for document A, information such as “citation” is stored as the reference relationship type of “document B”, and “explanation” is stored as the reference relationship type of “document C”. It will be.
[0052]
Therefore, the
[0053]
Further, the
[0054]
Further, a document group composed of a plurality of documents having a reference relationship with the document (reference source) searched in step S302 is searched for , each of which includes the search term (step S303). . That is, for each record (reference source) obtained in step S302, a record (reference destination) having a reference relationship with the record (reference source) is obtained, and the obtained record (reference destination) having the reference relationship is obtained. There determines whether to include the search term, and "document group" one collectively record (reference) containing the search term.
[0055]
That is, the search result document (reference source) refers to a document (reference destination) included in the document group.
[0056]
Therefore, the
[0057]
Then, the
[0058]
In the present embodiment, the search terms included in each document and the frequency thereof are stored in the
[0059]
Then, the score of each document is obtained by multiplying the obtained score of each document by a weight previously associated with the type of the reference relationship to obtain a total. For example, in the case of the “citation” relationship in the above example, the document B (reference destination) is viewed more heavily than the document A (reference source), and in the case of the “explanation” relationship, the document A (reference source). It is possible to adopt a technique such that the document is viewed heavier than the document C (reference destination).
[0060]
Other calculation methods for the score of the document group will be described later.
[0061]
Therefore, the
[0062]
Finally, the aligning
[0063]
Therefore, the
[0064]
As described above, when only one search term input is accepted, all the documents included in the search result document group include the search term. On the other hand, when receiving a plurality of search term inputs, the document searched in step S302 (reference source) and the document to which it refers (reference destination) includes at least one of the plurality of search terms. It is desirable to calculate the score.
[0065]
(Other score calculation methods)
In the above embodiment, the score calculation for the search result document (reference source) and the score calculation for the document (reference destination) included in the document group of the search result are performed independently, and the score obtained for these is calculated. The score of “searched document and document group” is obtained by appropriately weighting according to the type of the reference relationship.
[0066]
In the following, various methods for calculating other scores will be described.
[0067]
First, consider one document (hereinafter referred to as “total document”) in which a retrieved document and a document included in the retrieved document group are linked. Then, the score is calculated based on the frequency with which the search term appears in the total document. If the search term appearance frequency in the total document is the sum of the search term appearance frequencies in the searched document and the documents included in the searched document group, the score of this method can be easily obtained. Can be obtained. This process will be described below in accordance with the flowchart shown in FIG. That is, an input of a search term is accepted (step S301), a document including the search term (“reference source”) is searched (step S302), and a document group that is referred to by the reference source and includes the search term. (Step S303) is the same as in the above embodiment, but when the score is calculated (Step S304), the reference source document and the document referred to by the reference source include the search term. The score of the total document which connected the document group is calculated. Then, the total documents are arranged and output in the order of the scores (step S305).
[0068]
In addition to this, for each search term, there is also a method of considering a maximum value of the appearance frequency of the term in the searched document and the documents included in the searched document group, and obtaining a score by this maximum value. is there.
[0069]
Furthermore, in the above embodiment, each document necessarily includes a search term. However, when the Vector Space Model is adopted as a method for searching for a document, the similarity between the search term and the document is calculated as an inner product. Calculate by etc. In this case, even a document with a high degree of similarity may not include any search terms. Therefore, in this case, the condition “including at least one search term” is changed to a condition “similarity to the search term is greater than a certain threshold”, and changed to “frequency at which each search term appears”. Then, “similarity to each search term” may be adopted.
[0070]
The
[0071]
For example, a document that defines a frame in an HTML document includes only link information with respect to other documents, and therefore, it is general that almost nothing corresponding to a term is included. Therefore, when registering the document defining the frame in the
[0072]
By doing this, it is possible to add a role as an index to a document defining an HTML frame, and to make the document a representative (upper) page of a document group, and the search result is good. .
[0073]
【The invention's effect】
As described above, according to the present invention, a search device, a search method, and a computer that can suitably search for a document group in which documents can have a reference relationship are realized by a computer. A program can be provided.
[Brief description of the drawings]
FIG. 1 is a schematic diagram showing a schematic configuration of a typical information processing apparatus in which a search device of the present invention is realized.
FIG. 2 is a schematic diagram showing a schematic configuration of a search device according to one embodiment of the present invention.
FIG. 3 is a flowchart showing a flow of control of processing executed by the search device.
FIG. 4 is an explanatory diagram showing a reference relationship structure between three documents.
[Explanation of symbols]
101
103 ROM
104 HD
105
108
Claims (7)
文書とこれに含まれるタームと、文書同士の参照関係と、を記憶する記憶部、
前記記憶部を参照して、前記入力を受け付けた検索タームを含む文書を検索し、さらに、当該検索された文書から参照される1つ以上の文書からなる文書群であって、これに含まれる文書のそれぞれが当該検索タームを含む文書群を検索する検索部、
前記検索された文書と前記検索された文書群に含まれる文書とを連結した総文書に当該検索タームが出現する頻度から、当該総文書に対するスコアを計算する計算部、
当該総文書を、前記計算されたスコアにより整列して、検索結果として出力する整列部
を備えることを特徴とする検索装置。An input receiving unit for receiving search terms,
A storage unit for storing a document, a term included in the document, and a reference relationship between documents;
A document group including one or more documents referred to from the retrieved document is retrieved by referring to the storage unit and including a search term that has received the input, and is included in the document group A search unit for searching for a document group in which each of the documents includes the search term;
A calculation unit for calculating a score for the total document from the frequency of occurrence of the search term in the total document obtained by connecting the searched document and the document included in the searched document group;
A search apparatus comprising: an alignment unit that aligns the total document according to the calculated score and outputs the result as a search result.
文書とこれに含まれるタームと、文書同士の参照関係と、を記憶する記憶部、
前記記憶部を参照して、前記入力を受け付けた複数の検索タームの少なくとも1つを含む文書を検索し、さらに、当該検索された文書から参照される1つ以上の文書からなる文書群であって、これに含まれる文書のそれぞれが当該複数の検索タームの少なくとも1つを含む文書群を検索する検索部、
前記検索された文書と前記検索された文書群に含まれる文書とを連結した総文書に当該複数の検索タームのそれぞれが出現する頻度から、当該総文書に対するスコアを計算する計算部、
当該総文書を、前記計算されたスコアにより整列して、検索結果として出力する整列部
を備えることを特徴とする検索装置。An input accepting unit that accepts input of multiple search terms;
A storage unit for storing a document, a term included in the document, and a reference relationship between documents;
A document group including one or more documents referred to from the retrieved document is searched by referring to the storage unit and searching for a document including at least one of the plurality of search terms that have received the input. A search unit for searching for a document group in which each of the documents included therein includes at least one of the plurality of search terms,
A calculation unit for calculating a score for the total document from a frequency at which each of the plurality of search terms appears in a total document obtained by connecting the searched document and the document included in the searched document group;
A search apparatus comprising: an alignment unit that aligns the total document according to the calculated score and outputs the result as a search result.
前記検索部は、「検索タームを含む文書を検索」するのにかえて、「検索タームとの類似度が所定の閾値より大きい文書を検索」し、「文書のそれぞれが当該検索タームを含む文書群を検索」するのにかえて、「文書のそれぞれと当該検索タームとの類似度が所定の閾値より大きい文書群を検索」し、
前記計算部は、「総文書に当該検索タームが出現する頻度」から当該スコアを計算するのにかえて、「総文書と当該検索タームとの類似度」から当該スコアを計算する
ことを特徴とする検索装置。The search device according to claim 1,
Instead of “searching for a document including a search term”, the search unit “searches for a document whose similarity to the search term is greater than a predetermined threshold”, and “each of the documents includes the search term” Instead of “searching for a group”, “search for a document group in which the similarity between each of the documents and the search term is greater than a predetermined threshold”,
The calculation unit calculates the score from the “similarity between the total document and the search term” instead of calculating the score from the “frequency of appearance of the search term in the total document”. Search device to do.
前記検索部は、「複数の検索タームの少なくとも1つを含む文書を検索」するのにかえて、「複数の検索タームのそれぞれとの類似度の少なくとも1つが所定の閾値より大きい文書を検索」し、「文書のそれぞれが当該複数の検索タームの少なくとも1つを含む文書群を検索」するのにかえて、「文書のそれぞれと当該複数の検索タームのそれぞれとの類似度の少なくとも1つが所定の閾値より大きい文書群を検索」し、
前記計算部は、「総文書に当該検索タームが出現する頻度」から当該スコアを計算するのにかえて、「総文書と当該複数の検索タームのそれぞれとの類似度」から当該スコアを計算する
ことを特徴とする検索装置。The search device according to claim 2,
Instead of “searching for a document including at least one of a plurality of search terms”, the search unit “searches for a document having at least one similarity with each of the plurality of search terms greater than a predetermined threshold”. However, instead of “searching for a document group in which each document includes at least one of the plurality of search terms”, at least one of the similarities between each of the documents and each of the plurality of search terms is predetermined. Search for documents larger than the threshold of "
The calculation unit calculates the score from “similarity between the total document and each of the plurality of search terms” instead of calculating the score from “frequency of occurrence of the search term in the total document”. A search device characterized by that.
前記入力受付部が、検索タームの入力を受け付ける入力受付工程、 An input receiving step in which the input receiving unit receives an input of a search term;
前記検索部が、前記記憶部を参照して、前記入力を受け付けた検索タームを含む文書を検索し、さらに、当該検索された文書から参照される1つ以上の文書からなる文書群であ The search unit refers to the storage unit to search for a document including a search term that has received the input, and further includes a document group including one or more documents referred to from the searched document. って、これに含まれる文書のそれぞれが当該検索タームを含む文書群を検索する検索工程、A search step of searching for a document group in which each of the documents included therein includes the search term;
前記計算部が、前記検索された文書と前記検索された文書群に含まれる文書とを連結した総文書に当該検索タームが出現する頻度から、当該総文書に対するスコアを計算する計算工程、 A calculation step in which the calculation unit calculates a score for the total document from a frequency at which the search term appears in a total document obtained by connecting the searched document and a document included in the searched document group;
前記整列部が、当該総文書を、前記計算されたスコアにより整列して、検索結果として出力する整列工程 An alignment step in which the alignment unit aligns the total document according to the calculated score and outputs it as a search result.
を備えることを特徴とする検索方法。 A search method comprising:
前記入力受付部が、複数の検索タームの入力を受け付ける入力受付工程、 An input receiving step in which the input receiving unit receives input of a plurality of search terms;
前記検索部が、前記記憶部を参照して、前記入力を受け付けた複数の検索タームの少なくとも1つを含む文書を検索し、さらに、当該検索された文書から参照される1つ以上の文書からなる文書群であって、これに含まれる文書のそれぞれが当該複数の検索タームの少なくとも1つを含む文書群を検索する検索工程、 The search unit refers to the storage unit to search for a document including at least one of a plurality of search terms that have received the input, and further, from one or more documents referenced from the searched document A search step of searching for a document group in which each of the documents included therein includes at least one of the plurality of search terms,
前記計算部が、前記検索された文書と前記検索された文書群に含まれる文書とを連結した総文書に当該複数の検索タームのそれぞれが出現する頻度から、当該総文書に対するスコアを計算する計算工程、 A calculation in which the calculation unit calculates a score for the total document from the frequency at which each of the plurality of search terms appears in the total document obtained by connecting the searched document and the document included in the searched document group. Process,
前記整列部が、当該総文書を、前記計算されたスコアにより整列して、検索結果として出力する整列工程 An alignment step in which the alignment unit aligns the total document according to the calculated score and outputs it as a search result.
を備えることを特徴とする検索方法。 A search method comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003062953A JP3872764B2 (en) | 2003-03-10 | 2003-03-10 | SEARCH DEVICE, SEARCH METHOD, AND PROGRAM |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003062953A JP3872764B2 (en) | 2003-03-10 | 2003-03-10 | SEARCH DEVICE, SEARCH METHOD, AND PROGRAM |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004272626A JP2004272626A (en) | 2004-09-30 |
| JP3872764B2 true JP3872764B2 (en) | 2007-01-24 |
Family
ID=33124672
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003062953A Expired - Fee Related JP3872764B2 (en) | 2003-03-10 | 2003-03-10 | SEARCH DEVICE, SEARCH METHOD, AND PROGRAM |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3872764B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6114028B2 (en) * | 2012-12-28 | 2017-04-12 | 富士通株式会社 | Information management program, information management method, and information management apparatus |
| KR101687674B1 (en) * | 2015-11-26 | 2016-12-19 | 성신여자대학교 산학협력단 | Apparatus for data evaluation using similarity, method thereof and computer recordable medium storing the method |
| WO2022219804A1 (en) * | 2021-04-16 | 2022-10-20 | 三菱電機株式会社 | Information processing device, creation method, and creation program |
-
2003
- 2003-03-10 JP JP2003062953A patent/JP3872764B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004272626A (en) | 2004-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3820242B2 (en) | Question answer type document search system and question answer type document search program | |
| JP3755134B2 (en) | Computer-based matched text search system and method | |
| US8375027B2 (en) | Search supporting apparatus and method utilizing exclusion keywords | |
| US20190370397A1 (en) | Artificial intelligence based-document processing | |
| JP3717808B2 (en) | Information retrieval system | |
| CN100394427C (en) | network searching system and method | |
| JPH11110416A (en) | Method and device for retrieving document from data base | |
| JP3220886B2 (en) | Document search method and apparatus | |
| JP2005122295A (en) | Relationship diagram creation program, relationship diagram creation method, and relationship diagram creation device | |
| JP2007519111A (en) | Method, system, and program for processing anchor text | |
| JP2010009577A (en) | Information processing apparatus, full text retrieval method, full text retrieval program, and recording medium | |
| JP2005043977A (en) | Method and apparatus for calculating similarity between documents | |
| JP2000200281A (en) | Information retrieval apparatus, information retrieval method, and recording medium recording information retrieval program | |
| JPH11328194A (en) | Keyword search method and apparatus, and storage medium storing keyword search program | |
| JP3864235B2 (en) | Information retrieval system and information retrieval program | |
| JP2004054588A (en) | Document search device, document search method, and program for causing computer to execute the method | |
| JP3583631B2 (en) | Information mining method, information mining device, and computer-readable recording medium recording information mining program | |
| JP3872764B2 (en) | SEARCH DEVICE, SEARCH METHOD, AND PROGRAM | |
| JPH1145257A (en) | Web document search support apparatus and computer-readable recording medium storing a program for causing a computer to function as the apparatus | |
| JP4230710B2 (en) | SEARCH DEVICE, SEARCH METHOD, AND PROGRAM | |
| JPH11296537A (en) | Information search system, information providing device, information search terminal device, information search method, and storage medium | |
| JP2001265774A (en) | Information retrieval method and apparatus, recording medium recording information retrieval program, and hypertext information retrieval system | |
| JP5321258B2 (en) | Information collecting system, information collecting method and program thereof | |
| JP2013222418A (en) | Passage division method, device and program | |
| JP4750628B2 (en) | Information ranking method and apparatus, program, and computer-readable recording medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060418 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060530 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060627 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060825 |
|
| 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: 20061017 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061020 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091027 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121027 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |