JP4826622B2 - Document search apparatus, search method and program - Google Patents
Document search apparatus, search method and program Download PDFInfo
- Publication number
- JP4826622B2 JP4826622B2 JP2008287280A JP2008287280A JP4826622B2 JP 4826622 B2 JP4826622 B2 JP 4826622B2 JP 2008287280 A JP2008287280 A JP 2008287280A JP 2008287280 A JP2008287280 A JP 2008287280A JP 4826622 B2 JP4826622 B2 JP 4826622B2
- Authority
- JP
- Japan
- Prior art keywords
- document
- index
- keyword
- search
- keywords
- 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
Description
本発明は文書検索装置、検索方法及びプログラムに係り、特にハイパーテキストを対象とした文書検索装置、検索方法及びプログラムに関する。 The present invention is document retrieval system relates to the search how and programs, in particular the document retrieval device intended for the hypertext, for the search how and programs.
ハイパーテキストとは、ハイパーリンク(リンク)で構造化された文書集合のことであり、文書をノードとし、文書間にリンクをはった構造を持つ。文書Aから文書Bへのリンクに関して、文書Bのリンク元になる文書A中の文字列をアンカー文字列と呼ぶ。ハイパーテキストの代表例が、WWW(World Wide Web)である。WWWはHTML(Hyper Text Markup Language)形式で記述されたハイパーテキストであり、リンク及びアンカー文字列は<A>タグによってマークされる。なお、WWWはハイパーテキストの代表例であるが、本発明は対象をWWWに限定したものではない。また、ハイパーテキストはHTMLだけではなく、XML(Extensible Markup Language)、SGML(Standard Generalized Markup Language)等を用いて記述することも可能である。 Hypertext is a set of documents structured by hyperlinks (links), and has a structure in which documents are nodes and links are made between documents. Regarding the link from document A to document B, the character string in document A that is the link source of document B is called an anchor character string. A representative example of hypertext is WWW (World Wide Web). WWW is hypertext described in HTML (Hyper Text Markup Language) format, and links and anchor character strings are marked by <A> tags. Although WWW is a representative example of hypertext, the present invention is not limited to the WWW. Further, the hypertext can be described using not only HTML but also XML (Extensible Markup Language), SGML (Standard Generalized Markup Language), and the like.
近年のインターネットの普及により、リンクで構造化された大量の文書に容易にアクセスすることが可能になっている。リンクで構造化された文書は通常、サイトと呼ばれる文書クラスタを形成している。サイトを構成する文書クラスタの単位は必ずしも明確ではないが、同一ドメイン名を持つ文書クラスタを一つのサイトとみなしたり、あるいは同一管理者による同一テーマの文書クラスタを一つのサイトとみなしたりすることが多い。各サイトには、トップページと呼ばれる入り口となる文書が存在し、閲覧者はそこからサイト内の各コンテンツの文書へリンクをたどってアクセスすることができる。 With the recent spread of the Internet, it is possible to easily access a large number of documents structured by links. Documents structured with links usually form document clusters called sites. The unit of the document cluster that constitutes a site is not necessarily clear, but a document cluster with the same domain name can be regarded as one site, or a document cluster of the same theme by the same administrator can be regarded as one site. Many. Each site has an entrance document called a top page, from which a viewer can access a document of each content in the site by following a link.
例えば、後述する図2の例では、文書11、文書21、文書31、文書41がそれぞれサイト1、サイト2、サイト3、サイト4のトップページである。リンクは、引用したい文書の格納場所を表すURLと、引用先の文書の内容を表すアンカー文字列からなる。アクセス可能などの文書へもリンクを自由にはることもできるが、インターネットの習慣上、異なるサイトからのリンクはURLにトップページが指定され、アンカー文字列にサイトのタイトルまたはサイトの内容を表す文字列が使われる傾向がある。
For example, in the example of FIG. 2 described later, the
一方、同一サイト内の各コンテンツの文書へのリンクは、閲覧者がトップページから順番にリンクをたどってくることを想定して、表現を省略することが多い。例えば、サイト1が全国のグルメ情報を扱うサイトであった場合、サイト2やサイト3などの異なるサイトからトップページである文書11へはられたリンクのアンカー文字列「L203」や「L302」には、「グルメ」のページ、「レストラン検索」など、サイトのタイトルそのものやサイトの内容を表す表現が多く使われる。
On the other hand, links to documents of each content in the same site are often omitted in the assumption that the viewer follows the links in order from the top page. For example, if the
一方、サイト内のコンテンツへのリンクのアンカー文字列「L101」、「L103」、「L106」には、それぞれ「関西」、「奈良県」、「中華」など閲覧者がトップページから順番にリンクをたどってくることを想定して必要最低限の表現が使われる傾向があり、アンカー文字列単独ではリンク先の文書の内容が部分的にしか把握できないことが多い。また、文書の内容自体も、閲覧者がトップページから順番にリンクをたどってくることを想定して記述されているため、例えば「奈良県」というアンカー文字列がある文書には、県名のリストが記述されているだけなど、文書単独では内容を十分に把握することはできないことが多い。 On the other hand, viewers such as “Kansai”, “Nara Prefecture”, and “Chinese” link to the anchor character strings “L101”, “L103”, and “L106” of links to the contents in the site in order from the top page. There is a tendency that the minimum necessary expression is used on the assumption that the document is followed. In many cases, the content of the linked document can be grasped only partially by the anchor character string alone. In addition, since the content of the document itself is described on the assumption that the viewer follows the links in order from the top page, for example, a document with an anchor character string “Nara Prefecture” contains the name of the prefecture. In many cases, a document alone cannot fully grasp the contents, such as only a list being described.
このようなリンクで構造化された文書を検索・分類する従来技術として、例えば非特許文献1に掲載の論文、ゲンヴル・アンド・フォーダブリュ:ツールズ・フォー・テイミング・ザ・ウェブ(GENVL and WWWW: Tools for Taming the Web)に示される検索装置や、特許文献1に記載されたハイパーテキスト検索装置、特許文献2に記載された文書分類システム、特許文献3に記載のリンク情報を用いたキーワード付与方法、特許文献4に記載された関連文書表示装置などのように、リンク元のアンカー文字列を検索対象や分類対象とする方法が挙げられる。
As a conventional technique for searching and classifying a document structured by such a link, for example, a paper published in Non-Patent
これらの検索装置や文書分類システムやキーワード付与方法によれば、文書本体に含まれるキーワードに加え、リンク元のアンカー文字列を検索インデックスに登録したり、文書特徴ベクトルに追加したりすることにより、リンク元のアンカー文字列がリンク先文書の説明を記述している性質を利用して、検索・分類の精度を高めようとしている。 According to these search devices, document classification systems, and keyword assignment methods, in addition to the keywords included in the document body, by registering the link source anchor character string in the search index or adding it to the document feature vector, Using the property that the anchor character string of the link source describes the description of the link destination document, the search / classification accuracy is improved.
しかるに、上記の文書検索装置及び検索方法では、以下のような問題点がある。すなわち、検索対象をより絞り込むために、「奈良 レストラン情報」のように複数の単語をスペースで分割して入力されたり、「奈良のレストラン情報」のように「AのB」といった表現を使ったり、「奈良レストラン情報」のように複合語として検索条件が入力された場合に、絞り込み検索が精度良く行えないことである。サイト内のリンクやページの内容は、閲覧者がトップページから順番にリンクを辿ってくることを想定して記述される傾向があるため、単独のページの本文やリンク元アンカー文字列ではうまく内容を絞り込めないことがある。 However, the above document retrieval apparatus and retrieval method have the following problems. In other words, in order to narrow down the search target, a plurality of words are divided into spaces such as “Nara restaurant information”, or an expression such as “A's B” is used such as “Nara restaurant information”. , when the search conditions as a compound word, such as "Nara restaurant information" is input, Ru der that Refine search can not be performed with high accuracy. Contents of the link and the page in the site, since there is a tendency that the viewer is described on the assumption that come by following the link to the order from the top page, well in this text and link the original anchor character string of a single page The content may not be narrowed down.
また仮に、上記の問題点を回避するために、リンク元のアンカー文字列を単純に一定数遡って検索・分類対象としても、検索精度は必ずしも向上しない。その原因は、リンク元のアンカー文字列を単純に一定数遡るだけでは、かえって文書の特徴と関係ないキーワードが検索・分類対象に含まれることになるからである。 Further if, in order to avoid the problem points described above, even if the link source anchor character string as a simple search and classification target back a certain number, the search accuracy is not necessarily improved. The reason is that simply by going back a certain number of anchor character strings at the link source, keywords that are not related to document features are included in the search / classification target.
例えば、後述の図2において、リンク元を3つ遡ったアンカー文字列の系列を検索対象とする場合、文書17のアンカー文字列の系列は「L106←L103←L101」となるため,文書17をうまく説明するキーワードが抽出できると期待できる。ところが、文書12のアンカー文字列の系列は「L101←L203←L201」もしくは「L101←L302←L301」となる。
For example, in FIG. 2 to be described later, when an anchor character string series that is three links back is used as a search target, the anchor character string series of the
この場合、サイト2、サイト3内のリンクのアンカー文字列「L201」及び「L301」は、文書12とは関係ない可能性が高い。さらに、文書11のアンカー文字列の系列は「L203←L201」もしくは「L302←L301←L403」となる。この場合、文書11に無関係なリンクのアンカー文字列「L201」、「L301」に加えて、さらに無関係なリンクのアンカー文字列「L403」も検索対象に含めることになるため、検索・分類精度の向上は期待できない。
In this case, the anchor character strings “ L 201” and “ L 301” of the links in the
本発明は以上の点に鑑みなされたもので、キーワードがスペースで分割されたり、「の」で接続されたり、複合語として検索条件に入力された場合に、そのキーワードを分割し、サイト構造を表すキーワードを検索対象とすることによって、効果的な絞り込み検索を行い得る文書検索装置、検索方法及びプログラムを提供することを目的とする。 Since the present invention also has been made in consideration of these circumstances, or key words are separated by a space, or are connected by a "no", when it is entered in the search condition as a compound word, dividing the keyword, site structure by the search target keyword representing the document search apparatus capable of performing an effective search refinement shall be the object of providing a search how and programs.
上記の目的を達成するため、本発明の文書検索装置は、ハイパーリンクで構造化された複数の文書により形成されている文書クラスタのそれぞれが備える階層化された複数の文書から、入力されたキーワード条件に合致する文書群を検索する文書検索装置において、同一の文書クラスタの複数の文書のそれぞれについて、文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを記憶している第1のインデックス記憶手段と、複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを記憶している第2のインデックス記憶手段と、キーワード条件にn個(n≧2)のキーワードが含まれる場合に、第1のインデックス記憶手段に記憶されている第1のインデックスを参照して、n個のキーワードのうちのm個(1≦m≦n−1)のキーワードが第1のインデックスに含まれていることを検索したときは、第1のインデックスからm個のキーワードの出現頻度とm個のキーワードが現れた文書とを示す第1の検索結果を得た後、残りのn−m個のキーワードで第2のインデックス記憶手段に記憶されている第2のインデックスを参照して、n−m個のキーワードのうち第2のインデックスに含まれるキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、第1及び第2の検索結果を出力するインデックス検索手段とを備えることを特徴とする。 To achieve the above object, the document retrieval equipment of the present invention, from a plurality of hierarchical documents each document cluster that is formed by the structured plurality of document hyperlink provided, is input A keyword extracted from a series of anchor character strings obtained by tracing back a plurality of hyperlinks to a document for each of a plurality of documents in the same document cluster in a document search apparatus that searches for a document group that matches the keyword condition. A first index storage means for storing a first index in which a word group that characterizes a relationship between a document cluster and a document, a document that includes the word group, and an appearance frequency in the document are associated with each other; Including the word group that characterizes the content of the document itself, which is a keyword that appears in the body of each document A write and a second index storage means frequency of occurrence in the document stores a second index associated with, in the case that contains the keyword n (n ≧ 2) the keyword condition, first Referring to the first index stored in the index storage means, m keywords out of n keywords (1 ≦ m ≦ n−1) are included in the first index. When a search is performed, a first search result indicating the frequency of appearance of m keywords and a document in which m keywords appear is obtained from the first index, and then the second search is performed using the remaining mn keywords. Referring to the second index stored in the index storage means, the appearance frequency of the keyword included in the second index among the mn keywords and the document in which the keyword appears To obtain a second search result shown, characterized in that it comprises an index search means for outputting the first and second search results.
また、上記の目的を達成するため、本発明の文書検索装置は、ハイパーリンクで構造化された複数の文書により形成されている文書クラスタのそれぞれが備える階層化された複数の文書から、入力された検索条件文に合致する文書群を検索する文書検索装置において、同一の文書クラスタの複数の文書のそれぞれについて、文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを記憶している第1のインデックス記憶手段と、複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを記憶している第2のインデックス記憶手段と、検索条件文が「の」で連結された、又はスペースで分割された、又は複合語を構成する2個のキーワードからなる場合に、2個のキーワードで第1のインデックス記憶手段に記憶されている第1のインデックスを参照して、2個のキーワードの一方が第1のインデックスに含まれていることを検索したときは、第1のインデックスから一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第1の検索結果を得た後、もう一方のキーワードで第2のインデックス記憶手段に記憶されている第2のインデックスを参照して、第2のインデックスに含まれるもう一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、第1及び第2の検索結果を出力するインデックス検索手段とを備えることを特徴とする。 In order to achieve the above object, the document search apparatus of the present invention is inputted from a plurality of hierarchized documents included in each of document clusters formed by a plurality of documents structured by hyperlinks. Keyword extracted from a series of anchor character strings obtained by tracing back multiple hyperlinks to a document for each of a plurality of documents in the same document cluster in a document search device that searches a group of documents that match the search condition sentence A first index storage means for storing a first index in which a document group including the word cluster and a document characterizing the relationship between the document and a document including the word group and an appearance frequency in the document are associated with each other In addition to the word group that characterizes the content of the document itself, which is a keyword that appears in the text of each of multiple documents, the word group is included. The second index storage means storing the document and the second index associated with the appearance frequency in the document and the search condition sentence are connected by “no”, or divided by a space, or In the case of two keywords constituting a compound word, the first index stored in the first index storage means is referred to by the two keywords, and one of the two keywords is the first index. When the first search result indicating the frequency of appearance of one keyword and the document in which the keyword appears is obtained from the first index, the second keyword is used for the second keyword. Referring to the second index stored in the index storage means, the appearance frequency of the other keyword included in the second index and the keyword are displayed. It was to obtain a second search result indicating the document, characterized by comprising an index search means for outputting the first and second search results.
また、上記の目的を達成するため、本発明の文書検索方法は、データ処理装置が、ハイパーリンクで構造化された複数の文書により形成されている文書クラスタのそれぞれが備える階層化された複数の文書から、入力されたキーワード条件に合致する文書群を検索する文書検索方法において、データ処理装置が、同一の文書クラスタの複数の文書のそれぞれについて、文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを第1のインデックス記憶手段に登録する第1の登録ステップと、データ処理装置が、複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを第2のインデックス記憶手段に登録する第2の登録ステップと、データ処理装置が、キーワード条件にn個(n≧2)のキーワードが含まれる場合に、第1のインデックス記憶手段に登録されている第1のインデックスを参照して、n個のキーワードのうちのm個(1≦m≦n−1)のキーワードが第1のインデックスに含まれていることを検索したときは、第1のインデックスからm個のキーワードの出現頻度とm個のキーワードが現れた文書とを示す第1の検索結果を得た後、残りのn−m個のキーワードで第2のインデックス記憶手段に登録されている第2のインデックスを参照して、n−m個のキーワードのうち第2のインデックスに含まれるキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、第1及び第2の検索結果を出力するインデックス検索ステップとを含むことを特徴とする。 In order to achieve the above object, the document search method according to the present invention includes a plurality of hierarchized data processing devices each of which includes a plurality of document clusters formed by a plurality of documents structured by hyperlinks. In a document search method for searching a document group that matches an input keyword condition from a document, the data processing apparatus can obtain a plurality of hyperlinks to the document retrospectively for each of a plurality of documents in the same document cluster. A first index that associates a document group that is a keyword extracted from a series of anchor character strings with a word group that characterizes the relationship between the document cluster and the document, and a document that includes the word group and an appearance frequency in the document, is first. A first registration step for registering in the index storage means and a data processing device appear in the text of each of the plurality of documents A second registration that registers, in the second index storage means, a second index associated with a word group that characterizes the content of the document itself, which is a keyword, and a document that includes the word group and an appearance frequency in the document. When the step and the data processing apparatus include n (n ≧ 2) keywords in the keyword condition, the n keywords are referred to by referring to the first index registered in the first index storage means When m keywords (1 ≦ m ≦ n−1) of the keywords are included in the first index, the appearance frequency of the m keywords and the m keywords from the first index are retrieved. After obtaining the first search result indicating the document in which the word appears, refer to the second index registered in the second index storage means with the remaining nm keywords. The second search result indicating the appearance frequency of the keyword included in the second index among the mn keywords and the document in which the keyword appears is obtained, and the first and second search results are output. And an index search step.
また、上記の目的を達成するため、本発明の文書検索方法は、データ処理装置が、ハイパーリンクで構造化された複数の文書により形成されている文書クラスタのそれぞれが備える階層化された複数の文書から、入力された検索条件文に合致する文書群を検索する文書検索方法において、データ処理装置が、同一の文書クラスタの複数の文書のそれぞれについて、文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを第1のインデックス記憶手段に登録する第1の登録ステップと、データ処理装置が、複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを第2のインデックス記憶手段に登録する第2の登録ステップと、データ処理装置が、検索条件文が「の」で連結された、又はスペースで分割された、又は複合語を構成する2個のキーワードからなる場合に、2個のキーワードで第1のインデックス記憶手段に登録されている第1のインデックスを参照して、2個のキーワードの一方が第1のインデックスに含まれていることを検索したときは、第1のインデックスから一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第1の検索結果を得た後、もう一方のキーワードで第2のインデックス記憶手段に登録されている第2のインデックスを参照して、第2のインデックスに含まれるもう一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、第1及び第2の検索結果を出力するインデックス検索ステップとを含むことを特徴とする。 In order to achieve the above purpose, the document retrieval method according to the present invention, a plurality of data processing devices have been layered each comprising a document clusters formed by structured multiple documents hyperlinks In a document search method for searching a document group that matches an input search condition sentence, a data processing device traces back a plurality of hyperlinks to the document for each of a plurality of documents in the same document cluster. A first index in which a document group including a word cluster that characterizes a relationship between a document cluster that is a keyword extracted from the obtained anchor character string series and the document, and an appearance frequency in the document are associated with each other A first registration step for registering in the first index storage means and a data processing device appear in the text of each of a plurality of documents A second registration step of registering, in the second index storage means, a second index associated with a word group that characterizes the content of the document itself that is a word and a document that includes the word group and an appearance frequency in the document. If the data processing device is composed of two keywords in which the search condition sentence is connected by “no”, divided by a space, or composed of a compound word, the first index is composed of the two keywords. When it is found that one of the two keywords is included in the first index with reference to the first index registered in the storage means, the appearance frequency of one keyword from the first index And the second search result registered in the second index storage means with the other keyword. Referring to the index, a second search result indicating the appearance frequency of the other keyword included in the second index and the document in which the keyword appears is obtained, and the first and second search results are output. An index search step .
また、上記の目的を達成するため、本発明の文書検索用プログラムは、コンピュータにハイパーリンクで構造化された複数の文書により形成されている文書クラスタのそれぞれが備える階層化された複数の文書から、入力されたキーワード条件又は検索条件文に合致する文書群を検索する文書検索用プログラムにおいて、コンピュータに本発明の文書検索方法の各ステップを実行させることを特徴とする。 To achieve the above purpose, a program for document retrieval of the present invention, a plurality of documents layering each comprising a document clusters that are formed by a plurality of documents that are structured in a hyperlink to a computer In the document search program for searching for a document group that matches the input keyword condition or search condition sentence, the computer is caused to execute each step of the document search method of the present invention.
本発明によれば、以下の種々の効果を奏する。The present invention has the following various effects.
(1)ハイパーテキスト群に対してサイト全体の内容とサイト内での文書の位置付けを反映した検索・分類を行うことができる。その理由は、サイト全体の内容を表すサイト外からのリンクと、サイト内での文書の位置付けを表すサイト内のリンクをそれぞれ遡って得られるアンカー文字列の系列を、文書クラスタと文書との関係を特徴付ける単語群として抽出し、検索・分類対象とするからである。 (1) It is possible to perform search / classification on the hypertext group reflecting the contents of the entire site and the position of the document in the site. The reason for this is that the link between the document cluster and the document is a series of anchor strings obtained by tracing back the link from outside the site that represents the contents of the entire site and the link within the site that represents the position of the document within the site. This is because it is extracted as a word group that characterizes and is used as a search / classification target.
(2)複数キーワードに対する効果的な絞り込み検索を行うことができる。その理由は、キーワードがスペースで分割されたり、「の」で接続されたり、複合語として、検索条件に入力された場合に、そのキーワードを分割し、文書の内容を表すメタ情報としてのキーワードと文書本体のキーワードを別々に検索するからである。 (2) An effective refinement search for a plurality of keywords can be performed. The reason for this is that when a keyword is divided by a space, connected by “no”, or entered as a compound word in a search condition, the keyword is divided into a keyword as meta information representing the content of the document. This is because the keyword of the document body is searched separately.
(3)一般的な文書に対しても、文書の内容と意味付けを反映した検索を行うことができる。その理由は、文書の内容を表すメタ情報中のキーワードと、文書中のキーワードを区別し、それぞれ別のインデックスとして検索を行うからである。 (3) A search that reflects the contents and meaning of a document can be performed for a general document. The reason is that the keyword in the meta information representing the content of the document is distinguished from the keyword in the document, and the search is performed as separate indexes.
次に、本発明の実施の形態について、図面を参照して詳細に説明する。 Next, embodiments of the present invention will be described in detail with reference to the drawings.
[第1の実施の形態]
図1は本発明の第1の実施の形態のブロック図を示す。同図に示すように、本発明の文書検索装置の第1の実施の形態は、プログラム制御により動作するデータ処理装置1と、情報を記憶する記憶装置2とを含む構成である。
[First Embodiment]
FIG. 1 shows a block diagram of a first embodiment of the present invention. As shown in the figure, the first embodiment of the document retrieval equipment of the present invention, the
記憶装置2は、ハイパーテキストデータベース21と、文書キーワード記憶部22とを備えている。ハイパーテキストデータベース21は、図2に示すようなハイパーリンクで構造化された文書群について、各文書のURL、ローカルアドレス、本文テキスト、リンク先文書とそのアンカー文字列などを記憶している。ハイパーテキストデータベース21の例としては、例えばインターネットまたはイントラネット上のウェブ(Web)がこれに該当する。
The
文書キーワード記憶部22は、各文書について、後述の文書キーワード決定手段14が決定したキーワードを記憶する。文書キーワード決定手段14が決定するキーワードには、同一サイト内のリンクを遡って得られるアンカー文字列の系列(サイト内キーワード)と、異なるサイトからそのサイトのトップページへのリンクのアンカー文字列(サイト外キーワード)の2種類がある。
The document
ハイパーテキストデータベース21が図2のようなハイパーリンクで構造化された文書群の場合、文書キーワード記憶部22が記憶するキーワードの例は図3のようになる。図3において、文書キーワード記憶部22には、各文書が文書名とサイト外キーワードとサイト内キーワードとが対応付けて記憶されており、例えば文書15のサイト外キーワードとして「L203,L302」が、サイト内キーワードとして「L104←L101」が記憶されているのがわかる。
When the
一方、図1のデータ記憶装置1は、ハイパーテキストアクセス手段11と、文書クラスタ情報取得手段12と、対象指定手段13と、文書キーワード決定手段14とを備えている。
On the other hand, the
ハイパーテキストアクセス手段11は、ハイパーテキストデータベース21に格納されている文書を読み出し、文書クラスタ情報取得手段12に渡す。ハイパーテキストデータベース21がWWWの場合、HTTP(Hyper Text Transfer Protocol)を介して文書にアクセスすることができる。このような機能は、従来、IE(Internet Explorer)などのWebブラウザ、あるいはWebクローラー(スパイダー/ロボット)において実現されている。
The
文書クラスタ情報取得手段12は、ハイパーテキストアクセス手段11が読み出した文書に含まれるリンク情報を抽出し、対象指定手段13によって指定された条件に基づきサイトを構成する文書クラスタを特定し、文書参照関係表と文書クラスタ表を生成する。文書参照関係表の例を図4に、文書クラスタ表の例を図5に示す。
The document cluster
図4に示すように、文書参照関係表は、アンカー文字列、リンク元文書及びリンク先文書が対応付けられた一覧表であり、例えば文書11から文書12に対してアンカー文字列「L101」のリンクがはられていることを示している。また、図5に示すように、文書クラスタ表は、文書クラスタ、トップページ及びクラスタ内文書が対応付けられた一覧表であり、例えば文書クラスタ「サイト1」のトップページは文書11で、クラスタ内には、文書12〜19が含まれていることを示している。
As shown in FIG. 4, the document reference relation table is a list in which an anchor character string, a link source document, and a link destination document are associated with each other. Indicates that a link has been established. As shown in FIG. 5, the document cluster table is a list in which a document cluster, a top page, and documents in the cluster are associated with each other. For example, the top page of the document cluster “
図1のデータ処理装置1内の対象指定手段13は、同一サイトとみなすべき文書クラスタの条件を、文書クラスタ情報取得手段12に与える。対象指定手段13が与える条件には、「サイトのトップページの条件」と「同一サイトに含まれる文書の条件」を含む。例えば、同一ドメイン名のサーバーに格納された文書クラスタを一つのサイトとみなしたい場合、「サイトのトップページの条件」として、「文書のURLが『http://ドメイン名/』、または『http://ドメイン名/index.html』であるもの」と指定し、「同一サイトに含まれる文書の条件」として、「ドメイン名が同じ」と指定すればよい。
The
データ処理装置1内の文書キーワード決定手段14は、文書クラスタ情報取得手段12によって生成された文書参照関係表と文書クラスタ表を参照しながら、同一文書クラスタ内を遡って得られるアンカー文字列の系列と、異なる文書クラスタからのリンクのアンカー文字列をその文書のキーワードとして決定し、文書キーワード記憶部22に格納する。
The document
次に、図1のブロック図乃至図6のフローチャートを併せ参照して第1の実施の形態の動作について、詳細に説明する。まず、ハイパーテキストアクセス手段11は、ハイパーテキストデータベース21に格納されている各文書を読み出し、文書クラスタ情報取得手段12に渡す。文書クラスタ情報取得手段12は、与えられた文書からリンク情報を抽出し、図4に示すような文書参照関係表を生成する(ステップS1)。
Next, the operation of the first embodiment will be described in detail with reference to the block diagram of FIG. 1 to the flowchart of FIG. First, the
次に、文書クラスタ情報取得手段12は、対象指定手段13により指定された「サイトのトップページの条件」に基づき、与えられた文書についてトップページか否かの判定を行う。ここで、トップページとは、ディレクトリ階層における位置関係から定まる文書クラスタ内の最上位文書である(図2の場合、サイト1では文書11、サイト3では文書31である。)。
Next, the document cluster
もし、トップページであれば図5に示す文書クラスタ表に1行追加して登録する(ステップS2)。例えば、「サイトのトップページの条件」として「文書のURLが『http://ドメイン名/』、または『http://ドメイン名/index.html』であるもの」と指定されていた場合、ドメイン名単位でトップページが文書クラスタ表に登録される。 If it is a top page, one line is added and registered in the document cluster table shown in FIG. 5 (step S2). For example, when “the URL of the document is“ http: // domain name / ”or“ http: // domain name / index.html ”” is specified as “the condition of the top page of the site”, The top page is registered in the document cluster table for each domain name.
また、文書クラスタ情報取得手段12は、与えられた文書がトップページでないと判定した場合は、対象指定手段13により指定された「同一サイトに含まれる文書の条件」に基づき、トップページでないと判定された文書がどのサイトに属するかを決定し、図5に示す文書クラスタ表のクラスタ内文書に登録する(ステップS3)。例えば、「同一サイトに含まれる文書の条件」として、「ドメイン名が同じ」と指定されていた場合、トップページと同じドメイン名を持つ文書がクラスタ内文書に登録される。
If the document cluster
次に、文書キーワード決定手段14は、文書クラスタ情報取得手段12が生成した文書参照関係表と文書クラスタ表を参照して、各サイトのトップページに対してサイト外からはられているリンクのアンカー文字列をサイト外キーワードとして文書キーワード記憶部22に記憶させる(ステップS4)。
Next, the document
さらに、文書キーワード決定手段14は、文書クラスタ情報取得手段12が生成した文書参照関係表と文書クラスタ表を参照して、各クラスタ内文書について、同一クラスタ内文書のリンクを遡って得られるアンカー文字列の系列をサイト内キーワードとして文書キーワード記憶部22に記憶させる(ステップS5)。
この時、同一サイトに含まれている文書のサイト外キーワードは、そのサイトのトップページのサイト外キーワードと同じにする。したがって、図2の文書12〜文書19のサイト外キーワードは、文書11のサイト外キーワードと同一の「L203,L302」となる。
Further, the document
At this time, the off-site keywords of the documents included in the same site are the same as the off-site keywords of the top page of the site. Therefore, the off-site keywords of the
また、リンクを遡る際に、一度遡った文書を覚えておき、ループして遡らないようにする。例えば、図2の文書16に対するリンクを単純に遡ると「L105←L102」というアンカー文字列の系列のほかに、「L105←L109」、「L105←L109←L105←L102」、「L105←L109←L105←L109←・・・」のようにループによって無数のアンカー文字列が生成されてしまう。そこで、一度遡った文書を同じアンカー文字列の系列内で二度遡らないようにしておくと、文書16のサイト内キーワードは「L105←L102」だけになる。
Also, when going back to the link, remember the document that went back once, so that it doesn't go back in a loop. For example, when the link to the
一方、別のアンカー文字列の系列で同じ文書を遡る場合は、それぞれ別のキーワードとして登録する。例えば図2の文書19の場合、「L108←L104←L101」と「L110←L105←L102」はどちらも文書11に遡るアンカー文字列の系列であるが、別の系列であるため両方をサイト内キーワードとして記憶する。ここでも、「L110←L105←L109←L105←L102」というアンカー文字列の系列などが考えられるが、これは同一系列内で文書13と文書16をそれぞれ2回遡っているためサイト内キーワードとしては記憶しない。
On the other hand, when the same document is traced back by another anchor character string series, it is registered as a different keyword. For example, in the case of the document 19 of FIG. 2, “L108 ← L104 ← L101” and “L110 ← L105 ← L102” are both anchor character string series that goes back to the
なお、本実施の形態では、ハイパーテキストアクセス手段11が記憶装置2に記憶されたハイパーテキストデータベース21にアクセスする方法について述べたが、他にもインターネットに直接アクセスし、記憶装置2にハイパーテキストデータベース21を記憶する方法もあり、本発明は本実施の形態で述べた方法に限定されない。
In this embodiment, the method in which the
また、本実施の形態では、対象指定手段13により指定される「サイトのトップページの条件」として「文書のURLが『http://ドメイン名/』、または『http://ドメイン名/index.html』であるもの」とし、「同一サイトに含まれる文書の条件」として「ドメイン名が同じ」である場合を例として説明を行った。しかし、「サイトのトップページの条件」として「異なるドメイン名のページからのリンクが一定数以上の文書」、「同一サイトに含まれる文書の条件」として「同一ドメインでトップページとURLのディレクトリ階層が同じか、深い文書」を指定する方法もある。また、習慣的にチルダ「~」で始まるディレクトリ名は、そのサーバーを利用している各ユーザーのサイトであるとみなすこともできる。
In the present embodiment, “the URL of the document is“ http: // domain name / ”or“ http: // domain name / index ”as the“ site top page condition ”designated by the
また、「サイトのトップページの条件」として「『Home Page』『Topへ』『最初に戻る』など、トップページを指すと考えられる表現のアンカー文字列を持つリンクのリンク先文書」とし、「同一サイトに含まれる条件」として「『Home Page』『Topへ』『最初に戻る』など、トップページを指すと考えられる表現のアンカー文字列を持つリンクのリンク元文書」とする方法もある。さらに、「サイトのトップページの条件」として、予め人手によって指定されたURLのリストを使う方法もあり、本実施の形態で述べた方法に限定されるものではない。 In addition, the “site top page condition” is “link destination document with an anchor character string that is considered to indicate the top page, such as“ Home Page ”,“ Top ”,“ return to the beginning ”, etc. There is also a method in which “a condition included in the same site” is “a link source document of a link having an anchor character string of an expression that is considered to indicate a top page, such as“ Home Page ”,“ Top ”, and“ Return to the beginning ”. Further, there is a method of using a list of URLs specified by hand in advance as the “site top page condition”, and the method is not limited to the method described in this embodiment.
また、本実施の形態では、文書キーワード決定手段14は、同一クラスタ内文書のリンクを遡って得られるアンカー文字列の系列をサイト内キーワードとしたが、トップページでない文書にサイト外からリンクがはられている場合、そのリンクを一つだけ遡ったアンカー文字列の系列もサイト内キーワードとして記憶してもよい。また、必ずしもトップページまでのリンクをすべて遡らずに、遡る数を指定したリンク数に限定する方法もあり、本実施の形態で述べた方法に限定されるものではない。 In the present embodiment, the document keyword determination means 14 uses an anchor character string series obtained by tracing back links of documents in the same cluster as keywords in the site. If it is, the anchor character string series that goes back one link may be stored as an in-site keyword. In addition, there is a method of limiting the number of links to the designated number of links without necessarily going back all the links to the top page, and the method is not limited to the method described in the present embodiment.
また、本実施の形態では、文書キーワード決定手段14は、ループしたリンクのアンカー文字列の系列をサイト内キーワードから除いていた。しかし、他にも、「戻る」「Back」「Topへ」「Home Page」「前へ」「次へ」など、検索・分類に適切でないキーワードをあらかじめ辞書として持っておき、その文字列を含むアンカー文字列の系列はサイト内キーワードとして登録しない方法などもある。また、遡る文書数が一定以上に長くなったアンカー文字列の系列をサイト内キーワードとして登録しない方法や、遡る文書数が少ない上位s通りのアンカー文字列の系列のみをサイト内キーワードとして登録する方法などがあり、本実施の形態で述べた方法に限定されない。
In the present embodiment, the document
また、本実施の形態では、文書キーワード決定手段14はアンカー文字列を基にキーワードを決定しているが、アンカー文字列に加えて文書のタイトル、アンカー文字列周辺の一定長の文字列、アンカー文字列周辺のテーブルタグに囲まれた文字列、アンカー文字列周辺のリストタグに囲まれた文字列、アンカー文字列周辺の<BR>または<P>タグで囲まれた文字列、文書中の<H>タグやフォントサイズや色が強調された文字列も含めてキーワードとする方法もあり、本実施の形態で述べた方法に限定されない。 In the present embodiment, the document keyword determination means 14 determines a keyword based on the anchor character string, but in addition to the anchor character string, the document title, a fixed-length character string around the anchor character string, the anchor A character string enclosed in table tags around the character string, a character string enclosed in a list tag around the anchor character string, a character string enclosed in <BR> or <P> tags around the anchor character string, <H> There is a method of using a keyword including a character string in which a tag, font size, and color are emphasized, and the method is not limited to the method described in this embodiment.
また、本実施の形態では、文書キーワード記憶部22にサイト外キーワードとサイト内キーワードのみ記憶しているが、さらに文書のタイトル、本文テキストなどをキーワードとして記憶してもよく、本実施の形態で述べた方法に限定されない。また、本実施の形態では、トップページを特定するステップS2の後に文書クラスタを特定するステップS3を実行するとして動作を説明したが、先に文書クラスタを特定するステップS3を実行した後に、トップページを特定するステップS2を実行する方法もあり、本実施の形態で述べた方法に限定されない。
In the present embodiment, only the off-site keyword and the in-site keyword are stored in the document
また、本実施の形態では、サイト外キーワードを決定するステップS4の後にサイト内キーワードを決定するステップS5を実行するとして動作を説明したが、先にサイト内キーワードを決定するステップS5を実行した後に、サイト外キーワードを決定するステップS4を実行する方法もあり、本実施の形態で述べた方法に限定されない。 In the present embodiment, the operation has been described as executing step S5 for determining an in-site keyword after step S4 for determining an off-site keyword. However, after executing step S5 for determining an in-site keyword first. There is also a method of executing step S4 for determining an off-site keyword, and is not limited to the method described in the present embodiment.
次に、本発明の第1の実施の形態の効果について説明する。本実施の形態では、サイト全体の内容を表すサイト外からのリンクと、サイト内での文書の位置付けを表すサイト内のリンクをそれぞれ遡って得られるアンカー文字列の系列を、文書クラスタと文書との関係を特徴付ける単語群として抽出する。そのため、各文書について、サイト全体の内容とサイト内での文書の位置付けを反映したキーワードを得ることができる。 Next, effects of the first exemplary embodiment of the present invention will be described. In the present embodiment, a series of anchor character strings obtained by tracing back a link from outside the site representing the contents of the entire site and a link within the site representing the position of the document within the site are divided into a document cluster and a document. This is extracted as a word group characterizing the relationship. Therefore, for each document, a keyword reflecting the contents of the entire site and the position of the document in the site can be obtained.
[第2の実施の形態]
次に、本発明の第2の実施の形態について図面を参照して説明する。図7は本発明の第2の実施の形態のブロック図を示す。同図に示すように、本発明の文書検索装置の第2の実施の形態は、プログラム制御により動作するデータ処理装置5と、情報を記憶する記憶装置6と、入力手段3と出力手段4を含む構成である。同図中、図1と同一構成部分には同一符号を付し、その説明を省略する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described with reference to the drawings. FIG. 7 shows a block diagram of the second embodiment of the present invention. As shown in the drawing, a second embodiment of the document retrieval equipment of the present invention includes a
本発明の第2の実施の形態は、データ処理装置5が、図1に示された第1の実施の形態におけるデータ処理装置1の構成に加え、インデックス作成手段15とインデックス検索手段16を有する点で異なる。また、記憶装置6が、図1に示された第1の実施の形態における記憶装置2の構成に加え、第1のインデックス記憶部23を有する点で異なる。さらに、図1に示された第1の実施の形態に加え、キーボード等の入力手段3とディスプレイ装置や印刷装置等の出力手段4を有する点で異なる。
In the second embodiment of the present invention, the
図7において、記憶装置6内の第1のインデックス記憶部23は、文書キーワード記憶部22のデータをもとにインデックス作成手段15が生成するインデックスを格納する。データ処理装置5内のインデックス作成手段15は、文書キーワード記憶部22に記憶されている各文書のサイト外キーワードとサイト内キーワードを読み出し、どのキーワードがどの文書のサイト外キーワードまたはサイト内キーワードに出現するかをインデックスとして作成し、第1のインデックス記憶部23に格納する。データ処理装置5内のインデックス検索手段16は、入力手段3から入力された検索条件に応じて、第1のインデックス記憶部23を検索しその結果を出力手段4に出力する。
In FIG. 7, the first
次に、第2の実施の形態の動作を、図面を参照して詳細に説明する。本実施の形態では、図8(A)に示すフローチャートによる登録処理と、図8(B)に示すフローチャートによる検索処理という動作のタイミングが異なる2種類の処理がある。検索処理は利用者からの入力がある度に行われるのに対し、登録処理は予め1回だけ行っておけばよい。 Next, the operation of the second embodiment will be described in detail with reference to the drawings. In the present embodiment, there are two types of processing with different operation timings, that is, registration processing according to the flowchart shown in FIG. 8A and search processing according to the flowchart shown in FIG. The search process is performed every time there is an input from the user, whereas the registration process only needs to be performed once in advance.
まず、第2の実施の形態の登録処理について図8(A)のフローチャートと共に説明する。図8(A)中、図6と同一処理ステップには同一符号を付してある。すなわち、図8(A)に示す登録処理のフローチャート中、ステップS1〜S5で示される本実施の形態におけるハイパーテキストアクセス手段11、文書クラスタ情報取得手段12、対象指定手段13、文書キーワード決定手段14の動作は、第1の実施の形態の各手段11、12、13および14の動作と同一のため、説明は省略する。
First, registration processing according to the second embodiment will be described with reference to the flowchart of FIG. In FIG. 8A, the same processing steps as those in FIG. That is, in the flowchart of the registration process shown in FIG. 8A, the
第1の実施の形態では、ステップS5でサイト内キーワードを決定した段階で処理を終了していた。本実施の形態では、ステップS5の結果生成された文書キーワードを基に、インデックス作成手段15がサイト外キーワードについて、どの語がどの文書に登録されているかという索引を作成する(ステップS6)。続いて、インデックス作成手段15は、サイト内キーワードについて、どの語がどの文書に登録されているかという索引を作成する(ステップS7)。これにより、登録処理を終了する。 In the first embodiment, the process is terminated when the in-site keyword is determined in step S5. In this embodiment, based on the document keyword generated as a result of step S5, the index creating means 15 creates an index indicating which word is registered in which document for the off-site keyword (step S6). Subsequently, the index creating means 15 creates an index indicating which word is registered in which document for the keyword in the site (step S7). This completes the registration process.
次に、検索処理について図8(B)のフローチャートと共に説明する。まず、入力手段3から検索条件が入力される(ステップT1)。検索条件として入力されるものとしては、キーワードの他にも、自然言語による質問文や、検索目的とする文書に類似した別の文書などがある。 Next, the search process will be described with reference to the flowchart of FIG. First, a search condition is input from the input means 3 (step T1). What is input as a search condition includes, in addition to keywords, a question sentence in a natural language, another document similar to a document to be searched, and the like.
次に、インデックス検索手段16は、入力された検索条件から検索に使うキーワードn語を決定する(ステップT2)。キーワードの決定の方法には、文の分割とキーワード選定の二つの処理が含まれる。例えば、文の分割には形態素解析を用い、キーワードの選定では「の」などの付属語を除外した残りの語をキーワードとして使うなどの方法がある。 Next, the index search means 16 determines the keyword n word used for a search from the input search conditions (step T2). The keyword determination method includes two processes, sentence division and keyword selection. For example, there is a method of using morphological analysis for sentence division and using the remaining words excluding attached words such as “no” as keywords for keyword selection.
次に、インデックス検索手段16は、n語に分割したキーワードのうち、サイト外キーワードに現れる語がないか調べる。現れていれば、そのキーワードm語(1≦m≦n−1)とその出現頻度、及びキーワードが現れた文書を検索結果候補として記憶しておく(ステップT3)。 Next, the index search means 16 checks whether there are any words that appear in the off-site keyword among the keywords divided into n words. If it appears, the keyword m word (1 ≦ m ≦ n−1), its appearance frequency, and the document in which the keyword appears are stored as search result candidates (step T3).
次に、インデックス検索手段16は、検索結果候補となった文書のうち、サイト内キーワードに、残りのn−m語が現れている文書と、キーワードの出現頻度を検索結果リストに追加登録し(ステップT4)、その検索結果リストをキーワードの出現頻度でソートし、出力手段4を使って利用者に検索結果を表示する(ステップT5)。 Next, the index search means 16 additionally registers, in the search result list, a document in which the remaining nm words appear in the site keyword among the documents that are search result candidates and the appearance frequency of the keyword ( In step T4), the search result list is sorted by keyword appearance frequency, and the search result is displayed to the user using the output means 4 (step T5).
なお、本発明は第2の実施の形態に限定されるものではなく、以下の種々の変形例も含むものである。すなわち、第2の実施の形態では、文書キーワード記憶部22にはサイト外キーワードとサイト内キーワードだけを記憶しているが、その他にサイトタイトルやサイト本文をキーワードとして記憶し、検索キーワード分割後に検索対象とする方法でもよい。また、本実施の形態では、検索結果リストをキーワードの出現頻度でソートしているが、サイト外キーワードでの出現頻度とサイト内キーワードでの出現頻度にそれぞれ異なる重みを掛けて、その結果でソートする方法を採用してもよい。
In addition, this invention is not limited to 2nd Embodiment, The following various modifications are also included. That is, in the second embodiment, only the off-site keyword and the in-site keyword are stored in the document
また、本実施の形態では、検索方式/検索モデルをキーワードマッチによるものを想定しているが、検索方式/検索モデルとしては、ベクトル空間モデル、確率モデル、ANDやOR演算を行うブーリアンモデルなどの方法でもよい。 In this embodiment, the search method / search model is assumed to be based on keyword matching. However, as the search method / search model, a vector space model, a probability model, a Boolean model for performing AND and OR operations, etc. It may be a method.
また、本実施の形態では、サイト外キーワードの索引を作成するステップS6の後にサイト内キーワードの索引を作成するステップS7を実行しているが、サイト内キーワードの索引を作成するステップS7の後にサイト外キーワードの索引を作成するステップS6を実行してもよい。 Further, in this embodiment, step S7 for creating an index for in-site keywords is performed after step S6 for creating an index for keywords outside the site. Step S6 for creating an index of outside keywords may be executed.
また、本実施の形態では、サイト外キーワードを決定するステップS4とサイト内キーワードを決定するステップS5の後にそれぞれサイト外キーワードの索引を作成するステップS6とサイト内キーワードの索引を作成するステップS7を実行しているが、サイト外キーワードを決定するステップS4の後にサイト外キーワードの索引を作成するステップS6を実行し、サイト内キーワードを決定するステップS5の後にサイト内キーワードの索引を作成するステップS7を実行してもよい。 Further, in the present embodiment, after step S4 for determining the keyword outside the site and step S5 for determining the keyword within the site, step S6 for creating an index for the keyword outside the site and step S7 for creating the index for the keyword within the site, respectively. Although it is executed, step S6 for creating an index for the off-site keyword is executed after step S4 for determining the keyword outside the site, and step S7 for creating an index for the keyword inside the site after step S5 for determining the keyword within the site. May be executed.
また、本実施の形態では、検索キーワードを決定するステップT2で、形態素解析を用いて文を分割する方法について述べたが、他にも漢字・英数字・カタカナ・ひらがななどの字種で分割する、一定文字数で分割する、スペースや句読点で分割する、「の」などの付属語で分割するなどの方法もあり、本実施の形態で述べた方法に限定されない。 In the present embodiment, the method of dividing a sentence using morphological analysis in the step T2 for determining a search keyword has been described. However, it is divided into other character types such as kanji, alphanumeric, katakana, and hiragana. There are also methods such as dividing by a certain number of characters, dividing by spaces or punctuation marks, and dividing by an attached word such as “no”, and are not limited to the method described in this embodiment.
また、本実施の形態では、検索キーワードを決定するステップT2における、キーワード選定で「の」などの付属語を除外する方法について述べたが、他にも「情報」、「方法」など一般的な文書での出現頻度が高い語を不要語として除外するか、検索にヒットしても低いスコアの加算にとどめておき、逆に、一般的な文書における出現頻度に比較して質問文内での出現頻度が高い語を重要語として検索にヒットした場合にスコアを高いスコアを加算するなどの方法があり、本実施の形態で述べた方法に限定されない。 In the present embodiment, the method of excluding ancillary words such as “no” in keyword selection in step T2 for determining a search keyword has been described, but other general information such as “information” and “method” are also used. Exclude words with high frequency in the document as unnecessary words, or add only a low score even if the search hits, and conversely, in the question text in comparison with the frequency in general documents There is a method of adding a high score when a search hits a word having a high appearance frequency as an important word, and is not limited to the method described in the present embodiment.
また、本実施の形態では、サイト外キーワードを検索するステップT3で、キーワードが1語以上現れた場合に、その文書を検索結果候補として記憶する方法について述べたが、すべての文書ですべてのキーワードがヒットしなかった場合に、すべての文書を検索結果候補としてサイト内キーワードを検索するステップT4を実行する方法もある。また、サイト外キーワード、サイト内キーワードのどちらか一方でもヒットすれば検索結果リストに含めておき、検索結果を出力するステップT5で、サイト外、サイト内のいずれでヒットしたかによって文書のスコアの重みを変えてソートする方法もある。 In the present embodiment, the method of storing a document as a search result candidate when one or more keywords appear in step T3 of searching for an off-site keyword has been described. There is also a method of executing step T4 of searching for in-site keywords using all documents as search result candidates when no hit is found. If either the keyword outside the site or the keyword inside the site is hit, it is included in the search result list, and in step T5 for outputting the search result, the score of the document is determined depending on whether it is hit outside the site or inside the site. There is also a method of sorting by changing the weight.
次に、第2の実施の形態の効果について説明する。本実施の形態では、サイト全体の内容を表すサイト外からのリンクと、サイト内での文書の位置付けを表すサイト内のリンクをそれぞれ遡って得られるアンカー文字列の系列を、文書クラスタと文書との関係を特徴付ける単語群として抽出し、インデックスを作成している。これにより、サイト全体の内容とサイト内での文書の位置付けを反映した検索を行うことができる。 Next, the effect of the second embodiment will be described. In the present embodiment, a series of anchor character strings obtained by tracing back a link from outside the site representing the contents of the entire site and a link within the site representing the position of the document within the site are divided into a document cluster and a document. It is extracted as a group of words that characterize the relationship between them, and an index is created. Thereby, it is possible to perform a search reflecting the contents of the entire site and the position of the document in the site.
また、本実施の形態では、キーワードがスペースで分割されたり、「の」で接続されたり、複合語として検索条件に入力された場合に、そのキーワードを分割し、サイト全体の内容を表すサイト外からのリンクと、サイト内での文書の位置付けを表すサイト内のリンクをそれぞれ遡って得られるアンカー文字列の系列をそれぞれ検索している。これにより、サイト構造を反映した効果的な絞込み検索を行うことができる。 Also, in this embodiment, when a keyword is divided by a space, connected by “no”, or entered as a compound word in a search condition, the keyword is divided to indicate the contents of the entire site. And a series of anchor character strings obtained by tracing back a link in the site and a link in the site representing the position of the document in the site. This makes it possible to perform an effective refined search that reflects the site structure.
[第3の実施の形態]
次に、本発明の第3の実施の形態について図面を参照して詳細に説明する。図9は本発明の第3の実施の形態のブロック図を示す。同図に示すように、本発明の文書検索装置の第3の実施の形態は、プログラム制御により動作するデータ処理装置7と、情報を記憶する記憶装置8とを含む構成である。同図中、図1と同一構成部分には同一符号を付し、その説明を省略する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described in detail with reference to the drawings. FIG. 9 shows a block diagram of a third embodiment of the present invention. As shown in the figure, the third embodiment of the document retrieval equipment of the present invention includes a
本発明の第3の実施の形態は、図9に示すように、データ処理装置7が、図1に示された第1の実施の形態におけるデータ処理装置1の構成に加え、文書ベクトル作成手段17と、類似度計算手段18を有する点で異なる。また、記憶装置8が、図1に示された第1に示された第1の実施の形態における記憶装置2の構成に加え、文書ベクトル記憶部24、カテゴリ条件記憶部25、および分類結果記憶部26を有する点で異なる。
In the third embodiment of the present invention, as shown in FIG. 9, the
文書ベクトル記憶部24には、文書キーワード記憶部22に格納されているキーワードを基に文書ベクトル作成手段17によって作成された、各文書の特徴ベクトルが記憶されている。文書の特徴ベクトルとは、例えば文書中に出現する各キーワードとその出現頻度を多次元ベクトルとして表現したものである。
In the document
複数の文書について、それぞれ特徴ベクトルを決定しておけば、特徴ベクトル間のユークリッド距離や、特徴ベクトルがなす角度などから、文書間の類似度を計算することができる。また、あるカテゴリに属する複数の文書の特徴ベクトルの総和や重心を、そのカテゴリの特徴ベクトルと考え、カテゴリの特徴ベクトルと未分類の文書の特徴ベクトルの類似度を計算することによって、その文書がどのカテゴリに属するかを決定することもできる。 If a feature vector is determined for each of a plurality of documents, the similarity between documents can be calculated from the Euclidean distance between the feature vectors, the angle formed by the feature vectors, and the like. In addition, the sum or centroid of the feature vectors of a plurality of documents belonging to a certain category is regarded as the feature vector of the category, and by calculating the similarity between the feature vector of the category and the feature vector of the unclassified document, It is also possible to determine which category it belongs to.
カテゴリ条件記憶部25には、分類したいカテゴリについて、それぞれ特徴的なキーワードとその出現頻度が特徴ベクトルとして記憶されている。分類結果記憶部26には、類似度計算手段18によって文書ベクトルと各カテゴリの特徴ベクトルの余弦を計算した結果が記憶されている。この結果は、値が大きいほど文書がそのカテゴリに属すると判断できる。
The category
文書ベクトル作成手段17は、文書キーワード記憶部22に記憶されている文書キーワードを基に、各文書について、どのキーワードがどの部分(サイト外キーワードか、サイト内キーワードか、タイトルか、本文か等)に何回出現したかを文書ベクトルとして文書ベクトル記憶部24に記憶させる。
Based on the document keywords stored in the document
類似度計算手段18は、文書ベクトル記憶部24に格納されている各文書の文書ベクトルについて、カテゴリ条件記憶部25に格納されている各カテゴリの特徴ベクトルとの余弦を計算し、その結果を分類結果記憶部26に格納する。
The similarity calculation means 18 calculates the cosine of the feature vector of each category stored in the category
次に、本実施の形態の動作を、図10のフローチャート共に詳細に説明する。
図10中、図6と同一処理ステップには同一符号を付し、その説明を省略する。
すなわち、図10のステップS1〜S5で示される本実施の形態におけるハイパーテキストアクセス手段11、文書クラスタ情報取得手段12、対象指定手段13、文書キーワード決定手段14の動作は、第1の実施の形態の各手段11、12、13及び14の動作と同一のため、説明は省略する。
Next, the operation of the present embodiment will be described in detail with reference to the flowchart of FIG.
In FIG. 10, the same processing steps as those in FIG. 6 are denoted by the same reference numerals, and the description thereof is omitted.
That is, the operations of the
第1の実施の形態では、ステップS5でサイト内キーワードを決定した段階で処理を終了していた。本実施の形態では、ステップS5の結果生成された文書キーワードを基に、文書ベクトル作成手段17が、各文書について、どのキーワードがどの部分(サイト外キーワードか、サイト内キーワードか、タイトルか、本文か等)に何回出現したかを文書ベクトルとして文書ベクトル記憶部24に記憶させる(ステップS8)。
In the first embodiment, the process is terminated when the in-site keyword is determined in step S5. In the present embodiment, based on the document keyword generated as a result of step S5, the document vector creation means 17 determines which part of each document is which keyword (external keyword, in-site keyword, title, text) Or the like) is stored in the document
次に、類似度計算手段18が文書ベクトル記憶部24に格納されている各文書の文書ベクトルについて、カテゴリ条件記憶部25に格納されている各カテゴリの特徴ベクトルとの余弦を計算し、その結果を分類結果記憶部26に格納する(ステップS9)。
Next, the similarity calculation means 18 calculates the cosine of the feature vector of each category stored in the category
なお、本実施の形態では、文書ベクトルとしてキーワードと、その出現部分(サイト外キーワードか、サイト内キーワードか、タイトルか、本文か等)、および出現頻度を使ったが、特に出現部分の区別をしない方法や、出現部分によって出現頻度に重み付けを行う方法、あるいは出現頻度ではなく出現したか否かのみの情報を使う方法などを採用してもよい。 In this embodiment, keywords, their appearance parts (non-site keywords, in-site keywords, titles, body texts, etc.) and appearance frequencies are used as document vectors. A method of not performing, a method of weighting the appearance frequency according to the appearance part, a method of using only information on whether or not the appearance frequency is used instead of the appearance frequency may be employed.
また、本実施の形態では、文書の類似度計算としてベクトルの余弦をとっているが、類似度計算としてベクトル間のユークリッド距離を用いる方法でもよい。
また、本実施の形態では、カテゴリ条件として各カテゴリの特徴ベクトルを指定している。しかし、カテゴリの特徴ベクトルを指定する代わりに、実際にカテゴリに含まれる文書を指定して教師データとし、SVMなどの機械学習を用いて学習した結果生成される学習モデルをカテゴリ条件として使い、類似度計算手段18でこの学習モデルを使って未学習の文書を分類する方法でもよい。SVMを用いた文書分類についての詳細は1988年、プロシーディングズ・オブ・テンス・ヨーロピアン・カンファレンス・オン・マシン・ラーニング、137〜142頁(Proceedings of 10th European Conference on Machine Learning, pp.137-I42, 1998)などに記載されている。
In the present embodiment, the cosine of a vector is taken as the similarity calculation of the document, but a method using the Euclidean distance between the vectors may be used as the similarity calculation.
In this embodiment, the feature vector of each category is specified as the category condition. However, instead of specifying a category feature vector, a document actually included in a category is specified as teacher data, and a learning model generated as a result of learning using machine learning such as SVM is used as a category condition. A method of classifying unlearned documents using the learning model by the degree calculation means 18 may be used. For details on document classification using SVM, see Proceedings of 10th European Conference on Machine Learning, pp.137-I42, 1988, Proceedings of 10th European Conference on Machine Learning. , 1998).
次に、第3の実施の形態の効果について説明する。本実施の形態では、サイト全体の内容を表すサイト外からのリンクと、サイト内での文書の位置付けを表すサイト内のリンクをそれぞれ遡って得られるアンカー文字列の系列を、文書クラスタと文書との関係を特徴付ける単語群として抽出し、文書ベクトルを作成している。これにより、サイト全体の内容とサイト内での文書の位置付けを反映した分類を行うことができる。 Next, the effect of the third embodiment will be described. In this embodiment, sites and links from offsite representing the entire contents, the sequence of the anchor character string obtained by tracing back each link in the site representing the positioning of documents within a site, document clusters and documents A word vector is extracted as a group of words that characterizes the relationship between and a document vector. Thereby, it is possible to perform classification that reflects the contents of the entire site and the position of the document in the site.
[第4の実施の形態]
次に、本発明の第4の実施の形態について図面を参照して詳細に説明する。図11は本発明の第4の実施の形態のブロック図を示す。同図に示すように、本発明のキーワード抽出装置、文書検索装置及び文書分類装置の第4の実施の形態は、プログラム制御により動作するデータ処理装置9と、情報を記憶する記憶装置11と、入力手段3と出力手段4を含む構成である。同図中、図1と同一構成部分には同一符号を付し、その説明を省略する。
[Fourth Embodiment]
Next, a fourth embodiment of the present invention will be described in detail with reference to the drawings. FIG. 11 shows a block diagram of a fourth embodiment of the present invention. As shown in the figure, the fourth embodiment of the keyword extraction device, document search device, and document classification device of the present invention includes a
図11に示すように、本発明の第4の実施の形態は、データ処理装置9が、図7に示された第2の実施の形態におけるデータ処理装置5の構成から、ハイパーテキストアクセス手段11、文書クラスタ情報取得手段12、対象指定手段13、文書キーワード決定手段14、インデックス作成手段15を除いている点で異なる。また、記憶装置10が、図7に示された第2の実施の形態における記憶装置6の構成から、ハイパーテキストデータベース21、文書キーワード記憶部22を除き、新たに第2のインデックス記憶部27を有する点で異なる。
As shown in FIG. 11, in the fourth embodiment of the present invention, the
第1のインデックス記憶部23には、文書の内容を表すメタ情報としてサイト外キーワードとサイト内キーワードの索引が記憶されている。また、第2のインデックス記憶部27には、文書の本文中に出現したキーワードの索引が記憶されている。
The first
次に、本実施の形態の動作を図12のフローチャートを参照して詳細に説明する。なお、図12中、図8(B)と同一処理ステップには同一符号を付し、その説明を省略する。図12のステップTl、T2及びステップT5で示される本実施の形態におけるインデックス検索手段16の動作は、第2の実施の形態におけるインデックス検索手段16の動作と同一のため、説明は省略する。 Next, the operation of the present embodiment will be described in detail with reference to the flowchart of FIG. In FIG. 12, the same processing steps as those in FIG. 8B are denoted by the same reference numerals, and the description thereof is omitted. The operation of the index search means 16 in the present embodiment shown in steps Tl, T2 and T5 in FIG. 12 is the same as the operation of the index search means 16 in the second embodiment, and a description thereof will be omitted.
第2の実施の形態では、キーワードを決定するステップT2の後、インデックス検索手段16はサイト外キーワードとサイト内キーワードをそれぞれ検索していた。本実施の形態では、インデックス検索手段16はサイト外キーワードとサイト内キーワードの索引である第1のインデックスを検索し、文書の本文中に出現したキーワードの索引である第2のインデックスをそれぞれ検索する。 In the second embodiment, after step T2 for determining a keyword, the index search means 16 searches for an off-site keyword and an on-site keyword, respectively. In the present embodiment, the index search means 16 searches the first index that is the index of the keyword outside the site and the keyword within the site, and searches the second index that is the index of the keyword that appears in the text of the document. .
まず、インデックス検索手段16は、ステップT2でn語に決定したキーワードのうち、第1のインデックス記憶部23に登録された語(第1のインデックス)がないか検索する。登録されていれば、そのキーワードm語(1≦m≦n−1)と、その出現頻度およびキーワードが現れた文書を検索結果候補として記憶しておく(ステップU3)。
First, the index search means 16 searches for a word (first index) registered in the first
次に、インデックス検索手段16は、検索結果候補となった各文書の残りのn−m語のうち、第2のインデックス記憶部27に登録された語(第2のインデックス)がないか検索し、登録されていれば、その登録されている文書と、キーワードの出現頻度を検索結果リストに追加登録する(ステップU4)。その後、インデックス検索手段16は、上記の検索結果リストをキーワードの出現頻度でソートし、出力手段4を使って利用者に検索結果を表示する(ステップT5)。
Next, the index search means 16 searches for the word (second index) registered in the second
なお、本発明はこの実施の形態に限定されるものではなく、以下の種々の変形例が可能である。すなわち、第4の実施の形態では、検索結果リストをキーワードの出現頻度でソートしているが、第1のインデックスでの出現頻度と第2のインデックスでの出現頻度にそれぞれ異なる重みを掛けて総和をとり、その結果でソートしてもよい。また、本実施の形態では、第1のインデックス記憶部23には、ハイパーテキストから抽出されたサイト外キーワードとサイト内キーワードが登録されているとしたが、文書の内容を表すメタ情報中に出現するキーワードであってもよい。例えば、検索対象が学術論文である場合、引用元論文内での紹介文がこのメタ情報にあたる。また、検索対象が書籍である場合、書誌事項や書籍の紹介記事などがこのメタ情報にあたる。
The present invention is not limited to this embodiment, and the following various modifications are possible. That is, in the fourth embodiment, the search result list is sorted by the appearance frequency of keywords, but the appearance frequency in the first index and the appearance frequency in the second index are multiplied by different weights, and the sum is obtained. And sort by the result. Further, in the present embodiment, the first
また、本実施の形態では、検索結果リストをキーワードの出現頻度でソートしているが、第1のインデックスでの出現頻度と第2のインデックスでの出現頻度にそれぞれ異なる重みを掛けて、その結果でソートするようにしてもよい。また、本実施の形態では、第1のインデックスを検索するステップU3で、キーワードが1語以上現れた場合に、その文書を検索結果候補として記憶する方法について述べたが、すべての文書ですべてのキーワードがヒットしなかった場合に、すべての文書を検索結果候補として第2のインデックスを検索するステップU4を実行する方法もある。 In this embodiment, the search result list is sorted by the appearance frequency of the keyword. However, the appearance frequency in the first index and the appearance frequency in the second index are multiplied by different weights, and the result is obtained. You may make it sort by. In the present embodiment, the method of storing the document as a search result candidate when one or more keywords appear in step U3 for searching the first index has been described. There is also a method of executing the step U4 of searching the second index using all documents as search result candidates when the keyword is not hit.
また、第1のインデックス、第2のインデックスのどちらか一方でもヒットすれば検索結果リストに含めておき、検索結果を出力するステップT5で、第1のインデックスと第2のインデックスのいずれでヒットしたかによって、文書スコアの重みを変えてソートする方法もあり、本実施の形態で述べた方法に限定されない。 If either the first index or the second index is hit, it is included in the search result list, and in step T5 for outputting the search result, either the first index or the second index is hit. Depending on the method, there is a method of sorting by changing the weight of the document score, and the method is not limited to the method described in the present embodiment.
次に、本実施の形態の効果について説明する。本実地の形態では、文書の内容を表すメタ情報に含まれるキーワードから第1のインデックスを作成し、これを優先して検索している。これにより、文書の内容を反映した検索を行うことができる。 Next, the effect of this embodiment will be described. In the present embodiment, a first index is created from a keyword included in meta information representing the content of a document, and this is preferentially searched. As a result, a search reflecting the contents of the document can be performed.
また、本実施の形態では、キーワードがスペースで分割されたり、「の」で接続されたり、複合語として検索条件に入力された場合に、そのキーワードを分割し、第1のインデックスと第2のインデックスをそれぞれ検索している。これにより、文書の内容を反映した効果的な絞り込み検索を行うことができる。 In this embodiment, when a keyword is divided by a space, connected by “no”, or inputted as a compound word in a search condition, the keyword is divided, and the first index and the second index are divided. Each index is searched. As a result, an effective narrowing search that reflects the contents of the document can be performed.
[第5の実施の形態]
次に本発明の第5の実施の形態について図画を参照して詳細に説明する。図13は、本発明の第5の実施の形態のブロック図を示す。同図に示すように、本発明の第5の実施の形態は、入力装置31、データ処理装置32、出力装置33、記憶装置34を備え、さらに、前述の第1の実施の形態のキーワード抽出装置を実現するためのプログラムを記録した記録媒体30を備える。この記録媒体30は、磁気ディスク、半導体メモリ、CD−ROMその他の記録媒体のいずれでもよい。
[Fifth Embodiment]
Next, a fifth embodiment of the present invention will be described in detail with reference to the drawings. FIG. 13 shows a block diagram of a fifth embodiment of the present invention. As shown in the figure, the fifth embodiment of the present onset Ming, an
入力装置31は、マウス、キーボード等、操作者からの指示を入力するための装置である。また、出力装置33は、データ処理装置32による処理結果を出力する装置で、例えば表示装置、プリンタ等である。キーワード抽出装置を実現するためのプログラムは、記録媒体30からデータ処理装置32に読み込まれ、データ処理装置32の動作を制御し、記憶装置34に入力メモリ35とワークメモリ36を生成する。データ処理装置32は、キーワード抽出装置を実現するためのプログラムの制御により第1の実施の形態と同一の処理を実行する。
The
図1におけるデータ処理装置1と図13におけるデータ処理装置32が対応し、図1における記憶装置2と図13における記憶装置34が対応する。ただし、処理対象となるハイパーテキストデータベース21は、記録媒体30から読み込む形態の他に、データ処理装置32によって外部にあるデータベースにネットワーク(例えばインターネット)を介してアクセスして取得する形態であってもよい。
The
[第6の実施の形態]
次に、本発明の第6の実施の形態について図面を参照して詳細に説明する。第6の実施の形態は、第5の実施の形態と同様に、図13の構成を用いる。文書検索装置を実現するためのプログラムが、記録媒体30からデータ処理装置32に読み込まれ、データ処理装置32の動作を制御する。データ処理装置32は、文書検索装置を実現するためのプログラムの制御により第2の実施の形態と同一の処理を実行する。
[Sixth Embodiment]
Next, a sixth embodiment of the present invention will be described in detail with reference to the drawings. The sixth embodiment uses the configuration shown in FIG. 13 as in the fifth embodiment. A program for realizing the document search device is read from the
図7におけるデータ処理装置5と図13におけるデータ処理装置32が対応し、図7における記憶装置6と図13における記憶装置34が対応する。ただし、処理対象となるハイパーテキストデータベース21は、記録媒体30から読み込む形態の他に、データ処理装置32によって外部にあるデータベースにネットワーク(例えばインターネット)を介してアクセスして取得する形態であってもよい。
The
なお、ここでは、図7におけるハイパーテキストアクセス手段11、文書クラスタ情報取得手段12、対象指定手段13、文書キーワード決定手段14、インデックス作成手段15、インデックス検索手段16のすべてが1つの記録媒体30からデータ処理装置32によって読み込まれる形態で説明したが、複数の記録媒体に分割して記録されていてもよい。例えば、ハイパーテキストアクセス手段11、文書クラスタ情報取得手段12、対象指定手段13、文書キーワード決定手段14のプログラムは、第5の実施の形態の記録媒体から読み込むようにし、それ以外のインデックス作成手段15とインデックス検索手段16のプログラムは別の記録媒体としてもよい。さらには、インデックス作成手段15のプログラムとインデックス検索手段16のプログラムが別の記録媒体に分けて構成されていてもよい。
Here, all of the
[第7の実施の形態]
次に本発明の第7の実施の形態について図面を参照して詳細に説明する。第7の実施の形態は、第5、第6の実施の形態と同様に、図13の構成を用いる。文書分類装置を実現するためのプログラムが記録媒体30からデータ処理装置32に読み込まれ、データ処理装置32の動作を制御する。データ処理装置32は、文書分類装置を実現するためのプログラムの制御により第3の実施の形態と同一の処理を実行する。
[Seventh Embodiment]
Next, a seventh embodiment of the present invention will be described in detail with reference to the drawings. The seventh embodiment uses the configuration of FIG. 13 as in the fifth and sixth embodiments. A program for realizing the document classification device is read from the
図9におけるデータ処理装置7と図13におけるデータ処理装置32が対応し、図9における記憶装置8と図13における記憶装置34が対応する。ただし、処理対象となるハイパーテキストデータベース21は、記録媒体30から読み込む形態の他に、データ処理装置32によって外部にあるデータベースにネットワーク(例えばインターネット)を介してアクセスして取得する形態であってもよい。
9 corresponds to the
なお、ここでは、図9におけるハイパーテキストアクセス手段11、文書クラスタ情報取得手段12、対象指定手段13、文書キーワード決定手段14、文書ベクトル作成手段17、類似度計算手段18のすべてが1つの記録媒体30からデータ処理装置32に読み込まれる形態で説明したが、複数の記録媒体に分割して記録されていてもよい。
Here, the
例えば、ハイパーテキストアクセス手段11、文書クラスタ情報取得手段12、対象指定手段13、文書キーワード決定手段14のプログラムは、第5の実施の形態の記録媒体から読み込むようにし、それ以外の文書ベクトル作成手段17と類似度計算手段18のプログラムは別の記録媒体として構成されていてもよい。さらには、文書ベクトル作成手段17のプログラムと類似度計算手段18のプログラムが別の記録媒体に分けて構成されていてもよい。 For example, the hypertext access means 11, document cluster information acquisition means 12, object designation means 13, and document keyword determination means 14 are read from the recording medium of the fifth embodiment, and other document vector creation means 17 and the program of the similarity calculation means 18 may be configured as separate recording media. Furthermore, the program of the document vector creation means 17 and the program of the similarity calculation means 18 may be configured separately on different recording media.
[第8の実施の形態]
次に、本発明の第8の実施の形態について図面を参照して詳細に説明する。第8の実施の形態は、第5、第6、第7の実施の形態と同様に、図13の構成を用いる。文書検索装置を実現するためのプログラムが、記録媒体30からデータ処理装置32に読み込まれ、データ処理装置32の動作を制御する。データ処理装置32は、文書検索装置を実現するためのプログラムの制御により第4の実施の形態と同一の処理を実行する。図11におけるデータ処理装置9と図13におけるデータ処理装置32が対応し、図11における記録装置10と図13における記録装置34が対応する。
[Eighth Embodiment]
Next, an eighth embodiment of the present invention will be described in detail with reference to the drawings. The eighth embodiment uses the configuration of FIG. 13 as in the fifth, sixth, and seventh embodiments. A program for realizing the document search device is read from the
[第1の実施例]
次に、本発明の第1の実施例を、図面を参照して説明する。この第1の実施例は本発明の第1の実施の形態に対応するものである。本実施例は、図1に示したデータ処理装置1としてパーソナルコンピュータを、記憶装置2として磁気ディスク記憶装置を備えている。
[First embodiment]
Next, a first embodiment of the present invention will be described with reference to the drawings. This first example corresponds to the first embodiment of the present invention. In this embodiment, a personal computer is provided as the
パーソナルコンピュータは、図1に示したハイパーテキストアクセス手段11、文書クラスタ情報取得手段12、対象指定手段13、文書キーワード決定手段14として機能する中央演算装置を有している。また、磁気ディスク記憶装置には、図1に示したハイパーテキストデータベース21、文書キーワード記憶部22が記憶されている。ハイパーテキストデータベース21に格納されているハイパーテキスト群の一例を図14に示す。
The personal computer has a central processing unit that functions as the
まず、ハイパーテキストアクセス手段11はハイパーテキストデータベース21に格納されている各文書を読み出し、文書クラスタ情報取得手段12に渡す。
文書クラスタ情報取得手段12は、与えられた文書からリンク情報を抽出し、図15に示すような、アンカー文字列とリンク元文書とリンク先文書とが対応付けられた文書参照関係表を生成する。
First, the
The document cluster
次に、文書クラスタ情報取得手段12は、対象指定手段13に指定された「サイトのトップページの条件」と「同一サイトに含まれる文書の条件」に基づき、図16に示すような、文書クラスタとトップページとクラスタ内文書とが対応付けられた文書クラスタ表を生成する。なお、本実施例では、「サイトのトップページの条件」として「文書のURLが『http://ドメイン名/』、または『http://ドメイン名/index.html』であるもの」とし、「同一サイトに含まれる文書の条件」として、「ドメイン名が同じ」としている。
Next, the document cluster
次に、文書キーワード決定手段14は、文書クラスタ情報取得手段12が生成した文書参照関係表と文書クラスタ表を参照して、各サイトのトップページに対してサイト外からはられているリンクのアンカー文字列をサイト外キーワードとし、各クラスク内文書について、同一クラスタ内文書のリンクを遡って得られるアンカー文字列の系列をサイト内キーワードとして文書キーワード記憶部22に記憶させる。得られる文書キーワードの例を図17に示す。
Next, the document
なお、本実施例では、同一サイトに含まれている文書のサイト外キーワードは、そのサイトのトップページのサイト外キーワードと同じにする。したがって、図14の文書112〜文書119のサイト外キーワードは、文書111のサイト外キーワードと同一の「グルメ情報,レストラン検索」となる。 In this embodiment, the off-site keyword of documents included in the same site is the same as the off-site keyword of the top page of the site. Accordingly, the off-site keywords of the document 112 to the document 119 in FIG. 14 are the same “gourmet information, restaurant search” as the off-site keyword of the document 111.
また、リンクを遡る際に、一度遡った文書を覚えておき、ループして遡らないようにする。例えば、図14の文書116に対するリンクを単純に遡ると「東京都←関東」というアンカー文字列の系列のほかに、「東京都←関東←戻る←東京都←関東」、「東京都←関東←戻る←東京都←関東←戻る←東京都・・・」のようにループによって無数のアンカー文字列が生成されてしまう。そこで、一度遡った文書を同じアンカー文字列の系列内で二度遡らないようにする。したがって、文書116のサイト内キーワードは「戻る」を含まないことになる。 Also, when going back to the link, remember the document that went back once, so that it doesn't go back in a loop. For example, when the link to the document 116 in FIG. 14 is simply traced back, in addition to the anchor character string series “Tokyo → Kanto”, “Tokyo → Kanto ← Back ← Tokyo → Kanto”, “Tokyo → Kanto ← An infinite number of anchor strings are generated by a loop like "Back ← Tokyo ← Kanto ← Back ← Tokyo ...". Therefore, a document that has been traced once is not traced twice within the same anchor character string series. Therefore, the keyword in the site of the document 116 does not include “return”.
また、本実施例では、トップページでないページへのサイト外からのリンクを一つだけ遡ってサイト内キーワードに含めるようにしている。したがって、文書116のサイト内キーワードには「東京都←関東」と「東京のお勧め店」の2種類になる。図14の文書119についても同様の方法で登録するが、別のアンカー文字列の系列で同じ文書を遡る場合は、それぞれ別のキーワードとしで登録する。 Further, in this embodiment, only one link from outside the site to a page that is not the top page is traced back and included in the in-site keyword. Accordingly, there are two types of keywords in the site of the document 116: “Tokyo ← Kanto” and “Recommended shops in Tokyo”. The document 119 shown in FIG. 14 is registered in the same manner. However, when the same document is traced back in another anchor character string series, it is registered as different keywords.
すなわち、「中華←東京都←関東」と「中華←大阪府←関西」はどちらも文書111に遡るアンカー文字列の系列であるが、別の系列であるため両方をサイト内キーワードとしで記憶する。ここでも、「中華←東京都←関東←戻る←東京都←関東」というアンカー文字列の系列などが考えられるが、これは同一系列内で文書113と文書116をそれぞれ2回遡っているためサイト内キーワードとしては記憶しない。また、トップページでないページへのサイト外からのリンクを一つだけ遡ってサイト内キーワードに含めるようにしているため、「中華←東京のお勧め店」も文書119のサイト内キーワードとして記憶される。 That is, “Chinese ← Tokyo ← Kanto” and “Chinese ← Osaka Prefecture ← Kansai” are both anchor character strings that go back to the document 111, but both are stored as site keywords because they are separate series. . In this case as well, an anchor character string such as “Chinese ← Tokyo ← Kanto ← Back ← Tokyo ← Kanto” can be considered, but this is because the document 113 and the document 116 are traced back twice in the same series. It is not stored as an internal keyword. In addition, since only one link from outside the site to a page that is not the top page is included in the site keyword, “Chinese ← Tokyo recommended store” is also stored as the site keyword of document 119. .
[第2の実施例]
次に、本発明の第2の実施例を、図面を参照して説明する。この第2の実施例は本発明の第2の実施の形態に対応するものである。本実施例は図7に示した第2の実施の形態におけるデータ処理装置5としてパーソナルコンピュータを、記憶装置6として磁気ディスク記憶装置を備えている。
[Second Embodiment]
Next, a second embodiment of the present invention will be described with reference to the drawings. This second example corresponds to the second embodiment of the present invention. In this embodiment, a personal computer is provided as the
上記のパーソナルコンピュータの中央演算装置は、第1の実施例と同様の機能を有するが、これに加えて図7に示したインデックス作成手段15、インデックス検索手段16としても機能する点で第1の実施例と異なる。また、入力装置としてキーボードを、出力装置としてディスプレイを備える点で第1の実施例と異なる。また、磁気ディスク記憶装置には、図7に示した第1のインデックス記憶部23も記憶される点で第1の実施例と異なる。本実施例のハイパーテキストデータベース21に格納されているハイパーテキスト群の一例を図14に示す。
The above central processing unit of the personal computer has the same function as that of the first embodiment, but in addition to this, it also functions as the index creating means 15 and index searching means 16 shown in FIG. Different from the embodiment. The second embodiment is different from the first embodiment in that a keyboard is provided as an input device and a display is provided as an output device. The magnetic disk storage device is different from the first embodiment in that the first
本実施例では、登録と検索という動作のタイミングが異なる2種類の処理がある。検索は利用者からの入力がある度に行われるのに対し、登録は予め1回だけ行っておけばよい。登録処理では、まず、ハイパーテキストアクセス手段11はハイパーテキストデータベース21に格納されている各文書を読み出し、文書クラスタ情報取得手段12に渡す。文書クラスタ情報取得手段12は、与えられた文書からリンク情報を抽出し、図15に示すような文書参照関係表を生成する。
In this embodiment, there are two types of processing with different timings of registration and search. The search is performed every time there is an input from the user, whereas the registration need only be performed once in advance. In the registration process, first, the hypertext access means 11 reads each document stored in the
次に、文書クラスタ情報取得手段12は、対象指定手段13に指定された「サイトのトップページの条件」と「同一サイトに含まれる文書の条件」に基づき、図16に示すような文書クラスタ表を生成する。なお、本実施例では、「サイトのトップページの条件」として「文書のURLが『http://ドメイン名/』、または『http://ドメイン名/index.html』であるもの」とし、「同一サイトに含まれる文書の条件」としている。
Next, the document cluster
次に、文書キーワード決定手段14は、文書クラスタ情報取得手段12が生成した文書参照関係表と文書クラスタ表を参照して、各サイトのトップページに対してサイト外からはられているリンクのアンカー文字列をサイト外キーワードとし、各クラスタ内文書について、同一クラスタ内文書のリンクを遡って得られるアンカー文字列の系列をサイト内キーワードとして文書キーワード記憶部22に記憶させる。得られる文書キーワードの例を図17に示す。
Next, the document
なお、本実施例では、同一サイトに含まれている文書のサイト外キーワードは、そのサイトのトップページのサイト外キーワードと同じにする。したがって、図14の文書112〜文書119のサイト外キーワードは文書111のサイト外キーワードと同一の「グルメ情報,レストラン検索」となる。 In this embodiment, the off-site keyword of documents included in the same site is the same as the off-site keyword of the top page of the site. Accordingly, the off-site keywords of the document 112 to the document 119 in FIG. 14 are the same “gourmet information, restaurant search” as the off-site keyword of the document 111.
また、リンクを遡る際に、一度遡った文書を覚えておき、ループして遡らないようにする。例えば、図14の文書116に対するリンクを単純に遡ると「東京都←関東」というアンカー文字列の系列のほかに、「東京都←関東←戻る←東京都←関東」、「東京都←関東←戻る←東京都・・・」のようにループによって無数のアンカー文字列が生成されてしまう。そこで、一度遡った文書を同じアンカー文字列の系列内で二度遡らないようにする。したがって、文書116のサイト内キーワードは「戻る」を含まないことになる。 Also, when going back to the link, remember the document that went back once, so that it doesn't go back in a loop. For example, when the link to the document 116 in FIG. 14 is simply traced back, in addition to the anchor character string series “Tokyo → Kanto”, “Tokyo → Kanto ← Back ← Tokyo → Kanto”, “Tokyo → Kanto ← An infinite number of anchor strings are generated by a loop like "Back ← Tokyo ...". Therefore, a document that has been traced once is not traced twice within the same anchor character string series. Therefore, the keyword in the site of the document 116 does not include “return”.
また、本実施例では、トップページでないページへのサイト外からのリンクを一つだけ遡ってサイト内キーワードに含めるようにしている。したがって、文書116のサイト内キーワードには「東京都←関東」と「東京のお勧め店」の2種類になる。図14の文書119についても同様の方法で登録するが別のアンカー文字列の系列で同じ文書を遡る場合は、それぞれ別のキーワードとして登録する。 Further, in this embodiment, only one link from outside the site to a page that is not the top page is traced back and included in the in-site keyword. Accordingly, there are two types of keywords in the site of the document 116: “Tokyo ← Kanto” and “Recommended shops in Tokyo”. The document 119 in FIG. 14 is also registered in the same manner, but when the same document is traced back with another anchor character string series, it is registered as a different keyword.
すなわち、「中華←東京都←関東」と「中華←大阪府←関西」はどちらも文書111に遡るアンカー文字列の系列であるが、別の系列であるため両方をサイト内キーワードとして記憶する。ここでも、「中華←東京都←関東←戻る←東京都←関東」というアンカー文字列の系列などが考えられるが、これは同一系列内で文書113と文書116をそれぞれ2回遡っているためサイト内キーワードとしては記憶しない。また、トップページでないページへのサイト外からのリンクを一つだけ遡ってサイト内キーワードに含めるようにしているため、「中華←東京のお勧め店」も文書119のサイト内キーワードとして記憶される。 In other words, “Chinese ← Tokyo → Kanto” and “Chinese ← Osaka Prefecture ← Kansai” are both anchor character string sequences that go back to the document 111, but both are stored as in-site keywords. In this case as well, an anchor character string such as “Chinese ← Tokyo ← Kanto ← Back ← Tokyo ← Kanto” can be considered, but this is because the document 113 and the document 116 are traced back twice in the same series. It is not stored as an internal keyword. In addition, since only one link from outside the site to a page that is not the top page is included in the site keyword, “Chinese ← Tokyo recommended store” is also stored as the site keyword of document 119. .
次に、インデックス作成手段15は、サイト外キーワードについて、どの語がどの文書に登録されているかという索引を作成し、続いて、サイト内キーワードについて、どの語がどの文書に登録されているかという索引を作成する。 Next, the index creating means 15 creates an index indicating which words are registered in which document for the off-site keyword, and subsequently, an index indicating which word is registered in which document for the in-site keyword. Create
次に、検索処理の詳細な説明を行う。今、キーボードから「奈良 グルメ」という検索条件が入力されたとする。すると、インデックス検索手段16は、検索条件を、スペースや「の」で区切り、あるいは形態素解析を行うことによって、「奈良」と「グルメ」の2つのキーワードに分割する。 Next, the search process will be described in detail. Assume that a search condition “Nara gourmet” is entered from the keyboard. Then, the index search means 16 divides the search condition into two keywords “Nara” and “Gourmet” by separating the search condition with a space or “no” or by performing morphological analysis.
次に、インデックス検索手段16は、「奈良」、「グルメ」のうち、サイト外キーワードに現れる語がないか調べる。現れていれば、そのキーワードとその出現頻度およびキーワードが現れた文書を検索結果候補として記憶しておく。文書キーワードが図17の場合、「グルメ」が文書111〜119のサイト外キーワードにそれぞれ1回ずつ現れているので、検索結果候補とする。 Next, the index search means 16 checks whether there is a word that appears in the keyword outside the site among “Nara” and “Gourmet”. If it appears, the keyword, its appearance frequency, and the document in which the keyword appears are stored as search result candidates. When the document keyword is shown in FIG. 17, “gourmet” appears once for each of the off-site keywords of the documents 111 to 119, so that it is set as a search result candidate.
次に、インデックス検索手段16は、検索結果候補となった文書のうち、サイト内キーワードに、残りの「奈良」が現れている文書と、キーワードの出現頻度を検索結果リストに追加登録する。文書キーワードが図17の場合、検索結果候補となった文書111〜119のうち、サイト内キーワードに「奈良」が出現しているのは文書114、文書117、文書118である。キーワード「奈良」の出現頻度はいずれも1回である。最後に、インデックス検索手段16は、検索結果リストをキーワードの出現頻度でソートし、ディスプレイを使って利用者に検索結果を表示する。 Next, the index search means 16 additionally registers, in the search result list, a document in which the remaining “Nara” appears as a keyword in the site among the documents that are search result candidates, and the appearance frequency of the keyword. When the document keyword is shown in FIG. 17, among the documents 111 to 119 that are search result candidates, the documents 114, 117, and 118 have “Nara” as the keyword in the site. The appearance frequency of the keyword “Nara” is once. Finally, the index search means 16 sorts the search result list by the appearance frequency of the keywords, and displays the search results to the user using the display.
なお、本実施例では、文書114、文書117、文書118でのキーワードの出現頻度はいずれも1回であるが、出現位置(サイト外キーワードか、サイト内キーワードか、サイト内キーワード中、でも最初の方か、本文か)に応じて出現頻度に重みをつけたスコアを用いて検索結果をソートしてもよい。 In the present embodiment, the appearance frequency of the keyword in the document 114, the document 117, and the document 118 is all once, but the appearance position (the keyword outside the site, the keyword within the site, or the keyword within the site is the first The search results may be sorted using a score that weights the appearance frequency according to whether it is the body or the body).
また、キーボードから「奈良グルメ検索」という検索条件が入力されたとする。すると、インデックス検索手段16は、検索条件をスペースや「の」で区切り、あるいは形態素解析を行うことによって、「奈良」、「グルメ」、「検索」に分割する。 It is also assumed that a search condition “Nara gourmet search” is input from the keyboard. Then, the index search means 16 divides the search condition into “Nara”, “Gourmet”, and “Search” by dividing the search condition by a space or “NO” or by performing morphological analysis.
次に、インデックス検索手段16は、「奈良」、「グルメ」、「検索」のうち、サイト外キーワードに現れる語がないか調べる。現れていれば、そのキーワードとその出現頻度およびキーワードが現れた文書を検索結果候補として記憶しておく。文書キーワードが図17の場合、「グルメ」、「検索」が文書111〜文書119のサイト外キーワードにそれぞれ1回ずつ現れているので、検索結果候補とする。 Next, the index search means 16 checks whether there is a word that appears in the keyword outside the site among “Nara”, “Gourmet”, and “Search”. If it appears, the keyword, its appearance frequency, and the document in which the keyword appears are stored as search result candidates. When the document keyword is shown in FIG. 17, “gourmet” and “search” appear once in the off-site keywords of the documents 111 to 119, respectively, and therefore are set as search result candidates.
次に、インデックス検索手段16は、検索結果候補となった文書のうち、サイト内キーワードに、残りの「奈良」が現れている文書と、キーワードの出現頻度を検索結果リストに追加登録する。文書キーワードが図17の場合、検索結果候補となった文書111〜文書119のうち、サイト内キーワードに「奈良」が出現しているのは文書114、文書117、文書118である。キーワード「奈良」の出現頻度はいずれも1回である。最後に、インデックス検索手段16は、検索結果リストをキーワードの出現頻度でソートし、ディスプレイを使って利用者に検索結果を表示する。 Next, the index search means 16 additionally registers, in the search result list, a document in which the remaining “Nara” appears as a keyword in the site among the documents that are search result candidates, and the appearance frequency of the keyword. When the document keyword is shown in FIG. 17, among the documents 111 to 119 that are search result candidates, “Nara” appears as the keyword in the site in the document 114, the document 117, and the document 118. The appearance frequency of the keyword “Nara” is once. Finally, the index search means 16 sorts the search result list by the appearance frequency of the keywords, and displays the search results to the user using the display.
なお、本実施例では、文書114、文書117、文書118でのキーワードの出現頻度はいずれも1回であるが、出現位置(サイト外キーワードか、サイト内キーワードか、サイト内キーワード中でも最初の方か、本文か)に応じて出現頻度に重みをつけたスコアを用いて検索結果をソートしてもよい。 In this embodiment, the appearance frequency of the keywords in the document 114, the document 117, and the document 118 is all once, but the appearance position (the keyword outside the site, the keyword within the site, or the keyword within the site is the first one) Search results may be sorted using a score that weights the appearance frequency according to the text).
また、キーボードから「奈良 中華」という検索条件が入力されたとする。次に、インデックス検索手段16は、検索条件をスペースや「の」で区切り、あるいは形態素解析を行うことによって、「奈良」、「中華」に分割する。 Also assume that a search condition of “Nara Chinese” is entered from the keyboard. Next, the index search means 16 divides the search condition into “Nara” and “Chinese” by dividing the search condition with a space or “no” or performing morphological analysis.
次に、インデックス検索手段16は、「奈良」、「中華」のうち、サイト外キーワードに現れる語がないか調べる。現れていれば、そのキーワードとその出現頻度およびキーワードが現れた文書を検索結果候補として記憶しておく。文書キーワードが図17の場合、「奈良」も「中華」もサイト外キーワードとして現れていない。 Next, the index search means 16 checks whether there is a word that appears in the off-site keyword among “Nara” and “Chinese”. If it appears, the keyword, its appearance frequency, and the document in which the keyword appears are stored as search result candidates. When the document keyword is shown in FIG. 17, neither “Nara” nor “Chinese” appears as off-site keywords.
次に、インデックス検索手段16は、すべての文書のうち、サイト内キーワードに、「奈良」と「中華」が現れている文書と、キーワードの出現頻度を検索結果リストに追加登録する。文書キーワードが図17の場合、文書117に「奈良」と「中華」がそれぞれ1回ずつ出現しているため、文書117が検索結果リストに登録される。最後に、インデックス検索手段16は、検索結果リストをキーワードの出現頻度でソートし、ディスプレイを使って利用者に検索結果を表示する。 Next, the index search means 16 additionally registers in the search result list the documents in which “Nara” and “Chinese” appear in the site keywords among all the documents, and the appearance frequency of the keywords. When the document keyword is shown in FIG. 17, since “Nara” and “Chinese” appear once in the document 117, the document 117 is registered in the search result list. Finally, the index search means 16 sorts the search result list by the appearance frequency of the keywords, and displays the search results to the user using the display.
また、キーボードから「中華レストラン」という検索条件が入力されたとする。すると、インデックス検索手段は、検索条件をスペースや「の」で区切り、あるいは形態素解析を行うことによって、「中華」、「レストラン」に分割する。 Further, it is assumed that a search condition “Chinese restaurant” is input from the keyboard. Then, the index search means divides the search condition into “Chinese” and “Restaurant” by dividing the search condition with a space or “no” or performing morphological analysis.
次に、インデックス検索手段16は、「中華」、「レストラン」のうち、サイト外キーワードに現れる語がないか調べる。現れていれば、そのキーワードとその出現頻度およびキーワードが現れた文書を検索結果候補として記憶しておく。
文書キーワードが図17の場合、「レストラン」が文書111〜文書119のサイト外キーワードにそれぞれ1回ずつ現れているので、検索結果候補とする。
Next, the index search means 16 checks whether there is a word that appears in the keyword outside the site among “Chinese” and “Restaurant”. If it appears, the keyword, its appearance frequency, and the document in which the keyword appears are stored as search result candidates.
In the case where the document keyword is shown in FIG. 17, “restaurant” appears once for each of the off-site keywords of the document 111 to the document 119, and is thus regarded as a search result candidate.
次に、インデックス検索手段16は、検索結果候補となった文書のうち、サイト内キーワードに、残りの「中華」が現れている文書と、キーワードの出現頻度を検索結果リストに追加登録する。文書キーワードが図17の場合、検索結果候補となった文書111〜文書119のうち、サイト内キーワードに「中華」が出現しているのは文書117と文書119であり、キーワード「中華」の出現頻度はそれぞれ1回、3回である。最後に、インデックス検索手段は、検索結果リストをキーワードの出現頻度でソートし、ディスプレイを使って利用者に検索結果を表示する。 Next, the index search means 16 additionally registers, in the search result list, the remaining “Chinese” in the site keyword among the documents that are search result candidates and the appearance frequency of the keyword. When the document keyword is FIG. 17, among the documents 111 to 119 that are search result candidates, “Chinese” appears in the site keyword in the documents 117 and 119, and the appearance of the keyword “Chinese” appears. The frequency is once and three times, respectively. Finally, the index search means sorts the search result list according to the appearance frequency of the keywords, and displays the search results to the user using the display.
なお、本実施例では、文書119のサイト内キーワードを「中華←大阪府←関西」、「中華←東京都←関東」、「中華←東京のお勧め店」の3通りであるとして「中華」の出現頻度を3回と数えたが、いずれの「中華」も同一のリンクが由来となっているため、出現頻度を1回と数えてもよい。あるいは、文書119のサイト内キーワードを「中華←大阪府,東京都,東京のお勧め店←関西,関東」として記憶しておき、「中華」の出現頻度を1回と数えてもよい。 In this embodiment, the keyword in the site of document 119 is “Chinese ← Osaka Prefecture ← Kansai”, “Chinese ← Tokyo ← Kanto”, and “Chinese ← Tokyo recommended shops”. However, since all “Chinese Chinese” are derived from the same link, the appearance frequency may be counted as one. Alternatively, the keyword in the site of the document 119 may be stored as “Chinese ← Osaka Prefecture, Tokyo, Tokyo recommended store ← Kansai, Kanto”, and the appearance frequency of “Chinese” may be counted as one time.
[第3の実施例]
次に、本発明の第3の実施例を、図面を参照して説明する。この第3の実施例は、本発明の第3の実施の形態に対応するものである。本実施例は第1の実施例と同様に、図9に示した第3の実施の形態のデータ処理装置9をパーソナルコンピュータとし、記憶装置8を磁気ディスク記憶装置とした構成であるが、パーソナルコンピュータの中央演算装置が、図9に示した文書ベクトル作成手段17、類似度計算手段18としても機能する点で第1の実施例と異なる。また、磁気ディスク記憶装置には、図9に示した文書ベクトル記憶部24、カテゴリ条件記憶部25、および分類結果記憶部26も記憶される点で第1の実施例と異なる。
[Third embodiment]
Next, a third embodiment of the present invention will be described with reference to the drawings. This third example corresponds to the third embodiment of the present invention. As in the first example, this example has a configuration in which the
次に、本実施の形態の動作について説明する。まず、ハイパーテキストアクセス手段(図9の11)はハイパーテキストデータベース(図9の21)に格納されている各文書を読み出し、文書クラスタ情報取得手段(図9の12)に渡す。
ここで、ハイパーテキストデータベース21に格納されているハイパーテキスト群の一例を図14に示す。文書クラスタ情報取得手段12は、与えられた文書からリンク情報を抽出し、図15に示すような文書参照関係表を生成する。
Next, the operation of the present embodiment will be described. First, the hypertext access means (11 in FIG. 9) reads each document stored in the hypertext database (21 in FIG. 9) and passes it to the document cluster information acquisition means (12 in FIG. 9).
An example of a hypertext group stored in the
次に、文書クラスタ情報取得手段12は、対象指定手段(図9の13)に指定された「サイトのトップページの条件」と「同一サイトに含まれる文書の条件」に基づき、図16に示すような文書クラスタ表を生成する。なお、本実施例では、「サイトのトップページの条件」として「文書のURLが『http://ドメイン名/』、または『http://ドメイン名/index.html』であるもの」とし、「同一サイトに含まれる文書の条件」として、「ドメイン名が同じ」としている。 Next, the document cluster information acquisition means 12 is shown in FIG. 16 based on the “site top page condition” and the “document condition included in the same site” designated by the target designation means (13 in FIG. 9). A document cluster table like this is generated. In this embodiment, “the condition of the top page of the site” is “the URL of the document is“ http: // domain name / ”or“ http: // domain name / index.html ””, “The domain name is the same” as the “condition of documents included in the same site”.
次に、文書キーワード決定手段(図9の14)は、文書クラスタ情報取得手段12が生成した文書参照関係表と文書クラスタ表を参照して、各サイトのトップページに対してサイト外からはられているリンクのアンカー文字列の系列をサイト外キーワードとし、各クラスタ内文書について、同一クラスタ内文書のリンクを遡って得られるアンカー文字列の系列をサイト内キーワードとして文書キーワード記憶部(図9の22)に記憶させる。得られる文書キーワードの例を図17に示す。 Next, the document keyword determination means (14 in FIG. 9) refers to the document reference relation table and the document cluster table generated by the document cluster information acquisition means 12 and is applied to the top page of each site from outside the site. 9 is used as a keyword outside the site, and for each intra-cluster document, a series of anchor character strings obtained by tracing back the links of the documents in the same cluster as the intra-site keyword. 22). An example of the obtained document keyword is shown in FIG.
なお、本実施例では、同一サイトに含まれている文書のサイト外キーワードは、そのサイトのトップページのサイト外キーワードと同じにする。したがって、図14の文書112〜文書119のサイト外キーワードは文書111のサイト外キーワードと同一の「グルメ情報,レストラン検索」となる。 In this embodiment, the off-site keyword of documents included in the same site is the same as the off-site keyword of the top page of the site. Accordingly, the off-site keywords of the document 112 to the document 119 in FIG. 14 are the same “gourmet information, restaurant search” as the off-site keyword of the document 111.
また、リンクを遡る際に、一度遡った文書を覚えておき、ループして遡らないようにする。例えば、図14の文書116に対するリンクを単純に遡ると「東京都←関東」というアンカー文字列の系列のほかに、「東京都←関東←戻る←東京都←関東」、「東京都←関東←戻る←東京都←関東←戻る←東京都・・・」のようにループによって無数のアンカー文字列が生成されてしまう。そこで、一度遡った文書を同じアンカー文字列の系列内で二度遡らないようにする。したがって、文書116のサイト内キーワードは「戻る」を含まないことになる。 Also, when going back to the link, remember the document that went back once, so that it doesn't go back in a loop. For example, when the link to the document 116 in FIG. 14 is simply traced back, in addition to the anchor character string series “Tokyo → Kanto”, “Tokyo → Kanto ← Back ← Tokyo → Kanto”, “Tokyo → Kanto ← An infinite number of anchor strings are generated by a loop like "Back ← Tokyo ← Kanto ← Back ← Tokyo ...". Therefore, a document that has been traced once is not traced twice within the same anchor character string series. Therefore, the keyword in the site of the document 116 does not include “return”.
また、本実施例では、トップページでないページへのサイト外からのリンクを一つだけ遡ってサイト内キーワードに含めるようにしている。したがって、文書116のサイト内キーワードには「東京都←関東」と「東京都のお勧め店」の2種類になる。図14の文書119についても同様の方法で登録するが、別のアンカー文字列の系列で同じ文書を遡る場合は、それぞれ別のキーワードとして登録する。 Further, in this embodiment, only one link from outside the site to a page that is not the top page is traced back and included in the in-site keyword. Therefore, there are two types of keywords in the site of the document 116, “Tokyo ← Kanto” and “Tokyo recommended shops”. The document 119 in FIG. 14 is registered in the same manner, but when the same document is traced back in another anchor character string series, it is registered as a different keyword.
すなわち、「中華←東京都←関東」と「中華←大阪府←関西」はどちらも文書111に遡るアンカー文字列の系列であるが、別の系列であるため両方をサイト内キーワードとして記憶する。ここでも、「中華←東京都←関東←戻る←東京都←関東」というアンカー文字列の系列などが考えられるが、これは同一系列内で文書113と文書116をそれぞれ2回遡っているためサイト内キーワードとしては記憶しない。また、トップページでないページへのサイト外からのリンクを一つだけ遡ってサイト内キーワードに含めるようにしているため、「中華←東京のお勧め店」も文書119のサイト内キーワードとして記憶される。 In other words, “Chinese ← Tokyo → Kanto” and “Chinese ← Osaka Prefecture ← Kansai” are both anchor character string sequences that go back to the document 111, but both are stored as in-site keywords. In this case as well, an anchor character string such as “Chinese ← Tokyo ← Kanto ← Back ← Tokyo ← Kanto” can be considered, but this is because the document 113 and the document 116 are traced back twice in the same series. It is not stored as an internal keyword. In addition, since only one link from outside the site to a page that is not the top page is included in the site keyword, “Chinese ← Tokyo recommended store” is also stored as the site keyword of document 119. .
次に、文書ベクトル作成手段17は、各文書について、どのキーワードがどの部分(サイト外キーワードか、サイト内キーワードか、タイトルか、本文か等)に何回出現したかを文書ベクトルとして文書ベクトル記憶部24に記憶させる。
Next, the document vector creating means 17 stores the document vector as a document vector indicating how many times each keyword appears in which part (external keyword, in-site keyword, title, text, etc.). Store in the
そして、類似度計算手段18が文書ベクトル記憶部24に格納されている各文書の文書ベクトルについて、カテゴリ条件記憶部25に格納されている各カテゴリの特徴ベクトルとの余弦を計算し、その結果を分類記憶部26に格納する。
Then, the similarity calculation means 18 calculates the cosine of the feature vector of each category stored in the category
[第4の実施例]
次に、本発明の第4の実施例を、図面を参照して説明する。この第4の実施例は、本発明の第4の実施の形態に対応するものである。本実施例は図11に示した第4の実施の形態のデータ処理装置9をパーソナルコンピュータで構成し、記憶装置10を磁気ディスク記憶装置で構成した点は第2の実施例と同様であるが、パーソナルコンピュータの中央演算装置が、インデックス検索手段としてしか機能しない点で第2の実施例と異なる。また、磁気ディスク記憶装置には、ハイパーテキストデータベース、文書キーワード記憶部が記憶されない代わりに、図11に示した第2のインデックス記憶部27が記憶される点で第2の実施例と異なる。
[Fourth embodiment]
Next, a fourth embodiment of the present invention will be described with reference to the drawings. This fourth example corresponds to the fourth embodiment of the present invention. This embodiment is the same as the second embodiment in that the
図11に示した第1のインデックス記憶部23に記憶されている文書のメタ情報から作成されたインデックスの一例を図18に示す。図18には、キーワードと出現する文書、および出現頻度が記録されており、例えば、キーワード「ホテル」で登録されている文書は文書211、文書212、文書214で、それぞれキーワード「ホテル」の出現頻度は3回、1回、5回であることが分かる。
FIG. 18 shows an example of an index created from document meta information stored in the first
また、第2のインデックス記憶部27に記憶されている文書の本文から作成されたインデックスの一例を図19に示す。第2のインデックスの形式も第1のインデックスと同様で、キーワードと出現する文書、および出現頻度が記録されており、例えば、キーワード「東京」で登録されている文書は文書212、文書213、文書214、文書217、文書218、文書219で、それぞれキーワード「東京」の出現頻度は1回、4回、6回、8回、1回、2回であることが分かる。
An example of an index created from the text of the document stored in the second
今、キーボードから検索条件「奈良グルメ」が入力されたとする。すると、インデックス検索手段16は、検索条件をスペースや「の」で区切り、あるいは形態素解析を行うことによって、「奈良」と「グルメ」のキーワードに分割する。 Assume that the search condition “Nara gourmet” is entered from the keyboard. Then, the index search means 16 divides the search condition into a keyword of “Nara” and “Gourmet” by dividing the search condition by a space or “no” or by performing morphological analysis.
次に、インデックス検索手段16は、キーワード「奈良」と「グルメ」のうち、第1のインデックス記憶部23に登録された語がないか調べる。登録されていれば、そのキーワードとその出現頻度およびキーワードが現れた文書を検索結果候補として記憶しておく。第1のインデックスが図18の場合、「グルメ」が登録されているので、文書211、文書212、文書213、文書214が検索結果候補となる。
Next, the index search means 16 checks whether there is a word registered in the first
次に、インデックス検索手段16は、検索結果候補となった文書のうち、第2のインデックス記憶部27に、残りの「奈良」が登録されている文書と、キーワードの出現頻度を検索結果リストに追加登録する。第2のインデックスが図19の場合、検索結果候補の文書211、文書212、文書213、文書214のうち、「奈良」は文書213にだけ現れているため、文書213が検索結果リストに登録される。
Next, the
次に、インデックス検索手段16は、検索結果リストをキーワードの出現頻度でソートし、ディスプレイに検索結果を表示する。この場合、検索結果として出力されるのは検索結果リストに登録されている文書213である。 Next, the index search means 16 sorts the search result list by the appearance frequency of the keywords, and displays the search results on the display. In this case, the document 213 registered in the search result list is output as the search result.
また、キーボードから検索条件「大阪の図書館」が入力されたとする。すると、インデックス検索手段16は、検索キーワードをスペースや「の」で区切り、あるいは形態素解析を行うことによって、「大阪」と「図書館」のキーワードに分割する。 Also assume that the search condition “Osaka Library” is entered from the keyboard. Then, the index search means 16 divides the search keyword into a keyword “Osaka” and “library” by dividing the search keyword by a space or “no” or by performing a morphological analysis.
次に、インデックス検索手段16は、キーワード「大阪」と「図書館」のうち、第1のインデックス記憶部23に登録された語がないか調べる。登録されていれば、そのキーワードとその出現頻度およびキーワードが現れた文書を検索結果候補として記憶しておく。第1のインデックスが図18の場合、「図書館」が登録されている、文書215、文書216、文書217、文書218、文書219が検索結果候補となる。キーワード「図書館」の出現頻度は、それぞれ1回、5回、2回、7回、4回である。
Next, the index search means 16 checks whether there is a word registered in the first
次に、インデックス検索手段16は、検索結果候補となった文書のうち、第2のインデックス記憶部27に、残りの「大阪」が登録されている文書と、キーワードの出現頻度を検索結果リストに追加登録する。第2のインデックスが図19の場合、検索結果候補の文書215、文書216、文書217、文書218、文書219のうち、キーワード「大阪」は文書216、文書217、文書219に現れており、「大阪」の出現頻度はそれぞれ2回、4回、8回である。
Next, the
次に、インデックス検索手段16は、検索結果リストをキーワードの出現頻度でソートし、ディスプレイに検索結果を表示する。キーワード「図書館」、「大阪」の出現頻度の合計は、文書216では7回、文書217では6回、文書219では12回であるので、ディスプレイには文書219、文書216、文書217の順序で表示される。
Next, the index search means 16 sorts the search result list by the appearance frequency of the keywords, and displays the search results on the display. The total appearance frequency of the keywords “library” and “Osaka” is 7 times for the
なお、本実施例では単純にキーワードの出現頻度の合計でソートしたが、第1のキーワードインデックスでのキーワード出現頻度と、第2のキーワードインデックスでのキーワード出現頻度にそれぞれ別の重みを掛けて合計して得られるスコアを基準にソートしてもよい。 In this embodiment, the keywords are simply sorted according to the total appearance frequency of the keywords. However, the keyword appearance frequencies in the first keyword index and the keyword appearance frequencies in the second keyword index are multiplied by different weights, respectively. You may sort on the basis of the score obtained.
1、5、7 データ処理装置
2、6、8 記憶装置
3 入力手段
4 出力手段
11 ハイパーテキストアクセス手段
12 文書クラスタ情報取得手段
13 対象指定手段
14 文書キーワード決定手段
15 インデックス作成手段
16 インデックス検索手段
17 文書ベクトル作成手段
18 類似度計算手段
21 ハイパーテキストデータベース
22 文書キーワード記憶部
23 第1のインデックス記憶部
24 文書ベクトル記憶部
25 カテゴリ条件記憶部
26 分類結果記憶部
27 第2のインデックス記憶部
30 記憶媒体
31 入力装置
32 データ処理装置
33 出力装置
34 記憶装置
35 入力メモリ
36 ワークメモリ
DESCRIPTION OF
Claims (12)
同一の前記文書クラスタの複数の文書のそれぞれについて、該文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと前記文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを記憶している第1のインデックス記憶手段と、
前記複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを記憶している第2のインデックス記憶手段と、
前記キーワード条件にn個(n≧2)のキーワードが含まれる場合に、前記第1のインデックス記憶手段に記憶されている前記第1のインデックスを参照して、該n個のキーワードのうちのm個(1≦m≦n−1)のキーワードが前記第1のインデックスに含まれていることを検索したときは、前記第1のインデックスから前記m個のキーワードの出現頻度と前記m個のキーワードが現れた文書とを示す第1の検索結果を得た後、残りのn−m個のキーワードで前記第2のインデックス記憶手段に記憶されている前記第2のインデックスを参照して、前記n−m個のキーワードのうち前記第2のインデックスに含まれるキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、前記第1及び第2の検索結果を出力するインデックス検索手段と
を備えることを特徴とする文書検索装置。 In a document search apparatus that searches a document group that matches an input keyword condition from a plurality of hierarchical documents included in each of document clusters formed by a plurality of documents structured by hyperlinks ,
For each of a plurality of documents in the same document cluster, together with a word group characterizing the relationship between the document cluster, which is a keyword extracted from a series of anchor character strings obtained by tracing back a plurality of hyperlinks to the document, and the document First index storage means for storing a first index in which a document including the word group and an appearance frequency in the document are associated with each other;
A word group that characterizes the content of the document itself, which is a keyword that appears in the text of each of the plurality of documents, and a second index that associates the document that includes the word group and the appearance frequency in the document are stored. a second index storage means are,
When n (n ≧ 2) keywords are included in the keyword condition, m of the n keywords is referred to by referring to the first index stored in the first index storage means. When searching that the first index includes a number of keywords (1 ≦ m ≦ n−1) , the appearance frequency of the m keywords and the m keywords from the first index Is obtained with reference to the second index stored in the second index storage means with the remaining mn keywords, and the n index is obtained. -Obtaining a second search result indicating the appearance frequency of the keyword included in the second index among the m keywords and the document in which the keyword appears, and outputting the first and second search results Document search apparatus characterized by comprising an index search means that.
同一の前記文書クラスタの複数の文書のそれぞれについて、該文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと前記文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを記憶している第1のインデックス記憶手段と、
前記複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを記憶している第2のインデックス記憶手段と、
前記検索条件文が「の」で連結された、又はスペースで分割された、又は複合語を構成する2個のキーワードからなる場合に、前記2個のキーワードで前記第1のインデックス記憶手段に記憶されている前記第1のインデックスを参照して、該2個のキーワードの一方が前記第1のインデックスに含まれていることを検索したときは、前記第1のインデックスから前記一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第1の検索結果を得た後、もう一方のキーワードで前記第2のインデックス記憶手段に記憶されている前記第2のインデックスを参照して、前記第2のインデックスに含まれる前記もう一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、前記第1及び第2の検索結果を出力するインデックス検索手段と
を備えることを特徴とする文書検索装置。 In a document search apparatus that searches a document group that matches an input search condition sentence from a plurality of hierarchical documents included in each of document clusters formed by a plurality of documents structured by hyperlinks .
For each of a plurality of documents in the same document cluster, together with a word group characterizing the relationship between the document cluster, which is a keyword extracted from a series of anchor character strings obtained by tracing back a plurality of hyperlinks to the document, and the document First index storage means for storing a first index in which a document including the word group and an appearance frequency in the document are associated with each other;
A word group that characterizes the content of the document itself, which is a keyword that appears in the text of each of the plurality of documents, and a second index that associates the document that includes the word group and the appearance frequency in the document are stored. a second index storage means are,
The search condition statements connected by 'the', or divided by a space, or if comprising two keywords constituting the compound word, the two keywords stored in the first index storage means When it is found that one of the two keywords is included in the first index with reference to the first index, the appearance of the one keyword from the first index After obtaining the first search result indicating the frequency and the document in which the keyword appears, the second index stored in the second index storage means with the other keyword is referred to and the second index is stored. A second search result indicating the appearance frequency of the other keyword included in the index 2 and the document in which the keyword appears is obtained, and the first and second search results are obtained. Document search apparatus characterized by comprising an index search means for outputting.
前記第1のインデックス記憶手段に記憶された前記第1のインデックスから検索された第1のキーワードに関する前記第1のインデックスでの出現頻度と、前記第2のインデックス記憶手段に記憶された前記第2のインデックスから検索された第2のキーワードに関する前記第2のインデックスでの出現頻度にそれぞれ異なる重み付けをして、前記第1及び第2のキーワードがそれぞれ含まれる文書毎に、重み付けされた出現頻度の総和を算出し、その総和の値順に検索結果を出力することを特徴とする請求項1又は2記載の文書検索装置。 The index search means includes
Appearance frequency in the first index related to the first keyword retrieved from the first index stored in the first index storage means, and the second frequency stored in the second index storage means The appearance frequency in the second index relating to the second keyword retrieved from the index of the first index is weighted differently, and the weighted appearance frequency of each document including the first and second keywords is determined. 3. The document search apparatus according to claim 1 , wherein a sum is calculated and search results are output in the order of the sum .
前記データ処理装置が、同一の前記文書クラスタの複数の文書のそれぞれについて、該文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと前記文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを第1のインデックス記憶手段に登録する第1の登録ステップと、
前記データ処理装置が、前記複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを第2のインデックス記憶手段に登録する第2の登録ステップと、
前記データ処理装置が、前記キーワード条件にn個(n≧2)のキーワードが含まれる場合に、前記第1のインデックス記憶手段に登録されている前記第1のインデックスを参照して、該n個のキーワードのうちのm個(1≦m≦n−1)のキーワードが前記第1のインデックスに含まれていることを検索したときは、前記第1のインデックスから前記m個のキーワードの出現頻度と前記m個のキーワードが現れた文書とを示す第1の検索結果を得た後、残りのn−m個のキーワードで前記第2のインデックス記憶手段に登録されている前記第2のインデックスを参照して、前記n−m個のキーワードのうち前記第2のインデックスに含まれるキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、前記第1及び第2の検索結果を出力するインデックス検索ステップと
を含むことを特徴とする文書検索方法。 Document search in which a data processing device searches a document group that matches an input keyword condition from a plurality of hierarchized documents included in each of document clusters formed by a plurality of documents structured by hyperlinks . In the method
For each of a plurality of documents in the same document cluster, the data processing device includes a document cluster that is a keyword extracted from a series of anchor character strings obtained by tracing back a plurality of hyperlinks to the document, and the document. A first registration step of registering, in the first index storage means, a first index in which a document including the word group and an appearance frequency in the document are associated with a word group characterizing the relationship;
The data processing device includes a word group that characterizes the content of the document itself, which is a keyword that appears in the text of each of the plurality of documents, and a document that includes the word group and an appearance frequency in the document associated with each other. A second registration step of registering the second index in the second index storage means;
When the data processing apparatus includes n (n ≧ 2) keywords in the keyword condition , the data processing device refers to the first index registered in the first index storage unit, and the n When searching that m (1 ≦ m ≦ n−1) keywords are included in the first index, the frequency of appearance of the m keywords from the first index And the second index registered in the second index storage means with the remaining mn keywords is obtained. Referring to the mn keywords, a second search result indicating a frequency of appearance of a keyword included in the second index and a document in which the keyword appears is obtained, and the first and second keywords are obtained. Document search method characterized by comprising the index search step of outputting the second search result.
前記データ処理装置が、同一の前記文書クラスタの複数の文書のそれぞれについて、該文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと前記文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを第1のインデックス記憶手段に登録する第1の登録ステップと、
前記データ処理装置が、前記複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを第2のインデックス記憶手段に登録する第2の登録ステップと、
前記データ処理装置が、前記検索条件文が「の」で連結された、又はスペースで分割された、又は複合語を構成する2個のキーワードからなる場合に、前記2個のキーワードで前記第1のインデックス記憶手段に登録されている前記第1のインデックスを参照して、該2個のキーワードの一方が前記第1のインデックスに含まれていることを検索したときは、前記第1のインデックスから前記一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第1の検索結果を得た後、もう一方のキーワードで前記第2のインデックス記憶手段に登録されている前記第2のインデックスを参照して、前記第2のインデックスに含まれる前記もう一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、前記第1及び第2の検索結果を出力するインデックス検索ステップと
を含むことを特徴とする文書検索方法。 A document in which a data processing device searches a document group that matches an input search condition sentence from a plurality of hierarchized documents included in each of document clusters formed by a plurality of documents structured by hyperlinks. In the search method,
For each of a plurality of documents in the same document cluster, the data processing device includes a document cluster that is a keyword extracted from a series of anchor character strings obtained by tracing back a plurality of hyperlinks to the document, and the document. A first registration step of registering, in the first index storage means, a first index in which a document including the word group and an appearance frequency in the document are associated with a word group characterizing the relationship;
The data processing device includes a word group that characterizes the content of the document itself, which is a keyword that appears in the text of each of the plurality of documents, and a document that includes the word group and an appearance frequency in the document associated with each other. A second registration step of registering the second index in the second index storage means;
Wherein the data processing apparatus, the search condition statements connected by 'the', or divided by a space, or if comprising two keywords constituting the compound word, said at two keywords first When searching that one of the two keywords is included in the first index with reference to the first index registered in the index storage means, the first index After obtaining the first search result indicating the appearance frequency of the one keyword and the document in which the keyword appears, the second index registered in the second index storage means with the other keyword is obtained. Referring to the second search result indicating the frequency of appearance of the other keyword included in the second index and the document in which the keyword appears, Document search method characterized by comprising the index search step of outputting first and second search results.
前記第1のインデックス記憶手段に記憶された前記第1のインデックスから検索された第1のキーワードに関する前記第1のインデックスでの出現頻度と、前記第2のインデックス記憶手段に記憶された前記第2のインデックスから検索された第2のキーワードに関する前記第2のインデックスでの出現頻度にそれぞれ異なる重み付けをして、前記第1及び第2のキーワードがそれぞれ含まれる文書毎に、重み付けされた出現頻度の総和を算出し、その総和の値順に検索結果を出力することを特徴とする請求項6又は7記載の文書検索方法。 The index search step includes:
Appearance frequency in the first index related to the first keyword retrieved from the first index stored in the first index storage means, and the second frequency stored in the second index storage means The appearance frequency in the second index relating to the second keyword retrieved from the index of the first index is weighted differently, and the weighted appearance frequency of each document including the first and second keywords is determined. 8. The document search method according to claim 6 , wherein a sum is calculated and search results are output in the order of the sum .
前記コンピュータに、
同一の前記文書クラスタの複数の文書のそれぞれについて、該文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと前記文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを第1のインデックス記憶手段に登録する第1の登録ステップと、
前記複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを第2のインデックス記憶手段に登録する第2の登録ステップと、
前記キーワード条件にn個(n≧2)のキーワードが含まれる場合に、前記第1のインデックス記憶手段に登録されている前記第1のインデックスを参照して、該n個のキーワードのうちのm個(1≦m≦n−1)のキーワードが前記第1のインデックスに含まれていることを検索したときは、前記第1のインデックスから前記m個のキーワードの出現頻度と前記m個のキーワードが現れた文書とを示す第1の検索結果を得た後、残りのn−m個のキーワードで前記第2のインデックス記憶手段に登録されている前記第2のインデックスを参照して、前記n−m個のキーワードのうち前記第2のインデックスに含まれるキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、前記第1及び第2の検索結果を出力するインデックス検索ステップと
を実行させることを特徴とするプログラム。 Allows a computer to realize a function of searching a document group that matches an input keyword condition from a plurality of hierarchical documents included in each of document clusters formed by a plurality of documents structured by hyperlinks . In the document search program for
In the computer ,
For each of a plurality of documents in the same document cluster, together with a word group characterizing the relationship between the document cluster, which is a keyword extracted from a series of anchor character strings obtained by tracing back a plurality of hyperlinks to the document, and the document A first registration step of registering, in the first index storage means, a first index in which a document including the word group and an appearance frequency in the document are associated with each other;
In addition to a word group that characterizes the content of the document itself, which is a keyword that appears in the text of each of the plurality of documents, a second index that associates the document that includes the word group and the appearance frequency in the document is a second index. A second registration step of registering in the index storage means;
When n (n ≧ 2) keywords are included in the keyword condition, m of the n keywords is referred to by referring to the first index registered in the first index storage means. When searching that the first index includes a number of keywords (1 ≦ m ≦ n−1) , the appearance frequency of the m keywords and the m keywords from the first index Is obtained by referring to the second index registered in the second index storage means with the remaining n−m keywords. -Obtaining a second search result indicating the appearance frequency of the keyword included in the second index among the m keywords and the document in which the keyword appears, and outputting the first and second search results And the index search step that
A program characterized by having executed .
前記コンピュータに、
同一の前記文書クラスタの複数の文書のそれぞれについて、該文書へのハイパーリンクを複数段遡って得られるアンカー文字列の系列から抽出したキーワードである文書クラスタと前記文書との関係を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度とが対応付けられた第1のインデックスを第1のインデックス記憶手段に登録する第1の登録ステップと、
前記複数の文書のそれぞれの本文中に出現したキーワードである文書自体の内容を特徴付ける単語群と共に、その単語群を含む文書及びその文書中の出現頻度が対応付けられた第2のインデックスを第2のインデックス記憶手段に登録する第2の登録ステップと、
前記検索条件文が「の」で連結された、又はスペースで分割された、又は複合語を構成する2個のキーワードからなる場合に、前記2個のキーワードで前記第1のインデックス記憶手段に登録されている前記第1のインデックスを参照して、該2個のキーワードの一方が前記第1のインデックスに含まれていることを検索したときは、前記第1のインデックスから前記一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第1の検索結果を得た後、もう一方のキーワードで前記第2のインデックス記憶手段に登録されている前記第2のインデックスを参照して、前記第2のインデックスに含まれる前記もう一方のキーワードの出現頻度とそのキーワードが現れた文書とを示す第2の検索結果を得て、前記第1及び第2の検索結果を出力するインデックス検索ステップと
を実行させることを特徴とするプログラム。 The computer has a function to search a document group that matches the input search condition sentence from a plurality of hierarchical documents included in each of document clusters formed by a plurality of documents structured by hyperlinks. In the document search program for
In the computer ,
For each of a plurality of documents in the same document cluster, together with a word group characterizing the relationship between the document cluster, which is a keyword extracted from a series of anchor character strings obtained by tracing back a plurality of hyperlinks to the document, and the document A first registration step of registering, in the first index storage means, a first index in which a document including the word group and an appearance frequency in the document are associated with each other;
In addition to a word group that characterizes the content of the document itself, which is a keyword that appears in the text of each of the plurality of documents, a second index that associates the document that includes the word group and the appearance frequency in the document is a second index. A second registration step of registering in the index storage means;
The search condition statements connected by 'the', or divided by a space, or if comprising two keywords constituting the compound word, registered in the first index storage means by the two keywords When it is found that one of the two keywords is included in the first index with reference to the first index, the appearance of the one keyword from the first index After obtaining the first search result indicating the frequency and the document in which the keyword appears, the second index registered in the second index storage means with the other keyword is referred to and the second index is stored. A second search result indicating the appearance frequency of the other keyword included in the index 2 and the document in which the keyword appears is obtained, and the first and second search results are obtained. And the index search step of outputting
A program characterized by having executed .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008287280A JP4826622B2 (en) | 2008-11-10 | 2008-11-10 | Document search apparatus, search method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008287280A JP4826622B2 (en) | 2008-11-10 | 2008-11-10 | Document search apparatus, search method and program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002236195A Division JP4423841B2 (en) | 2002-08-14 | 2002-08-14 | Keyword determination device, determination method, document search device, search method, document classification device, classification method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009032292A JP2009032292A (en) | 2009-02-12 |
JP4826622B2 true JP4826622B2 (en) | 2011-11-30 |
Family
ID=40402668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008287280A Expired - Fee Related JP4826622B2 (en) | 2008-11-10 | 2008-11-10 | Document search apparatus, search method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4826622B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5592747B2 (en) * | 2010-10-12 | 2014-09-17 | 株式会社日立ソリューションズ | File search device and file search program |
CN103488648B (en) * | 2012-06-13 | 2018-03-20 | 阿里巴巴集团控股有限公司 | A kind of multilingual mixed index method and system |
JP6100741B2 (en) * | 2014-08-28 | 2017-03-22 | ヤフー株式会社 | Extraction apparatus, extraction method and extraction program |
CN112597180A (en) * | 2020-11-20 | 2021-04-02 | 深圳市世强元件网络有限公司 | Electronic component selling platform service item searching method and device and computer equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4463925B2 (en) * | 1999-03-02 | 2010-05-19 | キヤノン株式会社 | Index generating apparatus and method, and storage medium |
JP2000339323A (en) * | 1999-05-25 | 2000-12-08 | Nippon Telegr & Teleph Corp <Ntt> | Method, device and system for retrieving document and recording medium |
JP3655495B2 (en) * | 1999-05-25 | 2005-06-02 | 日本電信電話株式会社 | Information retrieval method and apparatus and recording medium on which information retrieval program is recorded |
JP2001290843A (en) * | 2000-02-04 | 2001-10-19 | Fujitsu Ltd | Device and method for document retrieval, document retrieving program, and recording medium having the same program recorded |
JP3578045B2 (en) * | 2000-05-15 | 2004-10-20 | 日本電信電話株式会社 | Full-text search method and apparatus, and storage medium storing full-text search program |
-
2008
- 2008-11-10 JP JP2008287280A patent/JP4826622B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009032292A (en) | 2009-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Efthymiou et al. | Matching web tables with knowledge base entities: from entity lookups to entity embeddings | |
CN108415902B (en) | Named entity linking method based on search engine | |
CA2796392C (en) | Associative memory | |
JP4637181B2 (en) | Displaying search results based on document structure | |
US9262527B2 (en) | Optimized ontology based internet search systems and methods | |
CN103823824B (en) | A kind of method and system that text classification corpus is built automatically by the Internet | |
US8655648B2 (en) | Identifying topically-related phrases in a browsing sequence | |
JP4521343B2 (en) | Document processing apparatus and document processing method | |
US20080282151A1 (en) | Document segmentation based on visual gaps | |
CN103064956A (en) | Method, computing system and computer-readable storage media for searching electric contents | |
CN110443571A (en) | The method, device and equipment of knowledge based map progress resume assessment | |
US20080040342A1 (en) | Data processing apparatus and methods | |
US20110302166A1 (en) | Search system, search method, and program | |
JP2008538019A (en) | System and method for generating linked classification structures | |
JP2005122295A (en) | Relationship figure creation program, relationship figure creation method, and relationship figure generation device | |
JP4200933B2 (en) | Information retrieval device | |
JP4423841B2 (en) | Keyword determination device, determination method, document search device, search method, document classification device, classification method, and program | |
JP4826622B2 (en) | Document search apparatus, search method and program | |
JP2007047974A (en) | Information extraction device and information extraction method | |
US20120317141A1 (en) | System and method for ordering of semantic sub-keys | |
US9875298B2 (en) | Automatic generation of a search query | |
JP6533876B2 (en) | Product information display system, product information display method, and program | |
US20120317103A1 (en) | Ranking data utilizing multiple semantic keys in a search query | |
JP2008197952A (en) | Text segmentation method, its device, its program and computer readable recording medium | |
CN109213830B (en) | Document retrieval system for professional technical documents |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20081110 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110531 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110627 |
|
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: 20110816 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110829 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140922 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |