[go: up one dir, main page]

JP2015090528A - Device and method for determining continuous excerpts - Google Patents

Device and method for determining continuous excerpts Download PDF

Info

Publication number
JP2015090528A
JP2015090528A JP2013229439A JP2013229439A JP2015090528A JP 2015090528 A JP2015090528 A JP 2015090528A JP 2013229439 A JP2013229439 A JP 2013229439A JP 2013229439 A JP2013229439 A JP 2013229439A JP 2015090528 A JP2015090528 A JP 2015090528A
Authority
JP
Japan
Prior art keywords
digest
document
character string
documents
continuous
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.)
Granted
Application number
JP2013229439A
Other languages
Japanese (ja)
Other versions
JP5906229B2 (en
Inventor
要 船越
Kaname Funakoshi
船越  要
鷲崎 誠司
Seiji Washisaki
誠司 鷲崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Inc
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2013229439A priority Critical patent/JP5906229B2/en
Publication of JP2015090528A publication Critical patent/JP2015090528A/en
Application granted granted Critical
Publication of JP5906229B2 publication Critical patent/JP5906229B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect that a plurality of documents are continuously excerpted.SOLUTION: The present invention comprises: cutting a character string segment out of one sentence of an input document; determining a start point of the character string segment; making a digest, in which a character string corresponding to a character string segment for each predetermined number of characters from the start point has been converted into a hash function, slide by a predetermined number of characters, and storing a document ID and a digest group of the digest in a digest DB; reading out the digest from the digest DB; and determining that a plurality of documents are continuously excerpted, when excerpting, in a character string segment separated by a predetermined window size w of the digest, a document having a different digest.

Description

本発明は、連続引用判定装置及び方法に係り、特に、電子化された文書(例えば、Web上のブログ)が他の複数の文書を切れ目なく引用していることを判定するための連続引用判定装置及び方法に関する。   The present invention relates to a continuous citation determination apparatus and method, and in particular, a continuous citation determination for determining that an electronic document (for example, a blog on the Web) quotes other documents without interruption. The present invention relates to an apparatus and a method.

他の文書からの引用を判定する手法として、引用分析が用いられてきた。   Citation analysis has been used as a technique for determining citations from other documents.

特許文献1では、文書を引用可能なセグメントに分割し、それぞれのセグメントについてダイジェストを生成して連結した文字列を作成し、原典となる文書のDB内に保存された文書から同様にして得られた文字列と比較することで、当該原典からの引用を判定している。   In Patent Document 1, a document is divided into segments that can be cited, a digest is generated for each segment, a concatenated character string is created, and similarly obtained from a document stored in the original document DB. By comparing with the character string, the quotation from the original source is determined.

また、特許文献2では、ネットワークパケットの異常を検出するため、スライディングウィンドウと呼ばれる方法を使用している。これは、データのシーケンスに対して、セグメント分割するのではなく、一定のデータ長をウィンドウとし、移動する(スライドする)ウィンドウ内のデータに対する関数値から異常を検出するものである。これを文書に適用することで文書内の文字列をデータのシーケンスと見做し、一定のサイズのウィンドウを文書の先頭から移動させることで、ウィンドウごとの異常値を発見することができる。   In Patent Document 2, a method called a sliding window is used to detect an abnormality of a network packet. This is not to segment the data sequence, but to detect abnormalities from function values for data in a moving (sliding) window with a fixed data length as a window. By applying this to a document, a character string in the document is regarded as a data sequence, and an abnormal value for each window can be found by moving a window of a certain size from the top of the document.

また、特許文献3では、2つの文書間の類似度に基づいて引用判定を行っている。   In Patent Document 3, the citation determination is performed based on the similarity between two documents.

特開2010−182238号公報JP 2010-182238 A 特開2009−152712号公報JP 2009-152712 A 特開2009−205674号公報JP 2009-205694 A

図1、図2を例に従来の問題点について説明する。   Conventional problems will be described with reference to FIGS.

図1に示すような複数の文書の断片によって構成されている文書に対して引用判定を行うことを考える。図2に示すように、1つの断片は日本語で50文字程度であり、断片は文によっては分断されず、ランダムな位置で分断され、接続されている。また、原典の仮名が漢字に変換されていることがある。例えば、図2に示すように、原典(引用元)では「顧みて見る」であるが、同図の例では「顧みてみる」として一文字「見」が「み」と変換されて引用されている。このような文書では、文章を一部に着目すれば意味は通るが、全体では意味が通らないものの、キーワード検索でヒットしてしまう。   Consider a case in which citation determination is performed on a document composed of a plurality of document fragments as shown in FIG. As shown in FIG. 2, one fragment is about 50 characters in Japanese, and the fragment is not divided depending on the sentence but is divided and connected at random positions. In addition, the original kana may be converted to kanji. For example, as shown in FIG. 2, in the original (quoting source), it is “Looking back”, but in the example in the figure, the single character “Looking” is quoted as “Looking” as “Looking back”. Yes. In such a document, if a part of the sentence is focused, the meaning will pass, but the whole will not make sense, but it will be hit by a keyword search.

上記の特許文献1の方法を用いることで、明確にセグメント分割可能な文書に対しては有効に働くが、
(1)本発明が対象とするような、文の区切りを明らかに指定できないような文書ではセグメント分割が行えない;
(2)比較的短い文字列単位で引用されている場合には、引用されたことを判定しにくい;
という問題がある。
By using the method of Patent Document 1 above, it works effectively for documents that can be clearly segmented,
(1) Segmentation cannot be performed on a document that cannot clearly specify sentence breaks, such as those targeted by the present invention;
(2) When it is quoted in a relatively short character string unit, it is difficult to determine that it has been quoted;
There is a problem.

ここに、特許文献2のスライディングウィンドウを導入することで、文書内での任意の区間でダイジェストを作成することができ、文の区切りが明らかでない文書に対しても引用判定が可能となる。但し、以下の問題が残る。   Here, by introducing the sliding window of Patent Document 2, it is possible to create a digest in an arbitrary section in the document, and it is possible to make a citation determination even for a document where the sentence break is not clear. However, the following problems remain.

(1)適切なスライディングウィンドウの起点の選択基準が不明確である。   (1) The criteria for selecting an appropriate sliding window starting point is unclear.

(2)複数の文書が連続して引用されていることの判定が行えない。   (2) It cannot be determined that a plurality of documents are cited continuously.

(3)文書内に微少な修正が施されている時の判定が行えない。   (3) The determination cannot be made when a minute correction is made in the document.

(4)スライディングウィンドウ方式を使用すると、文書をセグメント分割する場合と比較して、ダイジェストを作成する区間数が増加するため、そのままダイジェストを作成すると、ダイジェストを保存するDBのサイズが爆発的に増大する。   (4) If the sliding window method is used, the number of sections in which the digest is created increases compared to the case where the document is segmented. Therefore, if the digest is created as it is, the size of the DB storing the digest will explode. To do.

(5)複数文書を切れ目なく引用している文書を判定することができない。   (5) It is not possible to determine a document that cites a plurality of documents seamlessly.

また、特許文献3の方法では、複数の文書の引用を想定していないため、複数の文書の断片によって構成される文書の引用判定は行えない。   In addition, since the method of Patent Document 3 does not assume citation of a plurality of documents, it cannot perform citation determination of a document composed of a plurality of document fragments.

本発明は、上記の点に鑑みなされたもので、複数文書が連続して引用されていることが検出可能な連続引用判定装置及び方法を提供することを目的とする。   The present invention has been made in view of the above points, and an object thereof is to provide a continuous citation determination apparatus and method capable of detecting that a plurality of documents are continuously cited.

一態様によれば、複数の文書の連続引用を判定するための連続引用判定装置であって、
入力された文書の1つの文章から文字列区間を切り出し、該文字列区間の起点を決定し、該起点から一定文字数毎の文字列区間に対する文字列をハッシュ関数により変換したダイジェストを所定の文字数分スライドさせて該ダイジェストの文書ID及びダイジェスト群をダイジェストDBに格納するダイジェスト計算手段と、
前記ダイジェストDBから前記ダイジェストを読み出し、該ダイジェストの所定のウィンドウサイズw分だけ離れた文字列区間にダイジェストが異なる文書を引用している場合に、複数文書が連続して引用されているものと判断する引用判定手段と、
を有する連続引用判定装置を提供する。
According to one aspect, a continuous citation determination apparatus for determining continuous citations of a plurality of documents,
A character string section is cut out from one sentence of the input document, the starting point of the character string section is determined, and a digest obtained by converting a character string for the character string section for each fixed number of characters from the starting point by a hash function is obtained for a predetermined number of characters. Digest calculation means for sliding and storing the digest document ID and digest group in the digest DB;
When the digest is read from the digest DB and a document having different digests is cited in a character string section separated by a predetermined window size w of the digest, it is determined that a plurality of documents are cited continuously. A citation determination means,
A continuous citation determination device is provided.

一態様によれば、複数文書が連続して引用されていることを検出することが可能であるため、正当な引用であれば、通常は引用と他の文が交互に出現するため、引用が連続していることを検出することで、正当な引用をスパムとして誤検出する危険性を低下させることができる。   According to one aspect, it is possible to detect that a plurality of documents are cited continuously, so if a citation is valid, citations and other sentences usually appear alternately, so By detecting that it is continuous, it is possible to reduce the risk of false detection of legitimate citations as spam.

引用判定の対象文書の例である。It is an example of the target document of quotation determination. 対象文書の断片の例である。It is an example of a fragment of the target document. 本発明の基本的な考え方を示す図である。It is a figure which shows the fundamental view of this invention. 本発明の一実施の形態におけるダイジェスト作成例である。It is an example of digest creation in one embodiment of the present invention. 本発明の一実施の形態における連続引用判定装置の構成図である。It is a block diagram of the continuous quotation determination apparatus in one embodiment of this invention. 本発明の一実施の形態における連続引用判定装置の全体のフローチャートである。It is a flowchart of the whole continuous quotation determination apparatus in one embodiment of this invention. 本発明の一実施の形態におけるダイジェストDBの例である。It is an example of digest DB in one embodiment of this invention. 本発明の一実施の形態におけるダイジェスト計算部の処理のフローチャートである。It is a flowchart of the process of the digest calculation part in one embodiment of this invention. 本発明の一実施の形態における単一文書のダイジェスト計算のアルゴリズムである。It is the algorithm of the digest calculation of the single document in one embodiment of this invention. 本発明の一実施の形態における単一文書のダイジェスト計算のフローチャート(S230の詳細)である。It is a flowchart (detail of S230) of the digest calculation of the single document in one embodiment of this invention. 本発明の一実施の形態における引用判定部のフローチャートである。It is a flowchart of the quotation determination part in one embodiment of this invention. 本発明の一実施の形態における複数文書が連続して引用されていることの判定の例である。It is an example of determination that a plurality of documents are cited continuously in an embodiment of the present invention. 本発明の一実施の形態における照合テーブルの例である。It is an example of the collation table in one embodiment of this invention. 本発明の一実施の形態における形態素区切りを用いるときの連続引用判定のためのダイジェストDBの例である。It is an example of digest DB for continuous quotation determination when using morpheme division | segmentation in one embodiment of this invention. 本発明の一実施の形態における形態素区切りの場合の照合テーブル(連用引用で利用)例である。It is an example of a collation table (used in continuous citation) in the case of morpheme separation in one embodiment of the present invention.

以下、図面と共に本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

最初に、本明細書に用いられる用語について説明する。   First, terms used in this specification will be described.

・ダイジェスト:ある文字列が与えられたとき、その文字列をハッシュ関数によって短いバイト数(またはビット数)に変換したもの。   -Digest: When a certain character string is given, the character string is converted into a short number of bytes (or number of bits) by a hash function.

・ダイジェストサイズ:上記の短いバイト数。   • Digest size: The above short byte count.

・一致するダイジェスト:1つの文書に含まれる多くの文字列区間それぞれにダイジェストが生成されるが、ある文書から生成されるダイジェスト群の中に含まれ、他の文書のダイジェスト群の中にも出てくるダイジェスト。   -Matching digest: A digest is generated for each of many character string sections included in one document, but it is included in a digest group generated from one document and appears in the digest group of another document. The digest that comes.

・一致するダイジェスト数:2つのダイジェスト群の中で、一致するダイジェストの組の数。   -Number of matching digests: Number of sets of matching digests in the two digest groups.

本発明の概要を示す。   The outline | summary of this invention is shown.

図3は、本発明の基本的な考え方を示す。   FIG. 3 shows the basic idea of the present invention.

引用元A,B,Cの文書から引用先において、引用元の文書A,B,Cの一部を取り出してある文書を作成しているとする。   Assume that a document in which a part of the documents A, B, and C of the citation source is extracted from the documents of the citation sources A, B, and C is created.

既存手法では、文単位でセグメント分割してダイジェスト集合を作り、比較し、一致すれば同一の文であると判断する。しかし、引用先の文書が文の体をなしていないときは、特許文献1の技術によるセグメント分割ができない。   In the existing method, a digest set is created by segmenting in sentence units, compared, and if they match, it is determined that they are the same sentence. However, when the cited document does not form a sentence, segmentation by the technique of Patent Document 1 cannot be performed.

これに対し、本発明では、一組の文書の対について引用分析するのではなく、スライディングウィンドウを使用する際に、ある1つの文書が他の複数の文書と同一のダイジェストを持っている文字列区間数の割合を用いる。また、他の文書と一致している文字列区間数の全体における割合によって引用を判定する。   On the other hand, in the present invention, when a sliding window is used instead of a citation analysis for a pair of documents, a character string in which one document has the same digest as other documents is used. The ratio of the number of sections is used. Further, the citation is determined based on the ratio of the total number of character string sections that match other documents.

本発明では、文書をより詳細な文字列区間に分割して、文字単位や形態素区切りを用いて起点を設定し、各起点から一定文字数ごとの文字列区間に対するダイジェストを作成する。図4に1つの文章から文字列区間を切り出し、ダイジェストを生成する例を示す。ここでは、文字列間の起点は1文字単位でずらすこととし、文字数は20文字とした。また、ダイジェストは文字列をUTF-8で表現したときのMD5ハッシュ値(非特許文献1:The MD5 Message-Digest Algorithm. http://tools.ietf.org/html/rfc1321)の上位32ビットの0からFまでの16進表現(例えば、"c595")を用いた例である。   In the present invention, a document is divided into more detailed character string sections, a starting point is set using character units and morpheme breaks, and a digest for a character string section for each predetermined number of characters is created from each starting point. FIG. 4 shows an example in which a character string section is cut out from one sentence and a digest is generated. Here, the starting point between character strings is shifted in units of one character, and the number of characters is 20. The digest is the upper 32 bits of the MD5 hash value (Non-Patent Document 1: The MD5 Message-Digest Algorithm. Http://tools.ietf.org/html/rfc1321) when the character string is expressed in UTF-8. This is an example using a hexadecimal representation from 0 to F (for example, “c595”).

このようにして作られたダイジェストを、順引き及び逆引きテーブルとしてダイジェストDBに保管する。   The digest created in this way is stored in the digest DB as a forward and reverse lookup table.

引用分析は、ダイジェストDBからダイジェストと当該ダイジェストに対応する文書IDを読み出して、所定のウィンドウサイズの長さだけずれた位置に分かれて複数の文書と共通のダイジェストを検出し、それを複数の文書が連続して引用されていると判定する。   In the citation analysis, the digest and the document ID corresponding to the digest are read from the digest DB, divided into positions that are shifted by the length of a predetermined window size, and a digest that is common to multiple documents is detected, and the multiple documents are detected. Is determined to be cited continuously.

以下、具体的に説明する。   This will be specifically described below.

図5は、本発明の一実施の形態における連続引用判定装置の構成を示す。   FIG. 5 shows the configuration of the continuous citation determination apparatus in one embodiment of the present invention.

同図に示す連続引用判定装置100は、ダイジェスト計算部110、引用判定部120、ダイジェストサイズ計算部130、ダイジェストサイズ選択テーブル140、ダイジェストDB150を有する。   The continuous citation determination apparatus 100 shown in the figure includes a digest calculation unit 110, a citation determination unit 120, a digest size calculation unit 130, a digest size selection table 140, and a digest DB 150.

図6は、本発明の一実施の形態における連続引用判定装置の全体の処理のフローチャートである。   FIG. 6 is a flowchart of the overall processing of the continuous citation determination apparatus according to the embodiment of the present invention.

ステップ100) ダイジェストサイズ計算部130において、想定される最大の文書数、引用判定されるための一致数(k)、誤検出確率の最大値を入力とし、ダイジェストサイズの計算を行う。ダイジェストサイズは大きくすると通常は巨大となる一方、小さくすると誤検出が発生しやすくなるため、ダイジェストサイズを抑えながら、誤検出が最小となるダイジェストサイズを求める必要がある。ダイジェストサイズ計算部130は、文書数(想定される最大の文書数)、引用判定するための一致数(k)及び誤検出確率の最大値(許容される誤検出確率(例えば、0.01%))から後述するダイジェストサイズ選択テーブル140を参照することにより求める。詳細な処理については後述する。   Step 100) The digest size calculation unit 130 calculates the digest size using the maximum number of documents assumed, the number of matches (k) for citation determination, and the maximum value of the false detection probability as inputs. If the digest size is increased, it usually becomes enormous, but if it is decreased, erroneous detection is likely to occur. Therefore, it is necessary to obtain a digest size that minimizes the erroneous detection while suppressing the digest size. The digest size calculation unit 130 determines the number of documents (the maximum number of documents assumed), the number of matches for citation determination (k), and the maximum false detection probability (allowable false detection probability (for example, 0.01%)). Is obtained by referring to a digest size selection table 140 described later. Detailed processing will be described later.

ステップ200)ダイジェスト計算部110は、文書DB101から文書を読み込み、オペレータから入力された文書の文字列長、ダイジェスト対象とする区間の文字列長、文書におけるi+1番目の起点までの先頭からの文字数、文書dにおけるi文字目からw文字分の文字列、文字列xのダイジェストを算出するダイジェスト関数、ダイジェストサイズ計算部130から取得したダイジェストサイズに応じて各文書について文字列区間毎のダイジェストを計算する。詳細な処理については図8にて説明する。   Step 200) The digest calculation unit 110 reads a document from the document DB 101, and calculates the character string length of the document input from the operator, the character string length of the section to be digested, and the i + 1th starting point in the document. According to the number of characters, the character string for the i-th character in the document d, the digest function for calculating the digest of the character string x, and the digest size obtained from the digest size calculation unit 130, the digest for each character string section is obtained for each document. calculate. Detailed processing will be described with reference to FIG.

ステップ300) ダイジェスト計算部110は計算されたダイジェストをダイジェストDB150に格納する。   Step 300) The digest calculation unit 110 stores the calculated digest in the digest DB 150.

ダイジェストDB150は、順引きテーブル151と、逆引きテーブル152と、を有する。図7にダイジェストDB150の例を示す。同図(a)に順引きテーブル151、同図(b)に逆引きテーブル152を示す。   The digest DB 150 includes a forward lookup table 151 and a reverse lookup table 152. FIG. 7 shows an example of the digest DB 150. FIG. 11A shows a forward lookup table 151, and FIG.

順引きテーブル151は、文書IDをキーとし、作成日時、及びダイジェスト群を格納する。逆引きテーブル152は、ダイジェストをキーとし、対応する文書ID群を格納する。文書IDに加えて、文書における文字列区間の出現順も合わせて格納することができる。図7の例では、ダイジェストサイズは16ビットとし、ビット列は16進数で表現した。また、逆引きテーブル152においては、文書IDは出現順の組で表現している。   The forward lookup table 151 stores the creation date and the digest group using the document ID as a key. The reverse lookup table 152 stores a corresponding document ID group using the digest as a key. In addition to the document ID, the appearance order of the character string sections in the document can also be stored. In the example of FIG. 7, the digest size is 16 bits, and the bit string is expressed in hexadecimal. Further, in the reverse lookup table 152, the document IDs are expressed in pairs in the order of appearance.

ステップ400) 引用判定部120は、ダイジェストDB150から、同じダイジェストを持つ文字列区間を含む文書の集合を読み出す。   Step 400) The citation determination unit 120 reads a set of documents including a character string section having the same digest from the digest DB 150.

ステップ500) 引用判定部120は、オペレータから入力されたウィンドウサイズwと文字列区間の開始位置の差分(許容誤差)αを用いて、読み出された文書の集合の複数文書が連続している引用されていることを判定する。詳細な処理については図11、図12にて説明する。   Step 500) The citation determination unit 120 uses the window size w input from the operator and the difference (allowable error) α between the start positions of the character string sections, and a plurality of documents in the read document set are continuous. Determine that it is quoted. Detailed processing will be described with reference to FIGS.

ステップ600) 引用判定部120は、判定結果が「真」(引用あり)であった文書IDを出力する。   Step 600) The quotation determination unit 120 outputs the document ID whose determination result is “true” (with quotation).

上記の各処理について詳細に説明する。   Each of the above processes will be described in detail.

●ダイジェストサイズ計算部130の処理:
ここでは、ステップ100のダイジェストサイズ計算部130のダイジェストサイズの計算について説明する。
Process of digest size calculation unit 130:
Here, calculation of the digest size of the digest size calculation unit 130 in step 100 will be described.

本発明の実施に当たっては、ダイジェストDB150のサイズが巨大になる恐れがある。これは、ダイジェストDB150のサイズは、1つの文書あたりに作成されるダイジェストの数に影響されるため、スライディングウィンドウを用いると、文字列区間の数が、使用したウィンドウの数だけ必要になるためである。   In carrying out the present invention, the digest DB 150 may become huge in size. This is because the size of the digest DB 150 is affected by the number of digests created per document, so using a sliding window requires only the number of character string sections used. is there.

既存手法であれば文書を文単位に分割するため、仮に文の平均文字数が50文字であれば、ダイジェストサイズをgバイト、文書の平均長をwバイトとすれば、1つの文書あたりのダイジェストサイズはgw/50バイトとなっていた。例えば、ダイジェストサイズを5バイトとしても、文書あたりのダイジェストの合計サイズは、文書サイズの1/10で収まる。   If the existing method divides a document into sentence units, if the average number of characters in a sentence is 50 characters, the digest size per document is assumed if the digest size is g bytes and the average document length is w bytes. Was gw / 50 bytes. For example, even if the digest size is 5 bytes, the total digest size per document falls within 1/10 of the document size.

しかし、本発明では、スライディングウィンドウを使用するため、文字列区間の数が増えるとダイジェストの合計サイズが膨大になる。しかし、ダイジェストサイズを小さくすると、異なる文字列区間に対しても偶然同じダイジェストが与えられることになり、検出誤りが増大する。   However, since a sliding window is used in the present invention, the total size of digests becomes enormous as the number of character string sections increases. However, if the digest size is reduced, the same digest is accidentally given to different character string sections, and detection errors increase.

そこで、異なる文書に対して与えられたダイジェスト集合のうち、一定個数以上のダイジェストが一致した場合に、確率的に「偶然ではない」と判断することとする。   Therefore, when a certain number or more of the digest sets given to different documents match, it is determined probabilistically “not accidental”.

本発明では、ダイジェストサイズ、区間の起点の考え方、及び閾値を同時に考慮することで、ダイジェストDB150のサイズを最低限に抑える。   In the present invention, the size of the digest DB 150 is minimized by simultaneously considering the digest size, the concept of the starting point of the section, and the threshold value.

起点の考え方としては、
(1)1文字毎に起点とする(例えば、図4);
(2)形態素区切りを起点とする;
(3)ある程度の形態素のまとまりを起点とする;
(4)文の区切りを起点とする;
等が考えられる。但し、引用が文の構成を無視して行われることが多いため、(3)及び(4)は現実的ではない。そこで、(1)及び(2)について検討する。
As a starting point of view,
(1) Start each character (for example, FIG. 4);
(2) Starting from morpheme separation;
(3) Starting from a certain set of morphemes;
(4) Start with sentence breaks;
Etc. are considered. However, since citation is often performed ignoring the sentence structure, (3) and (4) are not realistic. Therefore, (1) and (2) are examined.

<定義>
・ダイジェストサイズをgバイトとする。
<Definition>
・ The digest size is g bytes.

・文書の文字数の平均をLバイトとする。   -The average number of characters in a document is L bytes.

・文書あたりの区間の数の平均をsとする。   • Let s be the average number of sections per document.

このとき、文書あたりに必要となるダイジェストの総バイト数はgsとなり、この値を小さくすることを目標とする。   At this time, the total number of digest bytes required per document is gs, and the goal is to reduce this value.

ダイジェストサイズを小さくすると、複数の文字列が同じダイジェストを持つことになり、引用判定の誤りが発生することになる。この確率を下げられれば、ダイジェストサイズを限界まで小さくすることができる。   If the digest size is reduced, a plurality of character strings have the same digest, and an citation determination error occurs. If this probability can be lowered, the digest size can be reduced to the limit.

文書dhには平均してs個の区間が含まれるため、文書のダイジェスト集合を(簡単のため){h1,h2,…,hn}と表現すると、任意のダイジェストがこの文書のダイジェスト集合に含まれる可能性は、p=s/2gと書ける。つまり、定数s(文書DB101の文書数に含まれる区間の平均)とダイジェストサイズg(バイト)が与えられることによりpが求められる。 Since the document d h contains s intervals on average, if the digest set of a document is expressed as {h 1 , h 2 ,..., H n } (for simplicity), an arbitrary digest is represented by this document. The possibility of being included in the digest set can be written as p = s / 2 g . That is, p is obtained by giving a constant s (an average of sections included in the number of documents in the document DB 101) and a digest size g (bytes).

ある文書に含まれるs個のダイジェストのうち、任意の1つが別のある文書に同時に出現する確率は、sp=s2/2gであり、任意のk個の別の文書に同時に出現する確率は以下のように書ける(sに比べてkは十分小さいものとする)。 Among the s digest included in a document, the probability that one arbitrary appearing simultaneously in the document with another, a sp = s 2/2 g, the probability of simultaneously occurring in any of the k different document Can be written as follows (assuming k is sufficiently smaller than s):

Figure 2015090528
この値が十分小さくなるように文書DB101に格納されている文書数(想定される最大の文書数)に応じて、pとkを選ぶことで、偶然を排除する。p、kは、ダイジェストサイズ計算部130によってgとkを選択し、gと文書DB101内の文書中に含まれる区間の数の平均sにより、p=s/2gによって求められる。上記の式(1)で求められた値がダイジェストサイズ選択テーブル140に格納される。
Figure 2015090528
By selecting p and k according to the number of documents stored in the document DB 101 (the maximum number of documents assumed) so that this value becomes sufficiently small, chances are eliminated. p and k are obtained by p = s / 2 g by selecting g and k by the digest size calculation unit 130, and g and the average s of the number of sections included in the document in the document DB 101. The value obtained by the above equation (1) is stored in the digest size selection table 140.

<形態素区切りを区間の起点とする場合>
形態素区切りを区間の起点とすると、1つの形態素あたりの文字列長を平均3文字と考えると、UTF-8では1文字が3バイトとなるため、
<When the morpheme break is the starting point of the section>
If the morpheme break is the starting point of the section, assuming that the average character string length per morpheme is 3 characters, one character is 3 bytes in UTF-8.

Figure 2015090528
である。例えば、文書の平均長が10キロバイトとすると、s=1111だが、簡単のため、
Figure 2015090528
It is. For example, if the average document length is 10 kilobytes, s = 1111, but for simplicity,

Figure 2015090528
とする。
Figure 2015090528
And

例えば、g=24(ビット)とすると、
p=1000/224=5.96×10-5
であるが、このとき、1つ以上のダイジェストが一致する確率は5.96×10-2となる。これは、文書数が20程度あれば、平均1回以上の誤検出を生じることを示している。
For example, if g = 24 (bits),
p = 1000/2 24 = 5.96 × 10 -5
However, at this time, the probability that one or more digests match is 5.96 × 10 −2 . This indicates that if the number of documents is about 20, an average of one or more false detections occurs.

一致するダイジェスト数を増やす方向と、ダイジェストサイズを増やす方向から誤検出確率を下げることができる。   The false detection probability can be lowered from the direction of increasing the number of matching digests and the direction of increasing the digest size.

表1に、ダイジェスト数k及びダイジェストサイズgをそれぞれ増やした場合の誤検出確率を格納したダイジェストサイズ選択テーブル140の例を示す。表1の例は文書あたりのセグメント数を1000と仮定している。但し、gについて誤検出確率が10-13前後となるkまでに限定している。 Table 1 shows an example of the digest size selection table 140 that stores the false detection probability when the number of digests k and the digest size g are increased. The example in Table 1 assumes 1000 segments per document. However, it is limited to k where the misdetection probability is about 10 −13 for g.

Figure 2015090528
ダイジェストサイズを求める際には、ダイジェスト選択テーブル140に対し、文書数の逆数に誤検出確率を乗じたものを基準とし、その数値よりもダイジェストサイズ選択テーブル140の値が小さくなるようなkとgの組み合わせを選択する。以下に詳述するが、例えば、文書数が100個、誤検出確率を1%(0.01=1/100)とすると、
1/100+1/100=1/10000=0.0001=10-4
を基準としてこれを下回るようなkとgの組み合わせを選択する。k=2であればg=24ビット、k=3であればg=20ビットが選択される。
Figure 2015090528
When obtaining the digest size, the digest selection table 140 is obtained by multiplying the reciprocal of the number of documents by the false detection probability, and k and g such that the value of the digest size selection table 140 is smaller than the numerical value. Select a combination. As will be described in detail below, for example, if the number of documents is 100 and the probability of false detection is 1% (0.01 = 1/100),
1/100 + 1/100 = 1/10000 = 0.0001 = 10 -4
A combination of k and g that is less than this is selected. If k = 2, g = 24 bits are selected, and if k = 3, g = 20 bits are selected.

<具体的な値の設定>
実装に当たっては、一致する数kと誤検出確率の最大値に基づいて表1のダイジェストサイズ選択テーブル140のk行を横に走査し、その値が誤検出確率の最大値を下回ったとき、その列のビット数gの行の値をダイジェストサイズdsとして出力する。例えば、文書数を10億=109と仮定して、合計の誤検出確率を10-4(0.01%)未満とする場合は、10-13を閾値とし、これを下回る[g=20bit,k=6]、[g=24bit,k=4]、[g=28bit,k=3]、[g=32bit,k=2]のいずれかを用いればよい。
<Specific value settings>
In implementation, the row k of the digest size selection table 140 of Table 1 is scanned horizontally based on the matching number k and the maximum value of the false detection probability, and when the value falls below the maximum value of the false detection probability, The value of the row of the number of bits of the column g is output as the digest size ds. For example, assuming that the number of documents is 1 billion = 10 9 and the total false detection probability is less than 10 −4 (0.01%), the threshold is 10 −13 and falls below this [g = 20bit, k = 6], [g = 24bit, k = 4], [g = 28bit, k = 3], or [g = 32bit, k = 2] may be used.

また、引用される文書が、過去の一定期間内に限られると仮定すると、より小さな値が設定可能となる。例えば、対象文書数が100万=106であれば、合計の誤検出確率を10-4(0.01%)未満とすれば、10-10を閾値とし、[g=20bit,k=5]、[g=24bit,k=4]、[g=28bit,k=2]、[g=32bit,k=2]のいずれかを用い、誤検出確率未満のgの行の値をダイジェストサイズdsとすればよい。 Further, assuming that the cited document is limited to a certain period in the past, a smaller value can be set. For example, if the number of target documents is 1 million = 10 6 and the total false detection probability is less than 10 -4 (0.01%), 10 -10 is set as a threshold, [g = 20bit, k = 5], Using either [g = 24bit, k = 4], [g = 28bit, k = 2], or [g = 32bit, k = 2], the value of the row of g less than the false detection probability is set as the digest size ds. do it.

上記の計算は、文書内での文字列区間の出現位置について考慮していないが、文字列位置を考慮すると、更に偶然性を排除できる。1つの文書について文字列区間の平均を1,000=103とすると、誤検出確率は10-6減少させられるため、表1の値を10-6倍すればよい。 The above calculation does not consider the appearance position of the character string section in the document. However, if the character string position is taken into account, chances can be further eliminated. If the average of the character string intervals for one document is 1,000 = 10 3 , the false detection probability is reduced by 10 −6, so the values in Table 1 may be multiplied by 10 −6 .

例えば、文書数を10億=109と仮定して、合計の誤検出確率を10-4(0.01%)未満とする(0.01%は許容できる誤検出確率)場合は、閾値は10-13を10-7と読み替えて、[g=16bit,k=6]、[g=20bit,k=4]、[g=24bit,k=3]、[g=28bit,k=2]、[g=32bit,k=2]のいずれかを用いればよい。 For example, assuming that the number of documents is 1 billion = 10 9 and the total false detection probability is less than 10 −4 (0.01%) (0.01% is an acceptable false detection probability), the threshold is 10 − 13 is replaced with 10 -7 , [g = 16bit, k = 6], [g = 20bit, k = 4], [g = 24bit, k = 3], [g = 28bit, k = 2], [ Any of g = 32bit, k = 2] may be used.

●ダイジェスト計算部110の処理:
次に、図6のステップ200のダイジェスト計算部110の処理について説明する。
Process of digest calculation unit 110:
Next, the processing of the digest calculation unit 110 in step 200 of FIG. 6 will be described.

図8は、本発明の一実施の形態におけるダイジェスト計算部の処理のフローチャートである。   FIG. 8 is a flowchart of the process of the digest calculation unit in one embodiment of the present invention.

ダイジェスト計算部110は、文書DB101から1つの文書が読み出されると(ステップ220)、当該1つの文書についてダイジェスト計算を行い(ステップ230)、ダイジェストDB150に格納する(ステップ240)。これを繰り返すことで、文書DB101中の全ての文書についてダイジェストを計算する。   When one document is read from the document DB 101 (step 220), the digest calculation unit 110 performs digest calculation for the one document (step 230) and stores it in the digest DB 150 (step 240). By repeating this, the digest is calculated for all the documents in the document DB 101.

ステップ220における文書の読み出し時には、文書ID、文書の作成日時、及び文書(より厳密には文書の内容文字列)の3つ組が得られる。文書IDは、文書を同定できる記号であり、例えば、URL(Uniform Resource Locator)などのURI(Uniform Resource Identifier)の形式が使用される。   When the document is read out in step 220, a triplet of the document ID, the document creation date and time, and the document (more precisely, the content string of the document) is obtained. The document ID is a symbol that can identify the document. For example, a URI (Uniform Resource Identifier) format such as a URL (Uniform Resource Locator) is used.

なお、図8では全ての文書について一括してダイジェストを計算して格納しているが、一度処理を行ってダイジェストDB150に格納した文書については、再度処理をする必要はない。従って、一通り全ての文書についてダイジェストを計算した後は、新たな文書が文書DB101に格納されるタイミングでステップ220〜240の処理を行えばよい。   In FIG. 8, the digest is calculated and stored for all the documents at once. However, it is not necessary to process the document once processed and stored in the digest DB 150. Therefore, after the digest is calculated for all the documents, the processing of steps 220 to 240 may be performed at the timing when a new document is stored in the document DB 101.

ステップ230の単一文書のダイジェスト計算のアルゴリズムを図9に、フローチャートを図10に示す。図9,図10に示す処理は、読み出した文書の1つの文章から文字列区間を切り出し、ダイジェストを生成する例を示す。ここで、文字列区間の起点は図4に示すように1文字単位でずらすこととし、文字数は20文字とした。つまり、図9において、w=20であり、任意のi番目の文書d,iについてnext(d,i)=i+1である。ここでは、1文字単位でずらす例を示しているが、1文字単位に限定されるものではない。但し、粒度は細かい方が厳密に判定することが可能である。また、比較する文書間のダイジェストのずらす文字単位は同じであること、形態素解析結果による区切りを用いて起点を揃える必要がある。形態素解析結果を用いて起点を揃えることによりダイジェストDB150に格納するデータ量を圧縮することが可能となる。   FIG. 9 shows an algorithm for digest calculation of a single document in step 230, and FIG. 10 shows a flowchart. The processing shown in FIGS. 9 and 10 shows an example in which a character string section is cut out from one sentence of a read document and a digest is generated. Here, the starting point of the character string section is shifted by one character unit as shown in FIG. 4, and the number of characters is 20 characters. That is, in FIG. 9, w = 20, and next (d, i) = i + 1 for any i-th document d, i. Here, an example of shifting in units of one character is shown, but the present invention is not limited to one unit of characters. However, the finer the particle size, the more precisely it can be determined. In addition, the character units shifted by the digests between the documents to be compared are the same, and it is necessary to align the starting points by using a delimiter based on the morphological analysis result. By aligning the starting points using the morphological analysis results, the amount of data stored in the digest DB 150 can be compressed.

また、ダイジェスト(digest)は、文字列をUTF-8で表現したときのMD5ハッシュ値(非特許文献1参照)の上位16位ビットの16進数表現を用いている。また、1つの文章から切り出す文字列区間は、形態素解析した形態素区切りの直後を用いることで、文字ずれがおきにくくなり、同粒度で比較が可能となる。   The digest uses the hexadecimal representation of the upper 16 bits of the MD5 hash value (see Non-Patent Document 1) when the character string is expressed in UTF-8. Also, by using the character string section cut out from one sentence immediately after the morpheme segmentation obtained by the morphological analysis, it becomes difficult for character deviation to occur, and comparison can be made with the same granularity.

ダイジェスト計算部110は、ダイジェストサイズ計算部130からダイジェストサイズdsを取得し、文字列xのダイジェストサイズdsを用いてダイジェスト関数(digest(x,ds))を算出する(ステップ231)。当該ダイジェスト関数は1ビットでも異なると全く異なる結果となる一方向性の関数である。   The digest calculation unit 110 obtains the digest size ds from the digest size calculation unit 130, and calculates the digest function (digest (x, ds)) using the digest size ds of the character string x (step 231). The digest function is a one-way function that results in completely different results even if one bit is different.

文書dの文字列長を(length(d))、ダイジェスト対象とする区間の文字列長を(w)、次の区間までの文字数(next(d,i))、文書dにおけるi文字目からw文字分の文字列(部分文字列)を(substr[(d,i,w),ds])ハッシュによるダイジェストを(digest)とする(ステップ232)。   The character string length of the document d is (length (d)), the character string length of the section to be digested is (w), the number of characters up to the next section (next (d, i)), the i-th character in the document d A character string (partial character string) corresponding to w characters is set to (distr) as a digest by hash (substr [(d, i, w), ds]) (step 232).

インデックス値(idx)の初期値を0とし(ステップ233)、ダイジェスト集合(digest)を空集合とする(ステップ234)。   The initial value of the index value (idx) is set to 0 (step 233), and the digest set (digest) is set to an empty set (step 234).

ダイジェスト計算部110は、ダイジェスト関数(digest(x,ds))と入力された上記のパラメータから文書dにおけるi文字目からw文字分の文字列(substr[(d,i,w),ds])のハッシュ値(hash)を求め(ステップ235)、ハッシュ値をダイジェスト集合に加える(digest←digest∪{hash})(ステップ236)。i=i+1とし(ステップ237)、next(d,i)があれば、ステップ235に移行し、ない場合は、ダイジェスト集合(digest)をダイジェストDB150に出力する(ステップ239)。   The digest calculation unit 110 obtains a character string (substr [(d, i, w), ds]) from the i-th character in the document d based on the digest function (digest (x, ds)) and the input parameters. ) Is obtained (step 235), and the hash value is added to the digest set (digest ← digest∪ {hash}) (step 236). If i = i + 1 (step 237) and there is next (d, i), the process proceeds to step 235, and if not, the digest set (digest) is output to the digest DB 150 (step 239).

ダイジェストDB150は、図7に示したように、順引きテーブル151と逆引きテーブル152から構成されている。ダイジェスト計算部110は、ダイジェスト集合の各要素について、読み出した文書の文書ID、作成日時、ダイジェスト群を抽出して順引きテーブル151に格納する。また、ダイジェストをキーとして、当該ダイジェストに対応する文書ID群を逆引きテーブル152に格納する。このとき、文書における文字列区間の出現順も合わせて格納することが可能である。図7の逆引きテーブル152の例では、ダイジェスト"0abc"に対応する文書ID"http://example.com/00002,2"の後に"http://example.com/00003,1"が存在しており、時系列順に格納されていることを示している。   The digest DB 150 includes a forward lookup table 151 and a reverse lookup table 152 as shown in FIG. The digest calculation unit 110 extracts the document ID, creation date and time, and digest group of the read document for each element of the digest set, and stores them in the forward lookup table 151. Also, the document ID group corresponding to the digest is stored in the reverse lookup table 152 using the digest as a key. At this time, the order of appearance of the character string sections in the document can also be stored. In the example of the reverse lookup table 152 of FIG. 7, “http://example.com/00003,1” exists after the document ID “http://example.com/00002,2” corresponding to the digest “0abc”. This indicates that the data are stored in chronological order.

また、引用判定処理において、形態素区切りを用いる場合には、順引きテーブル151'に、ダイジェストが文書の先頭から何文字目であるかについての情報を加える。   Also, in the citation determination process, when morpheme breaks are used, information about the number of characters from the beginning of the document is added to the forward lookup table 151 ′.

●引用判定部120の処理:
次に、図6のステップ400の引用判定処理について説明する。
● Processing of citation determination unit 120:
Next, the citation determination process in step 400 of FIG. 6 will be described.

図11は、本発明の一実施の形態における引用判定処理部の処理のフローチャートである。   FIG. 11 is a flowchart of the processing of the citation determination processing unit in one embodiment of the present invention.

引用判定部120は、オペレータから所定のウィンドウサイズ(w)と許容誤差(α)を取得する。また、メモリ(図示せず)上において、引用判定が「真」となったスパム集合Sを初期化(φ)しておき(ステップ410)、ダイジェストDB150の順引きテーブル151から取得した文書iの文書IDに基づいて、逆引きテーブル152から当該文書IDに対応するダイジェスト集合を読み出し(ステップ430)、複数の文書が連続して引用されているかの判定を行い(ステップ440)、判定結果が「真」であれば(ステップ460,Yes)、スパム集合Sに文書iを追加する(ステップ460)。このときスパム集合Sに追加するダイジェストサイズの情報を順引きテーブル151から取得して追加する。ダイジェストDB150の全ての文書についての処理が終了したら(ステップ420,No)、判定結果としてスパム集合Sを出力する(ステップ470)。   The quotation determination unit 120 acquires a predetermined window size (w) and an allowable error (α) from the operator. In addition, the spam set S whose citation determination is “true” is initialized (φ) in a memory (not shown) (step 410), and the document i acquired from the forward lookup table 151 of the digest DB 150 is stored. Based on the document ID, the digest set corresponding to the document ID is read from the reverse lookup table 152 (step 430), it is determined whether a plurality of documents are cited continuously (step 440), and the determination result is “ If true (step 460, Yes), the document i is added to the spam set S (step 460). At this time, digest size information to be added to the spam set S is acquired from the forward lookup table 151 and added. When the processing for all the documents in the digest DB 150 is completed (step 420, No), the spam set S is output as a determination result (step 470).

上記のステップ440における引用判定部120の処理について説明する。   The processing of the citation determination unit 120 in step 440 will be described.

引用判定部120は、本発明が対象としている文書では、複数の文書が切れ目なく引用されている。従って、複数の文書が切れ目なく引用されていることが判定されれば、より精度よく引用判定することができる。   The citation determination unit 120 quotes a plurality of documents without breaks in the document targeted by the present invention. Therefore, if it is determined that a plurality of documents are cited without a break, it is possible to determine the citation more accurately.

入力されたウィンドウサイズをwとすると、丁度wの長さだけずれた位置に分かれて複数の文書と共通のダイジェストが検出されれば、それは複数の文書が連続して引用されていると判定できる。図12の例では、wをウィンドウサイズ、αを許容可能な文字列区間の開始位置の差分(許容誤差)であるとしたとき、wあるいはw+αだけ離れたダイジェストが異なる引用している場合、複数文書が連続して引用されていると判定する。ここで、許容誤差αは、形態素解析結果の文字数の平均値または最大長を用いるものとする。当該許容誤差αを用いることで、複数の文書が連続して引用されていることを見逃す確率を低減させることが可能となる。   Assuming that the input window size is w, if a digest common to a plurality of documents is detected at positions shifted by exactly the length of w, it can be determined that a plurality of documents are cited continuously. . In the example of FIG. 12, when w is the window size and α is the difference (allowable error) of the start position of the allowable character string section, if there are different digests separated by w or w + α, multiple It is determined that the document is cited continuously. Here, as the allowable error α, the average value or the maximum length of the number of characters in the morphological analysis result is used. By using the allowable error α, it is possible to reduce the probability of missing a plurality of documents cited continuously.

図12において、各ダイジェストは1文字ずつずらす、または、形態素区切りで生成されているとする。同図の例において、最後に一致した「文書1」を引用しているダイジェストbの次に一致したウィンドウサイズwだけ離れた位置にあるダイジェストcは、「文書2」を引用しているため、連続して引用されていると判断する。最初に一致したダイジェストbと次に一致したダイジェストcの区間はウィンドウwと略同じである。   In FIG. 12, it is assumed that each digest is generated by shifting one character at a time or by morpheme separation. In the example shown in the figure, the digest c located at a position separated by the window size w that matches the digest b that cites the last matching “document 1” cites “document 2”. Judged as being cited continuously. The section between digest b that matches first and digest c that matches next is substantially the same as window w.

引用判定部120では、図13に示す文書内位置と一致候補からなる照合テーブル121において、以下の(1)〜(3)のすべてが満たされている場合、複数の文書が連続して(間隔なしで)引用されていると判定する。   In the collation determination unit 120, when all of the following (1) to (3) are satisfied in the collation table 121 including the in-document position and the match candidate shown in FIG. Determined to be quoted (without).

(1)ある文書との連続したダイジェストの一致:
一致候補の文書内の位置が連続していることで、連続したダイジェストであることを判定する。
(1) Consecutive digest matches with a document:
It is determined that the digests are continuous because the positions in the matching candidate document are continuous.

(2)別の文書との連続したダイジェストの一致:
2つ目の一致候補の文書内位置が連続していることで判定する。
(2) Consecutive digest match with another document:
The determination is made based on the fact that the second matching candidate positions in the document are continuous.

(3)(1)、(2)に挟まれた不一致区間がウィンドウサイズ+許容誤差(α):
当該文書の文書内位置の不一致区間がウィンドウサイズ+αだけ離れていることで判定する。
(3) The inconsistent section between (1) and (2) is the window size + allowable error (α):
Judgment is made based on the fact that the inconsistent section of the document in the document is separated by the window size + α.

図13の照合テーブルの場合は、ウィンドウサイズが10の場合、文書"0002"、"0003"が連続して引用されていると判定する。   In the case of the collation table of FIG. 13, when the window size is 10, it is determined that the documents “0002” and “0003” are cited continuously.

上記の判定では、文字列区間を1文字ずつずらす場合を示したが、以下に形態素区切りでずらす場合について説明する。   In the above determination, the case where the character string section is shifted one character at a time has been described. The case where the character string section is shifted by morpheme division will be described below.

形態素区切りで引用判定する場合は、ダイジェスト計算部110において、ダイジェストDB150を生成する際に、図7の順引きテーブル151に、形態素解析結果に基づく文書先頭からの文字数を加えた構成とする。各ダイジェストの元となった文字列区間の開始位置が、文書先頭から何文字目に書かれているかが記載される。その例を図14に示す。図14のダイジェストDB150の例では、文書IDhttp://example.com/00001のダイジェスト"c595"は先頭(0)であり、"d03e"は先頭から3文字目であり、"ea79"は先頭から7文字目であることを示す。   When citation determination is performed using morpheme breaks, when the digest calculation unit 110 generates the digest DB 150, the number of characters from the beginning of the document based on the morpheme analysis result is added to the forward lookup table 151 in FIG. The number of characters from which the start position of the character string section that is the basis of each digest is written from the top of the document is described. An example is shown in FIG. In the example of the digest DB 150 in FIG. 14, the digest “c595” of the document ID http://example.com/00001 is the top (0), “d03e” is the third character from the top, and “ea79” is from the top. Indicates the seventh character.

さらに、形態素区切りを用いる場合の照合テーブルの例を図15に示す。当該照合テーブル121'は、図13の照合テーブル121に、文書内位置に対応させて文書先頭からの文字数の情報も加えられている。   Further, FIG. 15 shows an example of a collation table when morpheme separation is used. In the collation table 121 ′, information on the number of characters from the beginning of the document is added to the collation table 121 of FIG.

形態素区切りにおける引用判定の場合には、ダイジェストDB150'の順引きテーブル151'から取得した文書iの文書IDに基づいて、逆引きテーブル152'から当該文書IDに対応するダイジェスト集合を読み出し、照合テーブル121'の文書先頭からの文字数及び一致候補を参照して、当該文書と他の文書と連続した不一致区間が、文字数としてウィンドウサイズ+αだけ不一致となっていることで判定する。   In the case of citation determination in morpheme separation, the digest set corresponding to the document ID is read from the reverse lookup table 152 ′ based on the document ID of the document i acquired from the forward lookup table 151 ′ of the digest DB 150 ′, and the collation table With reference to the number of characters from the document head 121 ′ and matching candidates, it is determined that the mismatching section that continues between the document and another document is mismatched by the window size + α as the number of characters.

上記の図5に示す連続引用判定装置の構成要素の動作をプログラムとして構築し、連続引用判定装置として利用されるコンピュータにインストールして実行させる、または、ネットワークを介して流通させることが可能である。   It is possible to construct the operation of the constituent elements of the continuous citation determination device shown in FIG. 5 as a program and install it on a computer used as the continuous citation determination device, or to distribute it via a network. .

本発明は、上記の実施の形態に限定されることなく、特許請求の範囲内において、種々変更・応用が可能である。   The present invention is not limited to the above-described embodiments, and various modifications and applications are possible within the scope of the claims.

100 連続引用判定装置
101 文書DB
110 ダイジェスト計算部
120 引用判定部
121,121' 照合テーブル
130 ダイジェストサイズ計算部
140 ダイジェストサイズ選択テーブル
150,150' ダイジェストDB
151,151' 順引きテーブル
152,152' 逆引きテーブル
100 Continuous citation judgment device 101 Document DB
110 Digest Calculation Unit 120 Citation Determination Unit 121, 121 ′ Collation Table 130 Digest Size Calculation Unit 140 Digest Size Selection Table 150, 150 ′ Digest DB
151, 151 ′ forward lookup table 152, 152 ′ reverse lookup table

Claims (8)

複数の文書の連続引用を判定するための連続引用判定装置であって、
入力された文書の1つの文章から文字列区間を切り出し、該文字列区間の起点を決定し、該起点から一定文字数毎の文字列区間に対する文字列をハッシュ関数により変換したダイジェストを所定の文字数分スライドさせて該ダイジェストの文書ID及びダイジェスト群をダイジェストDBに格納するダイジェスト計算手段と、
前記ダイジェストDBから前記ダイジェストを読み出し、該ダイジェストの所定のウィンドウサイズw分だけ離れた文字列区間にダイジェストが異なる文書を引用している場合に、複数文書が連続して引用されているものと判断する引用判定手段と、
を有することを特徴とする連続引用判定装置。
A continuous citation determination device for determining continuous citation of a plurality of documents,
A character string section is cut out from one sentence of the input document, the starting point of the character string section is determined, and a digest obtained by converting a character string for the character string section for each fixed number of characters from the starting point by a hash function is obtained for a predetermined number of characters. Digest calculation means for sliding and storing the digest document ID and digest group in the digest DB;
When the digest is read from the digest DB and a document having different digests is cited in a character string section separated by a predetermined window size w of the digest, it is determined that a plurality of documents are cited continuously. A citation determination means,
A continuous citation determination device characterized by comprising:
前記引用判定手段は、
前記ウィンドウサイズwに所定の文字列区間の開始位置の許容誤差αを加えた分だけ離れた文字列区間でダイジェストが異なる文書を引用している場合に、複数文書が連続して引用されているものと判断する手段を含む
請求項1記載の連続引用判定装置。
The citation determination means includes
When documents with different digests are cited in a character string section separated by the window size w plus a tolerance α of the start position of a predetermined character string section, a plurality of documents are cited continuously. 2. The continuous citation determination apparatus according to claim 1, further comprising means for determining that there is a thing.
前記引用判定手段は、
文書内位置と一致候補となる文書IDを格納した照合テーブルを更に有し、
前記ダイジェストを1文字単位でずらした場合の文書内位置に基づいて、前記照合テーブルを参照し、
ある文書との連続したダイジェストの一致:
最後に一致したダイジェストと次に一致したダイジェストの間がウィドウサイズに許容誤差(α)を加えた長さだけが不一致:
別の文書との連続したダイジェストの一致:
の全てを満たす場合は、複数の文書が連続して引用されていると判定する手段を含む
請求項2記載の連続引用判定装置。
The citation determination means includes
It further has a collation table that stores document IDs that are candidates for matches with positions in the document,
Based on the position in the document when the digest is shifted by one character unit, refer to the collation table,
Consecutive digest matches with a document:
Only the length between the last matched digest and the next matched digest plus the window size plus tolerance (α) does not match:
Consistent digest match with another document:
3. The continuous citation determination apparatus according to claim 2, further comprising means for determining that a plurality of documents are continuously cited when all of the above are satisfied.
前記ダイジェストDBは、ダイジェストの文書先頭からの文字数を含み、
前記引用判定手段は、
文書内位置と一致候補となる文書ID、ダイジェストの文書先頭からの文字数を格納した照合テーブルを更に有し、
前記ダイジェストを形態素区切りでずらした場合の文書位置に基づいて、前記照合テーブルを参照し、
ある文書と他の文書と連続した不一致区間が、文字数としてウィンドウサイズに所定の許容誤差を加えたサイズだけ不一致である場合は、複数の文書が連続して引用されていると判定する手段を含む
請求項2記載の連続引用判定装置。
The digest DB includes the number of characters from the beginning of the digest document,
The citation determination means includes
It further has a collation table that stores the document ID that is a candidate for matching with the position in the document, the number of characters from the beginning of the document in the digest,
Based on the document position when the digest is shifted by morpheme separation, refer to the collation table,
A means for determining that a plurality of documents are cited consecutively when a non-matching section continuous with a certain document and another document is non-matching by a size obtained by adding a predetermined allowable error to the window size as the number of characters; The continuous quotation determination apparatus according to claim 2.
複数の文書の連続引用を判定するための連続引用判定方法であって、
ダイジェスト計算手段、ダイジェストDB、引用判定手段を有する装置において、
前記ダイジェスト計算手段が、入力された文書の1つの文章から文字列区間を切り出し、該文字列区間の起点を決定し、該起点から一定文字数毎の文字列区間に対する文字列をハッシュ関数により変換したダイジェストを所定の文字数分スライドさせて該ダイジェストの文書ID及びダイジェスト群を前記ダイジェストDBに格納するダイジェスト計算ステップと、
前記引用判定手段が、前記ダイジェストDBから前記ダイジェストを読み出し、該ダイジェストの所定のウィンドウサイズw分だけ離れた文字列区間にダイジェストが異なる文書を引用している場合に、複数文書が連続して引用されているものと判断する引用判定ステップと、
を行うことを特徴とする連続引用判定方法。
A continuous citation determination method for determining continuous citation of a plurality of documents,
In an apparatus having digest calculation means, digest DB, and citation determination means,
The digest calculation means cuts out a character string section from one sentence of the input document, determines the starting point of the character string section, and converts the character string for the character string section for each fixed number of characters from the starting point by a hash function. Digest calculation step of sliding the digest by a predetermined number of characters and storing the digest document ID and digest group in the digest DB;
When the citation determination means reads the digest from the digest DB and cites documents with different digests in a character string section separated by a predetermined window size w of the digest, a plurality of documents are continuously cited. A citation determination step for determining that the
A continuous citation determination method characterized by:
前記引用判定ステップにおいて、
前記ウィンドウサイズwに所定の文字列区間の開始位置の許容誤差(α)を加えた分だけ離れた文字列区間でダイジェストが異なる文書を引用している場合に、複数文書が連続して引用されているものと判断する
請求項5記載の連続引用判定方法。
In the citation determination step,
When documents with different digests are cited in a character string section separated by the window size w plus an allowable error (α) of the start position of a predetermined character string section, a plurality of documents are cited continuously. The continuous citation determination method according to claim 5, wherein the continuous citation determination method is determined to be.
文書内位置と一致候補となる文書IDを格納した第1の照合テーブルを更に有する装置において、
前記引用判定ステップにおいて、
前記ダイジェストの文書内位置に基づいて、前記第1の照合テーブルを参照し、
ある文書との連続したダイジェストの一致:
最後に一致したダイジェストと次に一致したダイジェストの間がウィドウサイズ(w)に前記許容誤差(α)を加えた長さだけが不一致:
別の文書との連続したダイジェストの一致:
の全てを満たす場合は、複数の文書が連続して引用されていると判定する
請求項6記載の連続引用判定方法。
In an apparatus further comprising a first collation table storing document IDs that are candidates for matching with positions in the document,
In the citation determination step,
Based on the position of the digest in the document, refer to the first collation table,
Consecutive digest matches with a document:
Only the length between the last matched digest and the next matched digest, which is the window size (w) plus the tolerance (α), does not match:
Consistent digest match with another document:
The continuous citation determination method according to claim 6, wherein if all of the above are satisfied, it is determined that a plurality of documents are continuously cited.
文書内位置と一致候補となる文書ID、ダイジェストの文書先頭からの文字数を格納した第2の照合テーブルを更に有する装置において、
前記ダイジェストDBは、ダイジェストの文書先頭からの文字数を含み、
前記引用判定ステップにおいて、
前記ダイジェストを形態素区切りでずらした場合の文書位置に基づいて、前記第2の照合テーブルを参照し、
ある文書と他の文書と連続した不一致区間が、文字数としてウィンドウサイズ(w)に前記許容誤差(α)を加えたサイズだけ不一致である場合は、複数の文書が連続して引用されていると判定する
請求項6記載の連続引用判定方法。
In the apparatus further comprising a second collation table that stores the document ID that is a candidate for matching with the position in the document, and the number of characters from the beginning of the digest document,
The digest DB includes the number of characters from the beginning of the digest document,
In the citation determination step,
Based on the document position when the digest is shifted by morpheme separation, refer to the second collation table,
If a non-matching section that is continuous with a certain document and another document is non-matching by the window size (w) plus the tolerance (α) as the number of characters, a plurality of documents are cited continuously. The continuous citation determination method according to claim 6 for determination.
JP2013229439A 2013-11-05 2013-11-05 Continuous citation determination apparatus and method Active JP5906229B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013229439A JP5906229B2 (en) 2013-11-05 2013-11-05 Continuous citation determination apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013229439A JP5906229B2 (en) 2013-11-05 2013-11-05 Continuous citation determination apparatus and method

Publications (2)

Publication Number Publication Date
JP2015090528A true JP2015090528A (en) 2015-05-11
JP5906229B2 JP5906229B2 (en) 2016-04-20

Family

ID=53194038

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013229439A Active JP5906229B2 (en) 2013-11-05 2013-11-05 Continuous citation determination apparatus and method

Country Status (1)

Country Link
JP (1) JP5906229B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527952A (en) * 2019-09-18 2021-03-19 本田技研工业株式会社 File comparison system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007105273A1 (en) * 2006-03-10 2007-09-20 Fujitsu Limited Confidential information managing program, method and device
JP2012018510A (en) * 2010-07-07 2012-01-26 Mitsubishi Electric Corp Document processor, document processing method, document processing program, and computer readable recording medium recorded with document processing program
US20130232160A1 (en) * 2012-03-02 2013-09-05 Semmle Limited Finding duplicate passages of text in a collection of text

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007105273A1 (en) * 2006-03-10 2007-09-20 Fujitsu Limited Confidential information managing program, method and device
JP2012018510A (en) * 2010-07-07 2012-01-26 Mitsubishi Electric Corp Document processor, document processing method, document processing program, and computer readable recording medium recorded with document processing program
US20130232160A1 (en) * 2012-03-02 2013-09-05 Semmle Limited Finding duplicate passages of text in a collection of text

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527952A (en) * 2019-09-18 2021-03-19 本田技研工业株式会社 File comparison system
CN112527952B (en) * 2019-09-18 2024-04-30 本田技研工业株式会社 File comparison system

Also Published As

Publication number Publication date
JP5906229B2 (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN111428474B (en) Error correction method, device, equipment and storage medium based on language model
US8527436B2 (en) Automated parsing of e-mail messages
CN112994984B (en) Method for identifying protocol and content, storage device, security gateway and server
RU2474870C1 (en) Method for automated analysis of text documents
CN112214984B (en) Content plagiarism identification method, device, equipment and storage medium
CN109445844B (en) Code clone detection method based on hash value, electronic equipment and storage medium
KR102106936B1 (en) Search processing method and device
CN103080937A (en) Expression inconsistency detection device and expression inconsistency detection program
CN110019640B (en) Secret-related file checking method and device
CN101576872B (en) Chinese text processing method and device thereof
CN106569989A (en) De-weighting method and apparatus for short text
Hubballi et al. KeyClass: Efficient keyword matching for network traffic classification
CN107943516A (en) Cloned codes detection method based on LLVM
US11755550B2 (en) System and method for fingerprinting-based conversation threading
JP2010182238A (en) Citation detection device, device and method for creating original document database, program and recording medium
JP5906229B2 (en) Continuous citation determination apparatus and method
CN109857842B (en) A method and device for identifying fault report text
JP5948304B2 (en) Cited document alteration detection device and method
US10339297B2 (en) Determining whether continuous byte data of inputted data includes credential
JP5906228B2 (en) Automatic configuration document determination apparatus and method
Zhang et al. Effective and Fast Near Duplicate Detection via Signature‐Based Compression Metrics
JP2011150449A (en) Text sort program for sorting text containing unknown word, method and text analysis server
US20240320448A1 (en) Information processing apparatus and information processing method
JP5614338B2 (en) SEARCH DEVICE, PROGRAM, AND METHOD
JP5879150B2 (en) Phrase detection device and program thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160226

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: 20160315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160318

R150 Certificate of patent or registration of utility model

Ref document number: 5906229

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350