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.

$$ \begin{array}{*{20}c} {\mathop {\arg \hbox{max} }\limits_{{c_{i} \in C}} } & {P( \, c_{i} \, | \, D \, )} \\ \end{array} \, = \, \begin{array}{*{20}c} {\mathop {\arg \hbox{max} }\limits_{{c_{i} \in C}} } & {P( \, c_{i} \, | \, \vec{d} \, )} \\ \end{array} $$
(32.1)

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 [68], the Maximum-Entropy based approaches [911], 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.

Fig. 32.1
figure 1

Document classification method using web search results

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:

Fig. 32.2
figure 2

Training corpus adding the given documents to the web search results

$$ \chi^{2} (f_{j} ,c_{i} ) \approx \frac{{N(AD - CB)^{2} }}{(A + C)(B + D)(A + B)(C + D)} $$
(32.2)

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.

Table 32.1 Performance variation by the addition of web search results

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.