utilizing wikipedia as a knowledge source in categorizing ... · a facet of an initial topic...

4
Utilizing Wikipedia as a Knowledge Source in Categorizing Topic related Korean Blogs into Facets Dongkwon LIMDaisuke YOKOMOTO†† Kensaku MAKITATakehito UTSURO†† Tomohiro FUKUHARA††† College of Engineering Systems, School of Science and Engineering, University of Tsukuba ††Graduate School of Systems and Information Engineering, University of Tsukuba †††Center for Service Research, National Institute of Advanced Industrial Science and Technology 1 Introduction As blog services and blog tools are becoming more and more popular, people have been able to express one’s own interests as well as opinions on the Web. Search engines are then used for accessing various information that can be found in the blogosphere, where, given a search query, a ranked list of blog posts is provided as a search result. However, such a search result in the form of a ranked list is not usu- ally helpful for a user to quickly identify blog posts that satisfy his/her information need. This is espe- cially true when, given a search query, the search result is a mixture of blog posts that focus on vari- ous sub-topics. In such a situation, the framework of faceted search [8], which has been well studied in the information retrieval community, can be a solution. In this paper, we propose a framework of categoriz- ing Korean blog posts according to their sub-topics, where, given a search query, those blog posts are col- lected from the Korean blogosphere. In our frame- work, the sub-topic of each blog post is regarded as a facet of an initial topic keyword, and a facet is automatically assigned to each blog post. For ex- ample, Figure 1 illustrates a result of faceted search for an initial topic keyword “global warming” within the Korean blogosphere. In this result, a number of collected blog posts regarding “global warming” are categorized into facets by identifying each blogger’s interest in a blog post. This procedure of assigning a facet to a blog post is realized by utilizing Wikipedia entries as a knowledge source and each Wikipedia entry title is considered as a facet label. In the eval- uation, we can achieve about 5070 % accuracy. 2 Retrieving Blog Posts with an Initial Topic Keyword Given an initial topic keyword t 0 , this section de- scribes how to retrieve blog posts with t 0 as a search query. With this procedure, we intend to collect can- didates of blog posts that are closely related to t 0 . First, we use an existing Web search engine API, which returns a ranked list of blog posts, given a topic keyword. We use the search engine “Naver Open API” 1 for Korean. With this API, we restrict the target as “blog”, indicating that we only collect blog posts. For each query, this search engine API returns a ranked list of at most 1,000 blog posts. Then, out of all the returned blog posts, we fo- cus on major 4 Korean blog hosts 2 , and manually generate patterns for extracting the body text from each blog post. For each initial topic keyword t 0 , we construct the set P (t 0 ) of blog posts, each of which is with its body text successfully extracted from the blog post. Here, for each t 0 of the 6 topics we list in section 4 for evaluation, we have about 700 850 blog posts included in the set P (t 0 ). 3 Categorizing Blog Posts into Facets 3.1 Set of Facets First, for each initial topic keyword t 0 , we construct the set F (t 0 ) of facets from the whole entries in the Korean version of Wikipedia. Let f 0 be a Wikipedia entry, where the initial topic keyword t 0 is included in the body text of f 0 . We consider f 0 as a candidate of a facet for t 0 . Then, we collect such f 0 that the document frequency df(P (t 0 ),t(f 0 )) of the title t(f 0 ) of f 0 over the set of collected blog posts P (t 0 ) is more than or equal to 5 into the set F (t 0 ) of facets: F (t 0 ) = f df( P (t 0 ),t(f )) 5 1 http://dev.naver.com/openapi/ (in Korean) 2 blog.naver.com, blog.daum.net, blog.cyworld.com, blog.paran.com 言語処理学会 第 17 回年次大会 発表論文集 (2011 年 3 月)  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ Copyright(C) 2011 The Association for Natural Language Processing. All Rights Reserved. 876

Upload: others

Post on 24-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Utilizing Wikipedia as a Knowledge Source in Categorizing ... · a facet of an initial topic keyword, and a facet is automatically assigned to each blog post. For ex-ample, Figure

Utilizing Wikipedia as a Knowledge Source

in Categorizing Topic related Korean Blogs into Facets

Dongkwon LIM† Daisuke YOKOMOTO†† Kensaku MAKITA†Takehito UTSURO†† Tomohiro FUKUHARA†††

†College of Engineering Systems, School of Science and Engineering, University of Tsukuba††Graduate School of Systems and Information Engineering, University of Tsukuba

†††Center for Service Research,National Institute of Advanced Industrial Science and Technology

1 Introduction

As blog services and blog tools are becoming moreand more popular, people have been able to expressone’s own interests as well as opinions on the Web.Search engines are then used for accessing variousinformation that can be found in the blogosphere,where, given a search query, a ranked list of blogposts is provided as a search result. However, such asearch result in the form of a ranked list is not usu-ally helpful for a user to quickly identify blog poststhat satisfy his/her information need. This is espe-cially true when, given a search query, the searchresult is a mixture of blog posts that focus on vari-ous sub-topics. In such a situation, the framework offaceted search [8], which has been well studied in theinformation retrieval community, can be a solution.

In this paper, we propose a framework of categoriz-ing Korean blog posts according to their sub-topics,where, given a search query, those blog posts are col-lected from the Korean blogosphere. In our frame-work, the sub-topic of each blog post is regarded asa facet of an initial topic keyword, and a facet isautomatically assigned to each blog post. For ex-ample, Figure 1 illustrates a result of faceted searchfor an initial topic keyword “global warming” withinthe Korean blogosphere. In this result, a number ofcollected blog posts regarding “global warming” arecategorized into facets by identifying each blogger’sinterest in a blog post. This procedure of assigning afacet to a blog post is realized by utilizing Wikipediaentries as a knowledge source and each Wikipediaentry title is considered as a facet label. In the eval-uation, we can achieve about 50∼70 % accuracy.

2 Retrieving Blog Posts withan Initial Topic Keyword

Given an initial topic keyword t0, this section de-scribes how to retrieve blog posts with t0 as a search

query. With this procedure, we intend to collect can-didates of blog posts that are closely related to t0.

First, we use an existing Web search engine API,which returns a ranked list of blog posts, given atopic keyword. We use the search engine “NaverOpen API”1 for Korean. With this API, we restrictthe target as “blog”, indicating that we only collectblog posts. For each query, this search engine APIreturns a ranked list of at most 1,000 blog posts.

Then, out of all the returned blog posts, we fo-cus on major 4 Korean blog hosts2, and manuallygenerate patterns for extracting the body text fromeach blog post. For each initial topic keyword t0, weconstruct the set P (t0) of blog posts, each of whichis with its body text successfully extracted from theblog post. Here, for each t0 of the 6 topics we listin section 4 for evaluation, we have about 700 ∼ 850blog posts included in the set P (t0).

3 Categorizing Blog Posts intoFacets

3.1 Set of Facets

First, for each initial topic keyword t0, we constructthe set F (t0) of facets from the whole entries in theKorean version of Wikipedia. Let f0 be a Wikipediaentry, where the initial topic keyword t0 is includedin the body text of f0. We consider f0 as a candidateof a facet for t0. Then, we collect such f0 that thedocument frequency df(P (t0), t(f0)) of the title t(f0)of f0 over the set of collected blog posts P (t0) is morethan or equal to 5 into the set F (t0) of facets:

F (t0) ={

f∣∣∣ df( P (t0), t(f) ) ≥ 5

}

1http://dev.naver.com/openapi/ (in Korean)2blog.naver.com, blog.daum.net, blog.cyworld.com,

blog.paran.com

言語処理学会 第17回年次大会 発表論文集 (2011年3月)  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄

Copyright(C) 2011 The Association for Natural Language Processing. All Rights Reserved.                       

― 876 ―

Page 2: Utilizing Wikipedia as a Knowledge Source in Categorizing ... · a facet of an initial topic keyword, and a facet is automatically assigned to each blog post. For ex-ample, Figure

Figure 1: Framework of Categorizing Blog Posts into Facets

3.2 Idf vector of related terms ex-tracted from a Wikipedia entry

Given a Wikipedia entry e, we automatically extractterms that are closely related to e. From the bodytext of each Wikipedia entry e, we extract bold-facedterms, anchor texts of hyperlinks, and the title of aredirect, which is a synonymous term of the title ofthe target page. Then, we construct the set R(e) ofextracted related terms from the entry e.

Next, from each entry e, an idf vector �I(e) is gen-erated as below:

�I(e) =(

w(r1), . . . , w(rn))

where, for each dimension of the vector, ri ∈R(e) (i = 1, . . . , n) holds and for the length n ofthe vector, n = |�I(e)| = |R(e)| holds.

The weight w(r) of each dimension is given as theproduct below:

w(r) = c(type(r)) × idf(W, r) × idf(F (t0), r)

Here, idf(X, r) is the idf (inverse document fre-quency) of a related term r over the set X ofWikipedia entries. Note that whether a related termr is included in a Wikipedia entry e (∈ X) or not isnot measured against the body text of the entry e,

but against the set R(e) of related terms extractedfrom e.

idf(X, r) = log

∣∣X∣∣

∣∣∣{e ∈ X

∣∣r ∈ R(e)}∣∣∣

Also, idf(W, r) is intended to measure the idf of arelated term r over the set W of the whole entries inthe Korean version of Wikipedia, while idf(F (t0), r)is intended to measure the idf of a related term r overthe set F (t0) of facets constructed in the previoussection from t0. The coefficient c(type(r)) is definedas 3 when type(r) is the entry title or the title of aredirect, as 2 when type(r) is a bold-faced term, andas 0.5 when type(r) is an anchor text of a hyperlinkto another entry in Wikipedia.

3.3 Term Frequency Vector of a BlogPost

From each blog post p (∈ P (t0)) retrieved in section 2given an initial topic keyword t0, a term frequencyvector �G(p) is generated as below:

�G(p) =(

freq(p, r1), . . . , freq(p, rn))

where, for each dimension of the vector, ri ∈R(e) (i = 1, . . . , n) holds and for the length n of

Copyright(C) 2011 The Association for Natural Language Processing. All Rights Reserved.                       

― 877 ―

Page 3: Utilizing Wikipedia as a Knowledge Source in Categorizing ... · a facet of an initial topic keyword, and a facet is automatically assigned to each blog post. For ex-ample, Figure

Table 1: Accuracy of Pairs of 〈Blog Post, Facet〉 and Examples of Facets

the vector, n = |�I(e)| = |R(e)| holds. The term fre-quency freq(p, r) of each dimension is given as thefrequency of a related term r in the blog post p.

3.4 Similarity of a Wikipedia Entryand a Blog Post

The similarity Sim(e, p) of a Wikipedia entry e anda blog post p is defined as the inner product of theidf vector �I(e) of e and the term frequency vector�G(p) of p.

Sim(e, p) = �I(e) · �G(p) =∑

r∈R(e)

w(r) × freq(p, r)

3.5 Assigning a Facet to a Blog Post

In this section, we describe how to assign a facet toeach blog post p (∈ P (t0)). In principle, to each blogpost p, we simply assign a facet f (∈ F (t0)) whichmaximizes the similarity Sim(f, p) of the facet f andthe blog post p:

f = argmaxf ′∈F (t0)

Sim(f ′, p)

Then, we generate a pair 〈p, f〉 of a blog post p anda facet f assigned to p. Finally, in the evaluationof the next section, for each facet f (∈ F (t0)), we

collect five pairs of 〈p, f〉 with the highest similaritiesSim(f, p) into the set PFeval for evaluation:

〈p1, f〉, 〈p2, f〉, 〈p3, f〉, 〈p4, f〉, 〈p5, f〉( s. t. i < j, Sim(f, pi) ≥ Sim(f, pj) )

4 Evaluation

For evaluation, we pick up the 6 topics listed in Ta-ble 1 as the initial topic keywords. In Table 1, we alsoshow the number of facets extracted according to theprocedure in section 3.1 as well as the examples ofextracted facets3.

For each pair 〈p, f〉 (∈ PFeval) of a blog post p anda facet f assigned to p, we manually judge whetherthe following two criteria are satisfied:

• The blog post p is closely related to the initialtopic keyword t0.

• The blog post p is closely related to the facet f .3From the results of automatically extracting facets accord-

ing to the procedure in section 3.1, we manually remove uselessfacet candidates such as those corresponding to hypernym ofthe initial topic keyword (e.g., a hypernym “mobile phone”of “smartphone”) and closely related common words (e.g., afacet candidate “earth” for “global warming”). The numberof removed facet candidates is 25 in total for the 6 topics.

Copyright(C) 2011 The Association for Natural Language Processing. All Rights Reserved.                       

― 878 ―

Page 4: Utilizing Wikipedia as a Knowledge Source in Categorizing ... · a facet of an initial topic keyword, and a facet is automatically assigned to each blog post. For ex-ample, Figure

Then, we measure the following accuracy:

accuracy =

# of pairs 〈p, f〉 (∈ PFeval) for whichp is closely related to both t0 and f∣∣∣PFeval

∣∣∣

Table 1 shows the accuracy for each of the 6 topics forevaluation. For each of the 6 topics for evaluation,we achieved about 50∼70 % accuracy.

Examples of assigning an appropriate facet to blogposts include the case for an initial topic keyword“smoking” and a facet “miscarriage”, where thoseblog posts and the Wikipedia entry with the ti-tle “miscarriage” share related terms such as “preg-nancy”, “fertilization”, “ovum” and “fetus”. On theother hand, examples of assigning an inappropri-ate facet to blog posts include the case for the ini-tial topic keyword ‘smoking” and a facet “electroniccigarette”, where those blog posts should be assigneda much more appropriate facet such as “passive smok-ing”. However, in this case, the Wikipedia entry withthe title “passive smoking” has just a small numberof related terms such as “cigarette”, “smoking ban”and “smoker”, and most of those related terms arealso shared with the Wikipedia entry with the title“electronic cigarette”. In such a case, it is not easyto assign the appropriate facet “passive smoking” tothose blog posts, but the inappropriate facet “elec-tronic cigarette” is assigned.

Furthermore, most cases of assigning an inappro-priate facet to blog posts are due to the fact thatthe set F (t0) of facets for the initial topic keywordt0 does not include any appropriate facets for certainnumber of blog posts. For example, in the case ofan initial topic keyword “smartphone”, bloggers in-troduce a lot of names of smartphone devices, wheremost of them are not listed as titles of entries in theKorean version of Wikipedia. In such cases, we couldnot include names of those smartphone devices in theset F (t0) of facets, and thus certain number of blogposts are assigned inappropriate facets included inF (t0).

5 Related Works

In TREC 2009 blog track [4], faceted blog distilla-tion task was studied, where three facets, namely,opinionated/personal/in-depth are introduced andparticipants are required to assign facets to blogfeeds. [1] invented a multi-faceted blog search frame-work, where various facets are introduced in terms oftopics, bloggers, links, and sentiments. [3] also pro-posed a framework of generating a faceted search in-terface for Wikipedia.

Another related works include techniques of clus-tering and summarizing search results [2], or thoseof clustering search results and assigning cluster la-bels [6,7]. Compared with those techniques on search

results clustering, the proposed technique is advan-tageous in that it is capable of assigning facets toeven quite a small number of blog posts, simply be-cause it utilizes Wikipedia as a knowledge source forassigning facets to blog posts.

The technique employed in this paper is originallyinvented in our related works [5,9], where it is appliedto the task of categorizing Japanese blog posts intofacets.

6 Conclusion

In this paper, we proposed a framework of categoriz-ing Korean blog posts according to their sub-topics,where, given a search query, those blog posts are col-lected from the Korean blogosphere. In our frame-work, the sub-topic of each blog post is regarded as afacet of an initial topic keyword, and a facet is auto-matically assigned to each blog post. This procedureof assigning a facet to a blog post is realized by uti-lizing Wikipedia entries as a knowledge source andeach Wikipedia entry title is considered as a facetlabel. In the evaluation, we achieved about 50∼70% accuracy.

References[1] K. Fujimura, H. Toda, T. Inoue, N. Hiroshima,

R. Kataoka, and M. Sugizaki. BLOGRANGER - a multi-faceted blog search engine. In Proc. 3rd Ann. Workshopon the Weblogging Ecosystem: Aggregation, Analysis andDynamics, 2006.

[2] J. Harashima and S. Kurohashi. Summarizing search re-sults using PLSI. In Proc. 2nd Workshop on NLPIX, pages12–20, 2010.

[3] C. Li, N. Yan, S. B. Roy, L. Lisham, and G. Das. Faceted-pedia: Dynamic generation of query-dependent faceted in-terfaces for Wikipedia. In Proc. 19th WWW, pages 651–660, 2010.

[4] C. Macdonald, I. Ounis, and I. Soboroff. Overview of theTREC-2009 blog track. In Proc. TREC-2009, 2009.

[5] K. Makita, D. Yokomoto, T. Utsuro, and T. Fukuhara.Analyzing temporal distribution of sub-topics in blogs re-lated to a topic. In Proc. 3rd DEIM, 2011. (in Japanese).

[6] T. Shibata, Y. Bamba, K. Shinzato, and S. Kurohashi.Web information organization using keyword distillationbased clustering. In Proc. WI-IAT, pages 325–330, 2009.

[7] H. Toda, R. Kataoka, and M. Oku. Search result clusteringusing informatively named entities. In International Jour-nal of Human-Computer Interaction, pages 3–23, 2007.

[8] D. Tunkelang. Faceted Search. Synthesis Lectures on In-formation Concepts, Retrieval, and Services. Morgan &Claypool Publishers, 2009.

[9] D. Yokomoto, D. Lim, K. Makita, T. Utsuro, Y. Kawada,T. Fukuhara, N. Kando, M. Yoshioka, H. Nakagawa, andY. Kiyota. Utilizing Wikipedia as a knowledge source incategorizing topic related blogs into facets. In Proc. 3rdDEIM, 2011. (in Japanese).

Copyright(C) 2011 The Association for Natural Language Processing. All Rights Reserved.                       

― 879 ―