Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5740228B2 - Representative comment extraction method and program - Google Patents
[go: Go Back, main page]

JP5740228B2 - Representative comment extraction method and program - Google Patents

Representative comment extraction method and program Download PDF

Info

Publication number
JP5740228B2
JP5740228B2 JP2011147473A JP2011147473A JP5740228B2 JP 5740228 B2 JP5740228 B2 JP 5740228B2 JP 2011147473 A JP2011147473 A JP 2011147473A JP 2011147473 A JP2011147473 A JP 2011147473A JP 5740228 B2 JP5740228 B2 JP 5740228B2
Authority
JP
Japan
Prior art keywords
representative
comment
comments
extracted
text set
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
Application number
JP2011147473A
Other languages
Japanese (ja)
Other versions
JP2013015971A (en
Inventor
昌美 中澤
昌美 中澤
広海 石先
広海 石先
啓一郎 帆足
啓一郎 帆足
小野 智弘
智弘 小野
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.)
KDDI Corp
Original Assignee
KDDI 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 KDDI Corp filed Critical KDDI Corp
Priority to JP2011147473A priority Critical patent/JP5740228B2/en
Publication of JP2013015971A publication Critical patent/JP2013015971A/en
Application granted granted Critical
Publication of JP5740228B2 publication Critical patent/JP5740228B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、マイクロブログのような、ある特定の話題に対するテキスト集合から代表的なコメントを抽出する方法およびプログラムに関するものである。   The present invention relates to a method and program for extracting representative comments from a text set for a specific topic such as a microblog.

従来、計算機を用いて自然な要約を実現する自動要約技術の1つとして、文書を構成する文集合から重要な文(要約)のみを抽出する技術があった(非特許文献1)。また、ある製品や話題に対する意見を計算機によって、賛成・反対意見に分類する技術があった(特許文献1、非特許文献2、3)。   Conventionally, as an automatic summarization technique for realizing natural summarization using a computer, there has been a technique for extracting only an important sentence (summary) from a sentence set constituting a document (Non-patent Document 1). In addition, there has been a technique for classifying opinions on a product or topic into pros and cons by a computer (Patent Document 1, Non-Patent Documents 2 and 3).

特開2011−65380号公報JP 2011-65380 A

「Support Vector Machineを用いた重要文抽出法」情報処理学会論文誌44(8), 2230-2243, 2003"Important sentence extraction using Support Vector Machine" Transactions of Information Processing Society of Japan 44 (8), 2230-2243, 2003 「オンラインディベートにおけるテキストと行動に基づいた意見の分類」第24回人工知能大会全国大会(JSAI2010),No. 3A4-3, 2010."Classification of opinions based on text and behavior in online debate" The 24th National Conference of Artificial Intelligence (JSAI2010), No. 3A4-3, 2010. 「ブログからの意見文検索」情報処理学会研究報告. 自然言語処理研究会報告2006(124), 121-128, 2006"Retrieving Opinion Sentences from Blogs" Information Processing Society of Japan Research Report. Natural Language Processing Study Group Report 2006 (124), 121-128, 2006

特許文献1および非特許文献1から3は、表現の表層の統計的特徴のみではなく、意味に基づいて、文が所定の文カテゴリーに属するか否かを判定するものである。非特許文献1は、単語の網羅率を保ちながら抽出する文章を減らすものである。特許文献1および、非特許文献2および3は、ある対象に対する意見を、賛成・反対、ポジティブ・ネガティブに分類するものである。   Patent Document 1 and Non-Patent Documents 1 to 3 determine whether a sentence belongs to a predetermined sentence category based on not only the statistical characteristics of the surface layer of the expression but also the meaning. Non-Patent Document 1 is to reduce the number of sentences to be extracted while maintaining the word coverage. Patent Document 1 and Non-Patent Documents 2 and 3 classify opinions on a certain object into approval / disapproval and positive / negative.

現在、テレビ番組を見ながらマイクロブログを投稿したり、閲覧することが普及し始めてきた。しかし、テレビ番組の話題に対する意見を閲覧する際、全ての意見を網羅的に閲覧することは困難である。そこで、テレビ番組に対する投稿コメントから意見の種類に応じた代表的なコメントを絞り込む装置が必要である。例えば、Twitterの普及に伴い、テレビ番組に対する視聴者のツイートを見ながらテレビ視聴するという楽しみ方がでてきた。タブレット端末上に番組関連ツイートを表示する際、タブレットの表示領域には限りがあるため、多数のツイートから表示するツイートを絞り込む必要がある。   Currently, posting and browsing microblogs while watching TV programs has begun to spread. However, it is difficult to browse all opinions comprehensively when browsing opinions on the topic of a television program. Therefore, there is a need for a device that narrows down representative comments according to the type of opinion from posted comments on television programs. For example, with the spread of Twitter, people have enjoyed watching TV while watching viewers' tweets about TV programs. When displaying program-related tweets on a tablet terminal, the display area of the tablet is limited, so it is necessary to narrow down the tweets to be displayed from a large number of tweets.

しかしながら、ある特定の話題に対するテキスト集合に従来技術を適用した場合、要約を抽出したり、テキストを賛成・反対意見に分類することができるのみである、テキスト集合から代表的な意見を抽出できないという課題があった。   However, when the prior art is applied to a text set for a specific topic, it is only possible to extract a summary or classify the text as an approval or disagreement. There was a problem.

したがって、本発明は、ある特定の話題に対するテキスト集合から代表的な意見を抽出するコメント抽出方法およびプログラムを提供することを目的とする。   Therefore, an object of the present invention is to provide a comment extracting method and program for extracting a representative opinion from a text set for a specific topic.

上記目的を実現するため本発明による代表コメント抽出方法は、複数のコメントを含むテキスト集合から、代表的なコメントを抽出する代表コメント抽出方法において、前記テキスト集合が含む語の重要度を算出し、該テキスト集合から、該テキスト集合での重要度が上位N(N:1以上の整数)件の語を、前記テキスト集合の特徴を示す重要語として抽出する重要語抽出ステップと、前記複数のコメントを、前記重要語抽出ステップで抽出された重要語をもとにクラスタリングするクラスタリングステップと、前記クラスタリングステップで分割された各クラスタから、少なくとも各1つずつの代表コメントを抽出する代表コメント抽出ステップとを有する In order to achieve the above object, a representative comment extracting method according to the present invention calculates the importance of words included in the text set in the representative comment extracting method for extracting a representative comment from a text set including a plurality of comments . A keyword extraction step of extracting, from the text set , words having the highest N (N: integer greater than or equal to N) words in the text set as key words indicating the characteristics of the text set; and the plurality of comments and a clustering step of clustering based on the key words extracted by the important word extracting step, from each cluster divided by the clustering step, a representative comments extracting a representative comments one by one, at least each Have

また、前記重要語抽出ステップは、前記テキスト集合から、利用者が事前に設定した投稿者のコメントを抽出し、抽出されたテキスト集合の特徴を示す重要語を、さらに抽出することも好ましい。   In the important word extracting step, it is preferable that a comment of a contributor set in advance by a user is extracted from the text set, and an important word indicating a characteristic of the extracted text set is further extracted.

また、前記重要語抽出ステップは、前記テキスト集合から、利用者が投稿したコメントを含むテキスト集合を抽出し、抽出されたテキスト集合の特徴を示す重要語を、さらに抽出することも好ましい。 In the important word extracting step, it is preferable that a text set including a comment posted by a user is extracted from the text set, and an important word indicating the characteristics of the extracted text set is further extracted.

また、前記重要語抽出ステップは、前記テキスト集合から形態素解析により単語を抽出し、該単語のTF−IDF値を求め、上位N(N:1以上の整数)件の語を前記重要語として抽出することも好ましい。   The important word extracting step extracts a word from the text set by morphological analysis, obtains a TF-IDF value of the word, and extracts top N (N: integer of 1 or more) words as the important word. It is also preferable to do.

また、前記クラスタリングステップは、前記重要語が含まれる回数に基づいて、前記コメントをベクトル化してベクトルを生成しベクトル間の角度で、前記コメント間の類似度を算出し、概類似度が一定範囲以内のコメントを1つのクラスタにまとめることも好ましい。 The clustering step generates a vector by vectorizing the comment based on the number of times the important word is included, calculates a similarity between the comments at an angle between the vectors, and an approximate similarity is It is also preferable to combine comments within a certain range into one cluster.

また、前記重要語の上位M(1≦M≦N)個を話題語として、前記ベクトルを概話題語で重み付けした後に、前記類似度を算出することも好ましい。   It is also preferable to calculate the similarity after weighting the vector with an approximate topic word with the top M (1 ≦ M ≦ N) of the important words as topic words.

また、前記代表コメント抽出ステップは、前記重要語が含まれる回数に基づいて、前記コメントにスコアを付け、該スコアの上位L(L:1以上の整数)個のコメントを代表コメントとして抽出することも好ましい。   In the representative comment extracting step, the comment is scored based on the number of times the important word is included, and the top L (an integer equal to or greater than L: 1) comments of the score are extracted as representative comments. Is also preferable.

また、前記代表コメント抽出ステップは、事前に設定した特徴語または事前に設定した文を含むコメントを、代表コメントとして抽出することも好ましい。   The representative comment extracting step preferably extracts a comment including a feature word set in advance or a sentence set in advance as a representative comment.

また、前記代表コメント抽出ステップは、各クラスタ内のコメント数の順番に、クラスタから代表コメントを抽出し、抽出した順序で代表コメントを出力することも好ましい。   The representative comment extracting step preferably extracts representative comments from the clusters in the order of the number of comments in each cluster, and outputs the representative comments in the extracted order.

また、前記代表コメント抽出ステップは、各クラスタ内のコメント数が最も多いクラスタから代表コメントを抽出し、これ以降は、該代表コメントと最も類似度が高いコメントを含むクラスタから代表コメントを抽出し、抽出した順序で代表コメントを出力することも好ましい。   In addition, the representative comment extraction step extracts a representative comment from a cluster having the largest number of comments in each cluster, and thereafter extracts a representative comment from a cluster including a comment having the highest similarity to the representative comment, It is also preferable to output representative comments in the extracted order.

また、前記代表コメント抽出ステップは、各クラスタ内の利用者が投稿したコメント数の順番に、クラスタから代表コメントを抽出し、抽出した順序で代表コメントを出力することも好ましい。   The representative comment extraction step preferably extracts representative comments from the clusters in the order of the number of comments posted by users in each cluster, and outputs the representative comments in the extracted order.

上記目的を実現するため本発明によるプログラムは、複数のコメントを含むテキスト集合から、代表的なコメントを抽出するコンピュータを、前記テキスト集合が含む語の重要度を算出し、該テキスト集合から、該テキスト集合での重要度が上位N(N:1以上の整数)件の語を、前記テキスト集合の特徴を示す重要語として抽出する重要語抽出手段と、前記複数のコメントを、前記重要語抽出手段により抽出された重要語をもとにクラスタリングするクラスタリング手段と、前記クラスタリング手段により分割された各クラスタから、少なくとも各1つずつの代表コメントを抽出する代表コメント抽出手段として機能させる。 The program according to the present invention for achieving the above object, from the text set including a plurality of comments, a computer to extract a representative comments, calculates the importance of words the text set comprises, from the text set, the Important word extracting means for extracting words having the highest importance (N: integer greater than or equal to N) in the text set as important words indicating the characteristics of the text set, and extracting the plurality of comments from the important word Clustering means for clustering based on the important words extracted by the means, and representative comment extracting means for extracting at least one representative comment from each cluster divided by the clustering means .

本発明は、マイクロブログのような、ある特定の話題に対するテキスト集合から代表的な意見を優先的に閲覧することが可能となるため、閲覧効率が上がることが可能になる。このため、タブレット端末上の限られた表示領域に、Twitter等のマイクロブログの代表意見を表示することができる。また、事前に特徴語を設定することにより、異なる視点からの意見を抽出こともできる。   According to the present invention, since a representative opinion can be preferentially browsed from a text set for a specific topic such as a microblog, browsing efficiency can be improved. For this reason, a representative opinion of a microblog such as Twitter can be displayed in a limited display area on the tablet terminal. It is also possible to extract opinions from different viewpoints by setting feature words in advance.

本発明の処理フローチャートを示す。The processing flowchart of this invention is shown. マイクロブログの例を示す。Here is an example of a microblog. マイクロブログから抽出した重要語を示す。Indicates important words extracted from microblogs. 話題語の重みを示す。Indicates the weight of the topic word. マイクロブログのベクトル表示の例を示す。An example of microblog vector display is shown. マイクロブログ間のコサイン類似度を示す。Indicates the cosine similarity between microblogs. マイクロブログの類似度をもとにしたクラスタリング結果を示す。The clustering result based on the similarity of the microblog is shown. マイクロブログのスコアリングによる代表マイクロブログの抽出を示す。Extraction of representative microblogs by microblog scoring is shown. 抽出されたマイクロブログの代表意見を示す。The representative opinion of the extracted microblog is shown.

本発明を実施するための最良の実施形態について、以下では図面を用いて詳細に説明する。図1は、本発明の処理フローチャートを示す。以下、本フローチャートに従って、本発明の処理を詳細に説明する。   The best mode for carrying out the present invention will be described in detail below with reference to the drawings. FIG. 1 shows a processing flowchart of the present invention. Hereinafter, the processing of the present invention will be described in detail according to the flowchart.

ステップ1:対象とするマイクロブログを収集。ある物事に対するマイクロブログを、キーワードを用いて収集する。例えば、テレビ番組に対するTwitterの意見を収集する場合、テレビ局名や番組名、番組固有のハッシュタグをキーワードとして検索し、対象番組の意見を抽出する。
ステップ2:重要語抽出。ステップ1で収集したマイクロブログから、マイクロブログの特徴を示す重要語を抽出する。本実施形態では以下のように重要語を抽出する。ステップ1で収集したマイクロブログを、形態素解析し、抽出された単語に対してTF−IDF(Term Frequency - Inverse Document Frequency:単語の出現頻度−逆出現頻度)値を求める。TF−IDF値が、上位N件の語を重要語(I,I,・・・,I)とする(Nは、あらかじめ定めた1以上の整数)。重要語の各TF−IDF値を、S(I),S(I),・・・,S(I)と表す。
ステップ3:話題語の重み計算。重要語のうち,TF−IDF値が上位のM語を話題語(T,T,・・・,T)と呼ぶ(Mは、あらかじめ定めた1以上のN以下の整数)。話題語には、以下の方法で重みを付ける。
W(T)=1+{S(I)/(S(I)+S(I)+・・・+S(I))}
W(T)=1+{S(I)/(S(I)+S(I)+・・・+S(I))}
・・・
W(T)=1+{S(I)/(S(I)+S(I)+・・・+S(I))}
重み行列は、N×Nの行列として、

Figure 0005740228
と表せる。
ステップ4:重みを考慮したマイクロブログベクトルを生成。各マイクロブログに対して、重要語(I,I,・・・,I)を要素としたマイクロブログベクトルを生成する。各マイクロブログ中に重要語が含まれる回数をカウントし、マイクロブログをベクトル形式で表す。例えば、マイクロブログ1をベクトル形式Cで表すと、
={Cに含まれるIの個数,Cに含まれるIの個数,・・・,Cに含まれるIの個数}
={C11,C12,・・・,C1N
となる。例えば、マイクロブログ1に、Iが1つ、Iが1つ含まれる場合、
={1,0,0,1,0,0,0,0}
と表せる。さらに,ステップ3で求めた重み行列Wをかけて重みつきマイクロブログベクトルC’を生成する。
C’=C
例えば、Cが上記のような例である場合、
C’=C
Figure 0005740228
={W(T),0,0,W(T),0,0,0,0}
となる。
ステップ5:マイクロブログのクラスタリング。マイクロブログを重みつきベクトルを用いて、複数のクラスタにまとめる。本実施形態では以下のように行う。ステップ4で作成した重みつきベクトルを用いて、各マイクロブログ間の類似度を計算する。例えば、コサイン類似度を用いて、マイクロブログ間の類似度を算出する。
マイクロブログ1とマイクロブログ2の類似度は、
cos(C’,C’)=(C’11*C’21+C’12*C’22+・・・+C’1N*C’2N)/{sqrt(C’11 +C’12 +・・・+C’1N )*sqrt(C’21 +C’22 +・・・+C’2N )}
と計算できる。これにより、ある閾値以上の類似度をもつマイクロブログは、同一クラスとみなし、クラスタを作成する。もしくは、クラスタ数がαになるまで、類似度が高いマイクロブログを同じクラスタに分類していく。
ステップ6:マイクロブログのスコアリング。マイクロブログを重要語が含まれる回数に基づいてスコアリングする。本実施形態では、ステップ4で求められたマイクロブログの重みつきベクトルの各成分の和を求めることで、マイクロブログにスコアを付ける。
例えば、
マイクロブログ1のスコア=C’11+C’12+・・・+C’1n
となる。
ステップ7:代表マイクロブログを抽出。クラスタ毎に、ステップ6で求めたスコアの上位L個のマイクロブログを代表意見として抽出する(Lは、あらかじめ定めた1以上整数)。また、スコアが最も高いマイクロブログを代表意見として抽出することのできる。これにより、近い意見は自動的に省かれ、様々な観点に基づいた意見が抽出できる。 Step 1: Collect target microblogs. Collect microblogs for certain things using keywords. For example, when collecting Twitter opinions on a TV program, search for TV station names, program names, and program-specific hash tags as keywords, and extract the opinions of the target program.
Step 2: Extract important words. From the microblog collected in step 1, important words indicating the characteristics of the microblog are extracted. In the present embodiment, important words are extracted as follows. The microblog collected in step 1 is subjected to morphological analysis, and a TF-IDF (Term Frequency-Inverse Document Frequency) value is obtained for the extracted word. The top N words having the TF-IDF value are defined as important words (I 1 , I 2 ,..., I N ) (N is a predetermined integer of 1 or more). Each TF-IDF value of the important word is represented as S (I 1 ), S (I 2 ),..., S (I N ).
Step 3: Topic word weight calculation. Among important words, an M word having a higher TF-IDF value is referred to as a topic word (T 1 , T 2 ,..., T M ) (M is a predetermined integer of 1 or more and N or less). Topic words are weighted in the following way.
W (T 1 ) = 1 + {S (I 1 ) / (S (I 1 ) + S (I 2 ) +... + S (I M ))}
W (T 2 ) = 1 + {S (I 2 ) / (S (I 1 ) + S (I 2 ) +... + S (I M ))}
...
W (T M ) = 1 + {S (I M ) / (S (I 1 ) + S (I 2 ) +... + S (I M ))}
The weight matrix is an N × N matrix,
Figure 0005740228
It can be expressed.
Step 4: Generate a microblog vector considering the weight. For each microblog, a microblog vector having key words (I 1 , I 2 ,..., I N ) as elements is generated. Count the number of times that each microblog contains an important word and represent the microblog in vector format. For example, if microblog 1 is represented in vector format C1,
C 1 = {number of I 1 included in C 1, the number of I 2 contained in the C 1, · · ·, the number of I N included in C 1}
= {C 11 , C 12 ,..., C 1N }
It becomes. For example, if microblog 1 contains 1 I 1 and 1 I 4 ,
C 1 = { 1, 0, 0, 1, 0, 0, 0, 0}
It can be expressed. Further, a weighted microblog vector C ′ 1 is generated by multiplying the weight matrix W obtained in step 3.
C ′ 1 = C 1 W
For example, if C 1 is an example as above,
C ′ 1 = C 1 W
Figure 0005740228
= {W (T 1 ), 0, 0, W (T 4 ), 0, 0, 0, 0}
It becomes.
Step 5: Microblog clustering. Group microblogs into clusters using weighted vectors. In this embodiment, the process is performed as follows. Using the weighted vector created in step 4, the similarity between each microblog is calculated. For example, the similarity between microblogs is calculated using the cosine similarity.
The similarity between microblog 1 and microblog 2 is
cos (C ′ 1 , C ′ 2 ) = (C ′ 11 * C ′ 21 + C ′ 12 * C ′ 22 +... + C ′ 1N * C ′ 2N ) / {sqrt (C ′ 11 2 + C ′ 12 2 + ... + C ′ 1N 2 ) * sqrt (C ′ 21 2 + C ′ 22 2 + ... + C ′ 2N 2 )}
Can be calculated. As a result, microblogs having a similarity equal to or greater than a certain threshold are regarded as the same class, and a cluster is created. Or, until the number of clusters reaches α, microblogs with high similarity are classified into the same cluster.
Step 6: Microblog scoring. Scoring microblogs based on the number of times important words are included. In this embodiment, the microblog is scored by obtaining the sum of the components of the weighted vector of the microblog obtained in step 4.
For example,
Microblog 1 score = C ′ 11 + C ′ 12 +... + C ′ 1n
It becomes.
Step 7: Extract representative microblogs. For each cluster, the top L microblogs of the score obtained in step 6 are extracted as representative opinions (L is a predetermined integer of 1 or more). In addition, the microblog with the highest score can be extracted as a representative opinion. Thereby, close opinions are automatically omitted, and opinions based on various viewpoints can be extracted.

また、ステップ2の前に、マイクロブログをポジティブ・ネガティブに分類し、分類した結果から、重要語を抽出することも可能である。この場合、ポジティブまたはネガティブな意見として、どのような代表的な意見があるかを容易に抽出することができる。   Also, before step 2, it is possible to classify the microblog as positive / negative and extract important words from the classification result. In this case, it is possible to easily extract a representative opinion as a positive or negative opinion.

また、ステップ6において、ユーザの発言履歴や参考URL等の事前に設定した特徴語(例えば、「w」や「(笑)」)または事前に設定した文を考慮して重み付けを行い、これらを含むマイクロブログのスコアを高くして、優先的に抽出させることも可能である。この場合、ユーザの嗜好に応じたマイクロブログを抽出することが可能になる。   In step 6, weighting is performed in consideration of feature words (for example, “w” and “(laugh)”) set in advance, such as a user's speech history and reference URL, or sentences set in advance. It is also possible to increase the score of the microblog that includes it and extract it with priority. In this case, it is possible to extract a microblog according to the user's preference.

また、ステップ7において、代表意見から、マイクロブログのスコアが0のものを省くこともできる。スコアが0であるマイクロブログは、重要語を一切含んでいないものであるため、特定の話題と関係が薄いマイクロブログを排除することが可能になる。   Further, in step 7, it is possible to omit those having a microblog score of 0 from the representative opinion. A microblog having a score of 0 does not include any important words, and therefore, it is possible to exclude microblogs that are not closely related to a specific topic.

以下に本発明の実施例を示す。図2は、マイクロブログの例を示す。ここに記載したマイクロブログは、テレビ番組に対する発言の一部である。実際には、10以上のマイクロブログが存在するが、一部のみを記載している。図3は、マイクロブログから抽出した重要語を示す。N=8の場合の重要語と、括弧内にそのTF−IDF値を示す。なお、図2は、マイクロブログの一部であるため、図2に記載されていない重要語も、図3には含まれている。図4は、話題語の重みを示す。M=3の場合の重みを示す。図5は、マイクロブログの重みつきベクトル表示の例を示す。それぞれ、図2のマイクロブログをベクトル表示した例を示す。図6は、マイクロブログ間のコサイン類似度を示す。なお、C(0.81)は、cos(C,C)=0.81であることを示す。 Examples of the present invention are shown below. FIG. 2 shows an example of a microblog. The microblog described here is a part of the remarks about television programs. In fact, there are more than 10 microblogs, but only a few are listed. FIG. 3 shows important words extracted from the microblog. The important word in the case of N = 8 and the TF-IDF value are shown in parentheses. Since FIG. 2 is a part of the microblog, important words not shown in FIG. 2 are also included in FIG. FIG. 4 shows the weights of topic words. The weight when M = 3 is shown. FIG. 5 shows an example of a weighted vector display of a microblog. Each example shows a vector display of the microblog of FIG. FIG. 6 shows the cosine similarity between microblogs. Note that C 1 C 2 (0.81) indicates cos (C 1 , C 2 ) = 0.81.

図7は、マイクロブログの類似度をもとにしたクラスタリング結果を示す。ここでは、6つのクラスタに分割した結果を示す。点線がクラスタを示す。C、C、C、C、Cは、類似度が高いため1つのクラスタにまとめられている。C、C10を除く四角線で囲まれたマイクロブログは、図3の重要語を含んでいるマイクロブログであることを示す。図8は、マイクロブログのスコアリングによる代表マイクロブログの抽出を示す。ここでは、C、C、C、C、Cの中から、最もスコアの大きいCが選択される。図9は、抽出されたマイクロブログの代表意見を示す。 FIG. 7 shows a clustering result based on the similarity of the microblog. Here, the result of dividing into six clusters is shown. A dotted line shows a cluster. C 1 , C 2 , C 3 , C 6 , and C 7 are grouped into one cluster because of their high similarity. A microblog surrounded by a square line excluding C 4 and C 10 indicates that the microblog includes the important word in FIG. FIG. 8 shows representative microblog extraction by microblog scoring. Here, from among the C 1, C 2, C 3 , C 6, C 7, a large C 7 most score is selected. FIG. 9 shows a representative opinion of the extracted microblog.

この例のように、同じような内容のC、C、C、C、Cから、最も重要語を含んでいる代表的な意見Cを表示することができる。また、重要語を全く含んでいない、C、C10を除いて表示することもできる。 As in this example, a representative opinion C 7 including the most important word can be displayed from C 1 , C 2 , C 3 , C 6 , and C 7 having the same contents. Moreover, it is also possible to display except C 4 and C 10 which do not contain any important words.

なお、上記実施形態は、マイクロブログの内容のみに基づいて、代表意見を抽出した。マイクロブログの投稿者名が利用できる場合、投稿者名を代表意見抽出に利用することも可能である。   In the above embodiment, representative opinions are extracted based only on the contents of the microblog. If a microblogging contributor name can be used, the contributor name can also be used for representative opinion extraction.

上記実施形態のステップ2の重要語抽出において、全てのマイクロブログを平等に扱っていた。投稿者名が利用できる場合、利用者が事前に設定した投稿者のマイクロブログから重要語を抽出し、これも重要語とすることもできる。具体的には、利用者が事前に設定した投稿者のマイクロブログを抽出し、抽出したマイクロブログを形態素解析し、抽出された単語に対してTF−IDF値を求め、TF−IDF値が、上位N’件の語を重要語とする(N’は、あらかじめ定めた1以上の整数)。全体のマイクロブログから抽出されたN件の重要語と、ここで得られたN’件の重要語の和集合を重要語とすることができる。なお、利用者が事前に設定した投稿者は、例えば、発言に影響力のある投稿者(Twitterではフォロワーが多い、有名人など)とすることができる。   In the key word extraction in step 2 of the above embodiment, all microblogs are treated equally. When the poster name can be used, an important word is extracted from the microblog of the poster set in advance by the user, and this can also be used as the important word. Specifically, the user's preset microblog of the user is extracted, the extracted microblog is subjected to morphological analysis, a TF-IDF value is obtained for the extracted word, and the TF-IDF value is The top N ′ words are important words (N ′ is a predetermined integer of 1 or more). The union of the N important words extracted from the entire microblog and the N ′ important words obtained here can be used as the important word. In addition, the poster set in advance by the user can be, for example, a poster who has an influence on the remarks (Twitter has many followers, celebrities, etc.).

また、本装置の利用者が投稿したマイクロブログから重要語を抽出し、これも重要語とすることもできる。具体的には、本装置の利用者が投稿したマイクロブログを抽出し、抽出したマイクロブログを形態素解析し、抽出された単語に対してTF−IDF値を求め、TF−IDF値が、上位N”件の語を重要語とする(N”は、あらかじめ定めた1以上の整数)。全体のマイクロブログから抽出されたN件の重要語と、ここで得られたN”件の重要語の和集合を重要語とすることができる。また、上記と組み合わせて、N件の重要語と、N’件の重要語と、N”件の重要語との和集合を重要語とすることもできる。   It is also possible to extract an important word from a microblog posted by a user of the apparatus and make it an important word. Specifically, the microblog posted by the user of the present apparatus is extracted, the extracted microblog is subjected to morphological analysis, and the TF-IDF value is obtained for the extracted word. “A case word is an important word (N” is a predetermined integer of 1 or more). The union of the N important words extracted from the entire microblog and the N ″ important words obtained here can be used as an important word. Also, in combination with the above, N important words And the union of N ′ important words and N ″ important words can be used as important words.

また、ここまで実施形態は、ステップ7で出力される代表意見の出力順番については、何も考慮していなかった。しかしながら、利用者にとって有益なマイクロブログが最初に表示された方が、利用者にとって利便性が向上する。以下に、代表意見の出力順序を考慮した実施形態を説明する。   Further, the embodiment so far has not considered anything about the output order of the representative opinions output in step 7. However, the convenience for the user is improved when the microblog useful for the user is displayed first. In the following, an embodiment considering the output order of representative opinions will be described.

出力順序を考慮した第1の実施形態では、各クラスタのコメント数の順番に、クラスタから代表意見を抽出する。例えば、クラスタリングによって、マイクロブログが、4つのクラスタにまとめられ、それぞれのクラスタのコメント数が、5、2、1、3であったとする。この場合、コメント数が5のクラスタから代表意見が1つ抽出され、次に、コメント数が3のクラスタから代表意見が1つ抽出され、次に、コメント数が2のクラスタから代表意見が1つ抽出され、最後に、コメント数が1のクラスタから代表意見が1つ抽出される。この抽出された順序で、代表意見が出力される。   In the first embodiment considering the output order, representative opinions are extracted from the clusters in the order of the number of comments of each cluster. For example, it is assumed that microblogs are grouped into four clusters by clustering, and the number of comments in each cluster is 5, 2, 1, 3. In this case, one representative opinion is extracted from the cluster having 5 comments, then one representative opinion is extracted from the cluster having 3 comments, and then 1 representative opinion is extracted from the cluster having 2 comments. Finally, one representative opinion is extracted from a cluster having one comment. Representative opinions are output in this extracted order.

出力順序を考慮した第2の実施形態では、最初にコメント数が最も多いクラスタから代表意見を抽出し、次にこの代表意見と最も類似度が高い代表意見を含むクラスタから代表意見を抽出する。例えば、クラスタリングによって、マイクロブログが、4つのクラスタにまとめられ、それぞれのクラスタのコメント数が、5、2、1、3であったとする。この場合、最初に、コメント数が5のクラスタから代表意見が1つ抽出される。コメント数が5のクラスタから抽出された代表意見と、類似度が最も高いコメントを含むクラスタが、コメント数が2のクラスタであったとすると、次に、コメント数が2のクラスタから代表意見が1つ抽出される。コメント数が2のクラスタから抽出された代表意見と、類似度が最も高いコメントを含むクラスタが、コメント数が1のクラスタであったとすると、次に、コメント数が1のクラスタから代表意見が1つ抽出される。最後に、コメント数が3のクラスタから代表意見が1つ抽出され、この抽出された順序で、代表意見が表示される。   In the second embodiment in consideration of the output order, the representative opinion is first extracted from the cluster having the largest number of comments, and then the representative opinion is extracted from the cluster including the representative opinion having the highest similarity to the representative opinion. For example, it is assumed that microblogs are grouped into four clusters by clustering, and the number of comments in each cluster is 5, 2, 1, 3. In this case, first, one representative opinion is extracted from a cluster having five comments. If the representative opinion extracted from the cluster with five comments and the cluster including the comment with the highest similarity are clusters with two comments, then the representative opinion is one from the cluster with two comments. Are extracted. Assuming that the representative opinion extracted from the cluster having two comments and the cluster including the comment having the highest similarity are clusters having one comment, then the representative opinion is 1 from the cluster having one comment. Are extracted. Finally, one representative opinion is extracted from the cluster having three comments, and the representative opinions are displayed in this extracted order.

出力順序を考慮した第3の実施形態では、利用者が投稿したコメント数に基づいて、代表意見を抽出する。例えば、クラスタリングによって、マイクロブログが、4つのクラスタにまとめられ、それぞれのクラスタのコメント数が、5、2、1、3であった場合、コメント数が3のクラスタに、利用者がコメントを2つ投稿し、コメント数が2のクラスタに、利用者がコメントを1つ投稿したとする。この場合、最初にコメント数が3のクラスタから代表意見が1つ抽出され、次に、コメント数が2のクラスタから代表意見が1つ抽出される。これ以降は、上記の第1の形態または第2の形態に基づき、クラスタから代表意見が1つ抽出され、この抽出された順序で、代表意見が表示される。   In the third embodiment in consideration of the output order, the representative opinion is extracted based on the number of comments posted by the user. For example, if the microblog is grouped into four clusters by clustering, and the number of comments in each cluster is 5, 2, 1, 3, the user has 2 comments in the cluster with 3 comments. Assume that the user has posted one comment to a cluster with two comments. In this case, one representative opinion is first extracted from the cluster having three comments, and then one representative opinion is extracted from the cluster having two comments. Thereafter, one representative opinion is extracted from the cluster based on the first form or the second form, and the representative opinions are displayed in the extracted order.

なお、出力順番を考慮した第1から第3の実施形態において、代表意見の抽出方法は、上記に記載した方法により、抽出する。例えば、ステップ6のように、重要語が含まれる回数に基づいてスコアリングする。   In the first to third embodiments in consideration of the output order, the representative opinion is extracted by the method described above. For example, as in step 6, scoring is performed based on the number of times the important word is included.

本発明による代表的なコメント抽出方式は、コンピュータを、上述した各ステップを機能させるプログラムにより実現することができる。これらコンピュータプログラムは、コンピュータが読み取り可能な記憶媒体に記憶されて、又は、ネットワーク経由で配布が可能なものである。さらに、本発明は、ハードウェア及びソフトウェアの組合せによっても実現可能である。   A typical comment extraction method according to the present invention can be realized by a program that causes a computer to function as the above-described steps. These computer programs can be stored in a computer-readable storage medium or distributed via a network. Furthermore, the present invention can be realized by a combination of hardware and software.

また、以上述べた実施形態は全て本発明を例示的に示すものであって限定的に示すものではなく、本発明は他の種々の変形態様および変更態様で実施することができる。従って本発明の範囲は特許請求の範囲およびその均等範囲によってのみ規定されるものである。   Moreover, all the embodiments described above are illustrative of the present invention and are not intended to limit the present invention, and the present invention can be implemented in other various modifications and changes. Therefore, the scope of the present invention is defined only by the claims and their equivalents.

Claims (12)

複数のコメントを含むテキスト集合から、代表的なコメントを抽出する代表コメント抽出方法において、
前記テキスト集合が含む語の重要度を算出し、該テキスト集合から、該テキスト集合での重要度が上位N(N:1以上の整数)件の語を、前記テキスト集合の特徴を示す重要語として抽出する重要語抽出ステップと、
前記複数のコメントを、前記重要語抽出ステップで抽出された重要語をもとにクラスタリングするクラスタリングステップと、
前記クラスタリングステップで分割された各クラスタから、少なくとも各1つずつの代表コメントを抽出する代表コメント抽出ステップと、
を有することを特徴とする代表コメント抽出方法。
In a representative comment extraction method for extracting a representative comment from a text set including a plurality of comments,
The importance of the words included in the text set is calculated, and from the text set, the words having the highest N (N: integer of 1 or more) importance in the text set are the important words indicating the characteristics of the text set. A keyword extraction step to extract as
A clustering step of clustering the plurality of comments based on the important words extracted in the important word extraction step ;
A representative comment extracting step of extracting at least one representative comment from each cluster divided in the clustering step ;
A representative comment extraction method characterized by comprising:
前記重要語抽出ステップは、前記テキスト集合から、利用者が事前に設定した投稿者のコメントを含むテキスト集合を抽出し、抽出されたテキスト集合の特徴を示す重要語を、さらに抽出することを特徴とする請求項1に記載の代表コメント抽出方法。 The important word extracting step extracts from the text set a text set including a user's preset comment set by a user, and further extracts important words indicating the characteristics of the extracted text set. The representative comment extraction method according to claim 1. 前記重要語抽出ステップは、前記テキスト集合から、利用者が投稿したコメントを含むテキスト集合を抽出し、抽出されたテキスト集合の特徴を示す重要語を、さらに抽出することを特徴とする請求項1または2に記載の代表コメント抽出方法。 2. The important word extracting step extracts a text set including a comment posted by a user from the text set, and further extracts a key word indicating characteristics of the extracted text set. Alternatively, the representative comment extraction method described in 2. 前記重要語抽出ステップは、前記テキスト集合から形態素解析により単語を抽出し、該単語のTF−IDF値を求め、上位N(N:1以上の整数)件の語を前記重要語として抽出することを特徴とする請求項1から3のいずれか1項に記載の代表コメント抽出方法。   In the important word extraction step, a word is extracted from the text set by morphological analysis, a TF-IDF value of the word is obtained, and top N (N: integer of 1 or more) words are extracted as the important word. The representative comment extracting method according to any one of claims 1 to 3. 前記クラスタリングステップは、前記重要語が含まれる回数に基づいて、前記コメントをベクトル化してベクトルを生成しベクトル間の角度で、前記コメント間の類似度を算出し、類似度が一定範囲以内のコメントを1つのクラスタにまとめることを特徴とする請求項1から4のいずれか1項に記載の代表コメント抽出方法。 The clustering step, based on the number of times that includes said key word, the comment vectorization generates vector, an angle between the vectors, calculates the similarity between the comments, the degree of similarity is predetermined range 5. The representative comment extraction method according to claim 1, wherein the following comments are grouped into one cluster. 前記重要語の上位M(1≦M≦N)個を話題語として、前記ベクトルを話題語で重み付けした後に、前記類似度を算出することを特徴とする請求項5に記載の代表コメント抽出方法。 Examples important word-level M (1 ≦ M ≦ N) pieces topic words, the vector after weighting by the topic words, representative comments extract according to claim 5, characterized in that to calculate the degree of similarity Method. 前記代表コメント抽出ステップは、前記重要語が含まれる回数に基づいて、前記コメントにスコアを付け、該スコアの上位L(L:1以上の整数)個のコメントを代表コメントとして抽出することを特徴とする請求項1から6のいずれか1項に記載の代表コメント抽出方法。   In the representative comment extracting step, the comment is scored based on the number of times the important word is included, and the top L (an integer of L: 1 or more) comments of the score are extracted as representative comments. The representative comment extracting method according to any one of claims 1 to 6. 前記代表コメント抽出ステップは、事前に設定した特徴語または事前に設定した文を含むコメントを、代表コメントとして抽出することを特徴とする請求項1から7のいずれか1項に記載の代表コメント抽出方法。   The representative comment extraction according to any one of claims 1 to 7, wherein the representative comment extraction step extracts a comment including a feature word set in advance or a sentence set in advance as a representative comment. Method. 前記代表コメント抽出ステップは、各クラスタ内のコメント数の順番に、クラスタから代表コメントを抽出し、抽出した順序で代表コメントを出力することを特徴とする請求項1から8のいずれか1項に記載の代表コメント抽出方法。   9. The representative comment extraction step according to claim 1, wherein the representative comments are extracted from the clusters in the order of the number of comments in each cluster, and the representative comments are output in the extracted order. The representative comment extraction method described. 前記代表コメント抽出ステップは、各クラスタ内のコメント数が最も多いクラスタから代表コメントを抽出し、これ以降は、該代表コメントと最も類似度が高いコメントを含むクラスタから代表コメントを抽出し、抽出した順序で代表コメントを出力することを特徴とする請求項5また6に記載の代表コメント抽出方法。   In the representative comment extraction step, a representative comment is extracted from a cluster having the largest number of comments in each cluster, and thereafter, a representative comment is extracted and extracted from a cluster including a comment having the highest similarity to the representative comment. 7. The representative comment extracting method according to claim 5, wherein the representative comments are output in order. 前記代表コメント抽出ステップは、各クラスタ内の利用者が投稿したコメント数の順番に、クラスタから代表コメントを抽出し、抽出した順序で代表コメントを出力することを特徴とする請求項1から10のいずれか1項に記載の代表コメント抽出方法。   The representative comment extracting step extracts representative comments from the clusters in the order of the number of comments posted by users in each cluster, and outputs the representative comments in the extracted order. The representative comment extraction method according to any one of the above items. 複数のコメントを含むテキスト集合から、代表的なコメントを抽出するコンピュータを、
前記テキスト集合が含む語の重要度を算出し、該テキスト集合から、該テキスト集合での重要度が上位N(N:1以上の整数)件の語を、前記テキスト集合の特徴を示す重要語として抽出する重要語抽出手段と、
前記複数のコメントを、前記重要語抽出手段により抽出された重要語をもとにクラスタリングするクラスタリング手段と、
前記クラスタリング手段により分割された各クラスタから、少なくとも各1つずつの代表コメントを抽出する代表コメント抽出手段と、
して機能させることを特徴とするプログラム。
A computer that extracts representative comments from a text set containing multiple comments.
The importance of the words included in the text set is calculated, and from the text set, the words having the highest N (N: integer of 1 or more) importance in the text set are the important words indicating the characteristics of the text set. A keyword extraction means for extracting as
Clustering means for clustering the plurality of comments based on the important words extracted by the important word extracting means ;
Representative comment extracting means for extracting at least one representative comment from each cluster divided by the clustering means ;
A program characterized by making it function.
JP2011147473A 2011-07-01 2011-07-01 Representative comment extraction method and program Expired - Fee Related JP5740228B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011147473A JP5740228B2 (en) 2011-07-01 2011-07-01 Representative comment extraction method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011147473A JP5740228B2 (en) 2011-07-01 2011-07-01 Representative comment extraction method and program

Publications (2)

Publication Number Publication Date
JP2013015971A JP2013015971A (en) 2013-01-24
JP5740228B2 true JP5740228B2 (en) 2015-06-24

Family

ID=47688616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011147473A Expired - Fee Related JP5740228B2 (en) 2011-07-01 2011-07-01 Representative comment extraction method and program

Country Status (1)

Country Link
JP (1) JP5740228B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709777A (en) 2015-11-18 2017-05-24 阿里巴巴集团控股有限公司 Order clustering method and apparatus thereof, and anti-malicious information method and apparatus thereof
CN106599304B (en) * 2016-12-29 2020-03-24 中南大学 Modular user retrieval intention modeling method for small and medium-sized websites
CN106970988A (en) 2017-03-30 2017-07-21 联想(北京)有限公司 Data processing method, device and electronic equipment
US10810243B2 (en) * 2019-03-08 2020-10-20 Fuji Xerox Co., Ltd. System and method for generating abstractive summaries of interleaved texts
CN111597335B (en) * 2020-04-30 2023-07-14 北京科技大学 A K-means initial clustering center determination method for Weibo comment text
JP7019774B1 (en) * 2020-10-23 2022-02-15 エヌ・ティ・ティ・コミュニケーションズ株式会社 Information processing equipment, information output method and information output program
CN112529627B (en) * 2020-12-16 2023-06-13 中国联合网络通信集团有限公司 Commodity implicit attribute extraction method, device, computer equipment and storage medium
CN114297401A (en) * 2021-12-14 2022-04-08 中航机载系统共性技术有限公司 System knowledge extraction method based on clustering algorithm

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6910037B2 (en) * 2002-03-07 2005-06-21 Koninklijke Philips Electronics N.V. Method and apparatus for providing search results in response to an information search request
JP2004021793A (en) * 2002-06-19 2004-01-22 Chubu Electric Power Co Inc Link collection generation apparatus and link collection generation method
JP4533084B2 (en) * 2004-10-19 2010-08-25 株式会社リコー Important word presentation device
JP2008178037A (en) * 2007-01-22 2008-07-31 Sony Corp Information processing apparatus, information processing method, and information processing program
JP5175585B2 (en) * 2008-03-14 2013-04-03 パナソニックヘルスケア株式会社 Document processing apparatus, electronic medical chart apparatus, and document processing program
JP4745422B2 (en) * 2009-05-29 2011-08-10 株式会社東芝 Representative sentence extraction device and program
JP5402377B2 (en) * 2009-08-10 2014-01-29 日本電気株式会社 Keyword selection apparatus, method, program, and system

Also Published As

Publication number Publication date
JP2013015971A (en) 2013-01-24

Similar Documents

Publication Publication Date Title
JP5740228B2 (en) Representative comment extraction method and program
US20220035827A1 (en) Tag selection and recommendation to a user of a content hosting service
CN104255038B (en) A method and system for supplementing live broadcasting
US10229190B2 (en) Latent semantic indexing in application classification
CN102163228B (en) Method, apparatus and device for determining sorting result of resource candidates
US20170098165A1 (en) Method and Apparatus for Establishing and Using User Recommendation Model in Social Network
CN103377232A (en) Headline keyword recommendation method and system
CN103559206A (en) Information recommending method and system
US20190258719A1 (en) Emoji classifier
CN106462807A (en) Learning multimedia semantics from large-scale unstructured data
CN103559220B (en) Picture searching equipment, method and system
Ahlgren Research on sentiment analysis: the first decade
CN106294358A (en) The search method of a kind of information and system
CN112417845B (en) Text evaluation method, device, electronic device and storage medium
Torunoğlu et al. Wikipedia based semantic smoothing for twitter sentiment classification
JP5952711B2 (en) Prediction server, program and method for predicting future number of comments in prediction target content
CN104376034B (en) Information processing apparatus, information processing method and program
US11328218B1 (en) Identifying subjective attributes by analysis of curation signals
US20150169725A1 (en) Clustering Queries For Image Search
JP6373767B2 (en) Topic word ranking device, topic word ranking method, and program
CN103412880A (en) Method and device for determining implicit associated information between multimedia resources
JP2014085694A (en) Search device, search program, and search method
CN103514168B (en) Data processing method and device
Rezaei et al. Sentiment analysis on Twitter using McDiarmid tree algorithm
CN106503064B (en) An adaptive microblog topic summary generation method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20130408

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20130531

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140917

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141110

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150427

R150 Certificate of patent or registration of utility model

Ref document number: 5740228

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees