Abstract
In this chapter, we propose a method applying Web search results to the document classification for the purpose of enriching the amount of the training corpus. For the query that will be submitted to a Web search engine, the proposed method generates the Web query based on the matching score between words in documents and the category. Experimental results show that the Web query based on the higher ranked words can improve the document classification performance while the Web query based on the lower ranked words makes worse the document classification performance.
Access provided by Autonomous University of Puebla. Download chapter PDF
Similar content being viewed by others
Keywords
1 Introduction
Recently, a huge number of documents are produced and stored in digital archives [1]. Therefore, the document classification plays a very important role in many information management and retrieval tasks. It refers to the task of assigning a document to one pre-defined category. As described in the following Eq. (32.1), the document classification selects the category \( c_{i} \), taking the highest matching probability for the given the unlabeled document \( D \) where the category \( c_{i} \) is one element of the category set \( C \). In order to be easy to mathematically deal with the document classification problem, most document classification methods represent the unlabeled document \( D \) as the document vector \( \vec{d} \, \) consisting of word occurrences in the document. Most elements of the document vector take zero value.
Most digital documents are frequently updated, and the writers disseminate information and present their ideas on various topics [2]. Unlike news articles written by the well educated journalists, most digital documents such as weblogs tend to contain colloquial sentences and a slang language which misleads the classifier [3, 4]. Considering this cumbersomeness, some approaches have been proposed: the Naive Bayes-based approaches [4], the SVM based approaches [5], the knowledge-based approaches [6–8], the Maximum-Entropy based approaches [9–11], and Web based approaches [12].
In this paper, we propose the method applying the Web search results to the document classification. The rest of this paper is organized as follows. Section 32.2 will present the overview of the proposed method, and Sect. 32.3 will show some experimental results. Finally, the characteristics of the proposed method will conclude the paper in Sect. 32.4.
2 Application of Web Search Results for Document Classification
For the document classification, the proposed method assigns the relevant category to each document, as shown in Fig. 32.1. Given a document, for example, the proposed method assigns the category label such as A, B, C, or D to each document. Considering the data sparseness problem, the proposed method enriches the amount of the training corpus by cooperating with Web search engine.
Given the documents such as d1 to dm with the corresponding categories such as c1 to cl in the training set, the proposed method represents the documents as the document vectors consisting of the number of word occurrences in each document, as described in Fig. 32.2. According to the assumption that the larger training corpus is less troubled with the data sparseness problem, the proposed method adds the Web search results to the previously prepared training corpus. For the Web query generation, the proposed method first selects some useful words per category by using the Chi square statistics [13, 14]. The Chi square statistics of word feature \( f_{j} \) in the category \( c_{i} \) is defined as:
where A is the number of documents containing the word feature \( f_{j} \) in the category \( c_{i} \), B is the number of documents containing the word feature \( f_{j} \) in other categories rather than \( c_{i} \), C is the number of documents not containing the word feature \( f_{j} \) in the category \( c_{i} \), D is the number of documents not containing the word feature \( f_{j} \) in other categories rather than \( c_{i} \), and N is the total number of documents. Each word feature \( f_{j} \) was computed for every category, and the top n word features with the higher Chi square statistics are used for the query candidates.
Finally, the proposed method sends the query to the Open API (Application Programmer Interface) of the Web search engine, and receives the snippet results retrieved from the Web search engine. The proposed method assumes the snippet results of each query as one document.
3 Experiments
In order to prove the validity of utilizing the Web search results, we have tested the MALLET document classification package [9] with a mobile application description document corpus [15], which is divided into 90 % for the training set and 10 % for the test set. On the other hand, the proposed method is evaluated based on the evaluation criteria: precision, recall, and F-measure. Precision indicates the ratio of correct candidate categories from candidate categories predicted by the proposed document classification method. Recall indicates the ratio of correct candidate categories from the categories of the total documents in the corpus. F-measure indicates the harmonic mean of the precision and the recall. Because the document classification method predicts all categories of the given documents, the precision is the same as the recall. The baseline performance without any document classification method indicates 21 % because the documents corresponding to the utility capture roughly 21 % of the corpus.
The mallet performance indicates the recall of the baseline document classification method mallet, learned from the given training set without any Web search results. The mallet + Web search results performance indicates the recall of the document classification method mallet, learned from the training set adding an equal number of Web search results for each category. Table 32.1 describes that the mallet + Web search results method is a little bit more effective than the mallet method. Also, Table 32.1 shows that the performance does not always increase according to the addition of the Web search results; because the characteristics of mobile application description documents is too different from the characteristics of Web search results, which is too sensitive to the Web search queries. Besides, the performance does not generally increase too much by adding the Web search results; since most category prediction results in the test set are biased towards few categories corresponding to many documents while the Web search results help the categories with few documents.
4 Conclusion
In this paper, we propose a method applying Web search results to the document classification. The proposed method has the following characteristics. The proposed method enriches the amount of the training corpus by applying Web search results. Also, the proposed method cooperates with Web search engine by generating the Web query that will be submitted to a Web search engine. Experimental results show that the Web query based on the higher ranked words can improve the document classification performance while the Web query based on the lower ranked words makes worse the document classification performance. For future works, we want to propose a document classification method considering balancing the number of documents per category, and compare the effects of two methods adding Web search results. Unlike the already proposed method always add the same number of the Web search results to each category; the hopefully proposed method does not add any Web search results for the categories having many documents, while the method adds many Web search results for the categories with a few documents.
References
Nyberg K, Raiko T, Tinanen T, Hyvnen E (2010) Document classification utilising ontologies and relations between documents. In: Proceedings of the 8th workshop on mining and learning with graphs, Washington, pp 86–93
Ayyasamy RK, Tahayna B, Alhashmi S, Eu-gene S, Egerton S (2010) Mining wikipedia knowledge to improve document indexing and classification. In: 10th international conference on information science, signal processing and their applications, pp 806–809
Ferreiraa R, Freitasa F, Britob P, Meloa J, Limaa R, Costab E (2013) RetriBlog: an architecture-centered framework for developing blog crawlers. Expert Syst Appl 40(4):1177–1195
Park S, Kim CW, An DU (2009) E-mail classification and category re-organization using dynamic category hierarchy and PCA. J Inf Commun Convergence Eng 7(3):351–355
Baharudin B, Lee LH, Khan K (2010) A review of machine learning algorithms for text-documents classification. J Adv Inf Technol 1(1):4–20
Rubin TN, Chambers A, Smyth P, Steyvers M (2012) Statistical topic models for multi-label document classification. Mach Learn 88(1–2):157–208
Lu G, Huang P, He L, Cu C, Li X (2010) A new semantic similarity measuring method based on web search engines. WSEAS Trans Comput 9(1):1–10
Jialei Z, Hwang CG, Jung GD, Choi YK (2011) A design of K-XMDR search system using topic maps. J Inf Commun Convergence Eng 9(3):287–294
McCallum AK (2002) MALLET: a machine learning for language toolkit. http://mallet.cs.umass.edu
Berger A, Pietra SD, Pietra VD (1996) A maximum entropy approach to natural language processing. Comput Linguist 22(1):39–71
Lim JH, Hwang YS, Park SY, Rim HC (2004) Semantic role labeling using maximum entropy model. In: Shared task of the fourteenth conference on computational natural language learning
Samarawickrama S, Jayaratne L (2011) Automatic text classification and focused crawling. In: Sixth international conference on digital information management (ICDIM), pp 143–148
Yang Y, Pedersen JO (1997) A comparative study on feature selection in text categorization. In: 14th international conference on machine learning, pp 412–420
Seki K, Mostafa J (2005) An application of text categorization methods to gene ontology annotation. In: 28th annual international ACM SIGIR conference on research and development in information retrieval, pp 138–145
Kihl T, Chang J, Park SY (2012) Application tag system based on experience and pleasure for hedonic searches. Convergence Hybrid Inf Technol Commun Comput Inf Sci 310:342–352
Acknowledgments
This research was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education, Science and Technology (2012R1A1A3013405).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer Science+Business Media Dordrecht
About this chapter
Cite this chapter
Park, SY., Chang, J., Kihl, T. (2013). Application of Web Search Results for Document Classification. In: Jung, HK., Kim, J., Sahama, T., Yang, CH. (eds) Future Information Communication Technology and Applications. Lecture Notes in Electrical Engineering, vol 235. Springer, Dordrecht. https://doi.org/10.1007/978-94-007-6516-0_32
Download citation
DOI: https://doi.org/10.1007/978-94-007-6516-0_32
Published:
Publisher Name: Springer, Dordrecht
Print ISBN: 978-94-007-6515-3
Online ISBN: 978-94-007-6516-0
eBook Packages: EngineeringEngineering (R0)