Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "Y09-1015",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T13:42:58.683452Z"
},
"title": "Adjective Density as a Text Formality Characteristic for Automatic Text Classification: A Study Based on the British National Corpus * * * *",
"authors": [
{
"first": "Alex",
"middle": [
"Chengyu"
],
"last": "Fang",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "University of Hong Kong",
"location": {
"addrLine": "Tat Chee Avenue",
"settlement": "Kowloon, Hong Kong SAR"
}
},
"email": "acfang@cityu.edu.hk"
},
{
"first": "Jing",
"middle": [],
"last": "Cao",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "University of Hong Kong",
"location": {
"addrLine": "Tat Chee Avenue",
"settlement": "Kowloon, Hong Kong SAR"
}
},
"email": ""
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "In this article, we report significant findings resulting from an investigation into the correlation between adjective density, calculated as the proportion of adjectives in word tokens, and degrees of text formality as part of an attempt to examine the potential application of adjectives in automatic text classification and identification. Correlations obtained from the training corpus will be compared with human ranking of the text categories concerned in the study and then adapted to unseen data in the test set. A linear regression analysis suggests a strong correlation between degrees of text formality and adjective density. With a weighted average F-measure of 0.606 achieved by a Na\u00efve Bayes classifier, the research establishes adjectives as a powerful differentia of text categories amongst the open word classes, an important feature that has been generally ignored by past studies in automatic text categorization. The empirical findings suggest that the use of adjective density will lead to enhanced practical systems for automatic text classification.",
"pdf_parse": {
"paper_id": "Y09-1015",
"_pdf_hash": "",
"abstract": [
{
"text": "In this article, we report significant findings resulting from an investigation into the correlation between adjective density, calculated as the proportion of adjectives in word tokens, and degrees of text formality as part of an attempt to examine the potential application of adjectives in automatic text classification and identification. Correlations obtained from the training corpus will be compared with human ranking of the text categories concerned in the study and then adapted to unseen data in the test set. A linear regression analysis suggests a strong correlation between degrees of text formality and adjective density. With a weighted average F-measure of 0.606 achieved by a Na\u00efve Bayes classifier, the research establishes adjectives as a powerful differentia of text categories amongst the open word classes, an important feature that has been generally ignored by past studies in automatic text categorization. The empirical findings suggest that the use of adjective density will lead to enhanced practical systems for automatic text classification.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Abstract",
"sec_num": null
}
],
"body_text": [
{
"text": "Text classification according to degrees of formality has been a long-standing issue that is both linguistically complex and computationally challenging. Biber (1988) examines 23 text categories according to six dimensions involving 67 chosen linguistic features. The first dimension (involved vs. informational) is related to text formality although the study reveals no clear-cut distinction between spoken and written texts through the use of the selected linguistic features. Sigley (1997) proposes to evaluate text formality by integrating 29 linguistic features into a formality index. Although the study concludes that such an index can evaluate a wide variety of text categories, there are still overlapping written and spoken categories that the formality index cannot deal with satisfactorily.",
"cite_spans": [
{
"start": 154,
"end": 166,
"text": "Biber (1988)",
"ref_id": "BIBREF0"
},
{
"start": 480,
"end": 493,
"text": "Sigley (1997)",
"ref_id": "BIBREF8"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Text Classification and Past Studies",
"sec_num": "1.1"
},
{
"text": "More recently, linguistic features specifically involving word classes have been investigated and employed for automatic text classification either through combining various word classes into a joint index to measure text formality or through using specific sets of a certain grammatical class to distinguish text categories. For example, Dewaele (1999 and 2002) propose a formula of formality based on word classes: (noun, adjective, preposition, article) \u2212 freq (pronoun, verb, adverb, interjection ) ",
"cite_spans": [
{
"start": 339,
"end": 356,
"text": "Dewaele (1999 and",
"ref_id": "BIBREF3"
},
{
"start": 357,
"end": 362,
"text": "2002)",
"ref_id": "BIBREF4"
},
{
"start": 417,
"end": 456,
"text": "(noun, adjective, preposition, article)",
"ref_id": null
},
{
"start": 464,
"end": 502,
"text": "(pronoun, verb, adverb, interjection )",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Text Classification and Past Studies",
"sec_num": "1.1"
},
{
"text": "F = freq",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Text Classification and Past Studies",
"sec_num": "1.1"
},
{
"text": "+ 100 \u2211 \u2211 2 (1)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Text Classification and Past Studies",
"sec_num": "1.1"
},
{
"text": "Results show that such a formality score is quite effective in separating speech from writing and that imaginative writing can be separated from informational writing. Dempsey et al. (2007) investigate whether phrasal verbs can distinguish writing from speech, and formal from informal registers. The frequency counts of 397 most frequently used phrasal verbs were calculated and used to measure the formality of texts in three corpora. The results show that in most cases phrasal verbs can significantly distinguish writing from speech, and formal from informal registers. It is worth noticing that although a wide range of text categories are represented in the chosen corpora, the study only proposes a broad dichotomy classification, writing vs. speech and formal vs. informal registers. Rittman (2008) employs a set of trait adjectives, speaker-oriented adverbs, and trait adverbs to examine three chosen genres (i.e. academic, fiction, and news) in the British National Corpus (BNC). The results show that it is possible to use the particular sets of adjectives and adverbs to classify genres. In particular, speaker-oriented adverbs are found to be more effective than trait adjectives and adverbs.",
"cite_spans": [
{
"start": 168,
"end": 189,
"text": "Dempsey et al. (2007)",
"ref_id": "BIBREF1"
},
{
"start": 792,
"end": 806,
"text": "Rittman (2008)",
"ref_id": "BIBREF7"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Text Classification and Past Studies",
"sec_num": "1.1"
},
{
"text": "This article reports an investigation into the use of adjectives to classify texts. In particular, the investigation focuses on the density of adjectives, defined as the proportion of adjectives amongst word tokens, as a characteristic of text formality that can be applied to effective text classification. For this purpose, a wide range of text types are investigated, covering not only transcribed speech but also written texts divided into six sub-categories (Table 1) .",
"cite_spans": [],
"ref_spans": [
{
"start": 463,
"end": 472,
"text": "(Table 1)",
"ref_id": "TABREF0"
}
],
"eq_spans": [],
"section": "Adjectives and Text Formality",
"sec_num": "1.2"
},
{
"text": "The investigation attempts to address the question how strongly adjective density correlates with text formality, a research question that past studies have not explicitly addressed. Such a correlation will be measured in both the training and test sets, and compared with the standard of human ranking. We shall report empirical results that suggest a strong and significant correlation between degrees of text formality and adjective density that can be used to mimic human ranking of the categories. It will be shown on empirical basis that adjective density successfully separates speech from writing and, within writing, academic prose from nonacademic prose. Our study significantly extends past studies by further simplifying the set of characteristic features for text classification.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Adjectives and Text Formality",
"sec_num": "1.2"
},
{
"text": "The article will be organized as follows: Section 2 will discuss the methodology and corpus resources adopted by the investigation. Section 3 describes both the manual ranking of the text categories concerned and the automatic ranking of the training set based on adjective density, followed by an evaluation. Section 4 will describe an attempt to adapt observations of the training set to unseen data in the test set. Section 5 describes the experiment using the Na\u00efve Bayes classifier available in Weka, a general-purpose machine learning workbench (Holmes et al 1994) , where adjective density is used as the sole feature for text classification. Finally, some conclusions will be drawn in Section 6.",
"cite_spans": [
{
"start": 551,
"end": 570,
"text": "(Holmes et al 1994)",
"ref_id": "BIBREF5"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Adjectives and Text Formality",
"sec_num": "1.2"
},
{
"text": "The investigation required a large corpus of texts that represents a range of text categories to be ranked manually according to degrees of formalities. The corpus needs to be grammatically tagged to enable the retrieval of adjectives, whose density, defined as the proportion in word tokens, will be computed and used to rank the same range of text categories. The two rankings will be subsequently analyzed for possible correlation. In the event of significant correlation between human ranking and automatic ranking according to adjective design, unseen data in the test set will be used to verify such correlation.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Methodology and Corpus Resource",
"sec_num": "2"
},
{
"text": "The British National Corpus (BNC) was used for the investigation for its size, its wide range of text categories and its part-of-speech annotation. This corpus has over 100 million word tokens and represents a wide cross-section of British English from the later part of the 20th century. Eight text categories are identified:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Methodology and Corpus Resource",
"sec_num": "2"
},
{
"text": "1. Conversation 2. Other spoken 3. Academic prose 4. Fiction 5. Newspapers 6. Non-academic prose 7. Other published writing 8. Unpublished writing A sub-corpus was created with samples randomly selected from the eight text categories in the BNC and a total of 3 million word tokens were selected for each category. See Table 1 for a summary of the composition of the sub-corpus. From this subcorpus, a training set was created that accounted for 80% of the total word tokens. The remaining 20% was kept as the test set for unseen data.",
"cite_spans": [],
"ref_spans": [
{
"start": 319,
"end": 326,
"text": "Table 1",
"ref_id": "TABREF0"
}
],
"eq_spans": [],
"section": "Methodology and Corpus Resource",
"sec_num": "2"
},
{
"text": "Seven human subjects (six PhD students and one professor in linguistics) were invited to evaluate the formality of the eight text categories independently. They were asked to rank the text categories in the order of formality by specifying 1, 2, 3\u2026etc, with 1 being the most informal and 8 the most formal. Inter-rater reliability was then tested by computing the intraclass correlation (ICC) coefficient. The value of the ICC coefficient is 0.857 with p<0.001, which is considered as outstanding inter-rater reliability (Landis and Koch, 1977) . Next, the means of the human judgments were computed, according to which the eight different text categories were ranked. Table 2 summarizes the results with R m indicating manual ranking. As can be observed from Table 2 , manual ranking of the eight text categories shows at least two features. First, spoken texts, including Conversation and Other spoken, are considered more informal than written texts. Second, among written categories, academic prose is regarded as the most formal, and expectedly separated from non-academic prose, which is ranked in the fourth place.",
"cite_spans": [
{
"start": 521,
"end": 544,
"text": "(Landis and Koch, 1977)",
"ref_id": "BIBREF6"
}
],
"ref_spans": [
{
"start": 669,
"end": 676,
"text": "Table 2",
"ref_id": "TABREF1"
},
{
"start": 760,
"end": 767,
"text": "Table 2",
"ref_id": "TABREF1"
}
],
"eq_spans": [],
"section": "Manual Ranking",
"sec_num": "3.1"
},
{
"text": "Adjective density is defined as the proportion of adjectives in all the word tokens for each category:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Adjective Density and Automatic Ranking",
"sec_num": "3.2"
},
{
"text": "Adjective density = Frequency of adjectives Frequency of word tokens \u00d7100",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Adjective Density and Automatic Ranking",
"sec_num": "3.2"
},
{
"text": "(2)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Adjective Density and Automatic Ranking",
"sec_num": "3.2"
},
{
"text": "All adjectives were retrieved from the training corpus and their proportion computed. Table 3 presents adjective density of the eight text categories in the training set in ascending order. As noted in Table 3 , academic prose has the highest density of adjectives, 9.63%, whereas conversation has the lowest density of 3.49%. Form the viewpoint of speech and writing, we notice that the written texts are grouped together towards the bottom of the scale and that the spoken texts are clustered together at the top of the scale. Moreover, within writing, academic prose has the highest adjective density, similarly separated from non-academic prose as in human ranking. Also similar to human ranking, fiction has the lowest density among the written texts, boarding the spoken texts on the scale. Initial results therefore suggest that spoken categories have a generally lower adjective density while written texts show an overall higher use of adjectives. More importantly, results shown in Table 3 suggest that informal categories, such as the spoken ones, have a lower adjective density and formal categories tend to have a higher adjective density.",
"cite_spans": [],
"ref_spans": [
{
"start": 86,
"end": 93,
"text": "Table 3",
"ref_id": "TABREF2"
},
{
"start": 202,
"end": 209,
"text": "Table 3",
"ref_id": "TABREF2"
},
{
"start": 992,
"end": 999,
"text": "Table 3",
"ref_id": "TABREF2"
}
],
"eq_spans": [],
"section": "Adjective Density and Automatic Ranking",
"sec_num": "3.2"
},
{
"text": "This automatic ranking according to adjective density (R adj ) was then examined by comparing it with the manual ranking (R m ). The absolute difference of each paired rankings (D) was calculated and Table 4 presents the results. Based on D, the Spearman rank correlation coefficient r s was calculated between the automatic ranking of adjective density and human ranking according to the formula:",
"cite_spans": [],
"ref_spans": [
{
"start": 200,
"end": 207,
"text": "Table 4",
"ref_id": "TABREF3"
}
],
"eq_spans": [],
"section": "Evaluating Manual and Automatic Rankings",
"sec_num": "3.3"
},
{
"text": ") 1 ( 6 1 2 2 \u2212 \u2212 = \u2211 n n D r i s (3)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Evaluating Manual and Automatic Rankings",
"sec_num": "3.3"
},
{
"text": "As a result, the value of the Spearman rank correlation coefficient is 0.833, which is significant at the level of 0.02. In other words, there is strong evidence of agreement between the automatic ranking of adjective density and the manual ranking. This result also suggests a strong correlation between adjective density and text formality.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Evaluating Manual and Automatic Rankings",
"sec_num": "3.3"
},
{
"text": "To further examine the relation between adjective density and formality of text categories, linear regression was computed and analyzed. The regression equation was first graphed to determine if there is a possible linear relationship (see Figure 1 ).",
"cite_spans": [],
"ref_spans": [
{
"start": 240,
"end": 248,
"text": "Figure 1",
"ref_id": null
}
],
"eq_spans": [],
"section": "Linear Regression Analysis",
"sec_num": "3.4"
},
{
"text": "As can be seen in Figure 1 , the points seem to follow a linear pattern with a positive slop. Next, the linear correlation coefficient (r) was computed. The value of r is 0.988 and again suggests a strong positive linear relationship between adjective density and degree of text formality. Accordingly, the coefficient of determination (r 2 ) is 0.977, indicating that about 97.7% of the variation in the density data can be explained by the degree of text formality. More importantly, since the value of r 2 is close to 1, the regression equation from the training dataset will be useful to make predictions of unseen datasets.",
"cite_spans": [],
"ref_spans": [
{
"start": 18,
"end": 26,
"text": "Figure 1",
"ref_id": null
}
],
"eq_spans": [],
"section": "Figure 1: Graph of adjective density by automatic ranking",
"sec_num": null
},
{
"text": "The regression equation was determined from the training data to construct a model for possible adaptation to unseen datasets. The linear regression equation allows us to obtain two parameters: intercept (\u03b1) and gradient (\u03b2), given adjective density (Y) and automatic ranking (X) from the training set:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Adapting to Unseen Datasets",
"sec_num": "4"
},
{
"text": "EQUATION",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [
{
"start": 0,
"end": 8,
"text": "EQUATION",
"ref_id": "EQREF",
"raw_str": "X Y \u03b2 \u03b1 + =",
"eq_num": "(4)"
}
],
"section": "Adapting to Unseen Datasets",
"sec_num": "4"
},
{
"text": "Equation 4is therefore seen as a model characterizing the correlation between adjective density and ranking along a continuum of text formality. Such a model can be used to predict the ranking and therefore the text category given an unseen text for which only adjective density is known. Effectively, an automatic classifier can be constructed that operates on adjective density alone. However, it is necessary to make sure that such a model will show a good level of consistency when tested with unseen data from the test set, that is, the high level of correlation can be replicated and observed on the test set. The following sections will first describe the construction of model based on the regression equation, and then the expected ranking of adjective density will be calculated, and finally the expected ranking will be evaluated by both manual and automatic rankings.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Adapting to Unseen Datasets",
"sec_num": "4"
},
{
"text": "Based on the data from the training set, the regression equation is determined and graphed in Figure 2 . Therefore, the acquired parameters are: \u03b1 = 2.998 and \u03b2 = 0.841. In this way, given adjective density of the unseen dataset (Y), Equation (4) can be converted into a model to predict the expected automatic ranking (X) of the unseen dataset:",
"cite_spans": [],
"ref_spans": [
{
"start": 94,
"end": 102,
"text": "Figure 2",
"ref_id": "FIGREF0"
}
],
"eq_spans": [],
"section": "Linear Regression Analysis",
"sec_num": "4.1"
},
{
"text": "841 . 0 998 . 2 \u2212 = Y X (5)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Linear Regression Analysis",
"sec_num": "4.1"
},
{
"text": "The test set was employed as unseen data to test the consistency of performance by adjective density. A major objective is to see whether the test set will exhibit the same level of significant correlation between ranking and adjective density. Table 5 summarizes the test set. As shown in Table 5 , ADJ Density in the last column presents the Y of the test set. According to Equation (5), the expected automatic ranking of adjective density (ExR adj ) was computed and presented in Table 6 . As can be seen in Table 6 , there is again a clear dividing line between spoken texts and written texts, where two sub-divisions of spoken texts (i.e. conversation and other spoken) are grouped together towards the top of the scale. Among writing, fiction is the most informal while academic prose is the most formal one appearing at the bottom of the scale. It is also noticeable that unpublished writing vs. newspapers seem to have the same expected ranking, and that the same situation also involves non-academic prose vs. academic prose. The possible explanation is that the values of the expected rankings are in round numbers, when the actual values are 4.6 (unpublished writing), 4.9 (newspapers), 6.6 (non-academic prose) and 7.4 (academic prose) respectively. Therefore, although obtaining the same expected ranking number, those two paired sub-categories are placed in order.",
"cite_spans": [],
"ref_spans": [
{
"start": 245,
"end": 252,
"text": "Table 5",
"ref_id": "TABREF4"
},
{
"start": 290,
"end": 297,
"text": "Table 5",
"ref_id": "TABREF4"
},
{
"start": 483,
"end": 490,
"text": "Table 6",
"ref_id": "TABREF5"
},
{
"start": 511,
"end": 518,
"text": "Table 6",
"ref_id": "TABREF5"
}
],
"eq_spans": [],
"section": "Expected Automatic Ranking of Adjective Density in Test Set",
"sec_num": "4.2"
},
{
"text": "Finally, the expected automatic ranking (ExR adj ) was evaluated through comparison with both manual and automatic rankings. The Spearman rank correlation coefficient (r s ) was calculated based on the difference of paired rankings (D) in three settings.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Evaluating Expected Automatic Ranking",
"sec_num": "4.3"
},
{
"text": "The first setting measured the correlation coefficient r s between ExR adj and manual ranking (R m ); the value of r s is 0.869, which is above the significant level of 0.02, indicating a strong evidence of agreement between these two rankings. In the second setting, r s was measured between ExR adj and R adj , the automatic ranking of the training set. The value of r s in this setting is 0.976, which is significant at level of 0.01. In the third setting, r s was measured between ExR adj and the automatic ranking based on the adjective density in the test set (cf. Table 5 ). This time the value of r s is 0.976, the same value as that in the second setting, which is significant at level of 0.01. Almost every category shows a better performance. Conversation shows the best results, with an F-measure of 88% based on a recall of 91.7% and a precision rate of 84.6%. It is encouraging to see that the average precision, recall and F-measure have been all over 60%, which indicates that with distinctively defined categories, adjective density can be used as a powerful characteristic for automatic text classification. Indeed, the same experiments were carried out on the other three open classes, namely, nouns, verbs and adverbs. Results show that adjectives remain a powerful indicative of text categories with a weighted average F-measure of 0.606, close to nouns (weighted average F-measure=0.756) and followed by adverbs (0.511) and verbs (0.448).",
"cite_spans": [],
"ref_spans": [
{
"start": 571,
"end": 578,
"text": "Table 5",
"ref_id": "TABREF4"
}
],
"eq_spans": [],
"section": "Evaluating Expected Automatic Ranking",
"sec_num": "4.3"
},
{
"text": "In this paper, we described our investigation into the relation between adjective density and text formality for the purpose of automatic text classification. According to empirical results collected from the training set, adjective density exhibits a significant positive correlation with text formality. The Spearman rank correlation coefficient shows a significant degree of agreement between such an automatic ranking and manual ranking. In other words, formal text categories tend to have a higher adjective density than informal text categories. A linear regression analysis also confirms such a positive linear relationship, and more importantly, it helps to construct a linear regression model to describe the relation between adjective density and category prediction. When adapted to assess unseen data in the test set, the model produced a satisfactory performance by obtaining a high value of correlation with automatic ranking as well as manual ranking. The results suggest that adjective density can be reliably used to predict text categories. A predictive model was created using a Na\u00efve Bayes classifier on adjective density, which achieved a weighted average F-measure of 0.606 across a set of five text categories, compared with 0.756 for nouns, 0.511 for adverbs and 0.448 for verbs. The experimental results establish adjective density as a powerful characteristic of text categories compared with the other open classes.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "6"
},
{
"text": "In conclusion, our investigation has shown on empirical basis that adjective density is significantly correlated to degrees of formality of different text categories. To be more specific, adjective density can effectively distinguish speech from writing, and within writing, academic prose from non-academic prose. Our study has advanced past research in the sense that we have extracted a single linguistic feature that can be used to distinguish text categories according to degrees of formality. By employing adjectives alone, our study indicates that it would be technically more feasible when applied in automatic text classification and genre detection. A significant finding of the research reported here is the established of adjectives as an effective characteristic of text categories amongst the open classes, an important feature that has been generally ignored in past studies. In hindsight of our current investigation, each text category is treated as a homogeneous group without considering the effect that file size has on adjective density. In a future study, we plan to investigate the relation between file size and adjective density with a view to develop an enhanced model parameterized not only with adjective density but also with the file size.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "6"
},
{
"text": "23rd Pacific Asia Conference on Language, Information and Computation, pages 130-139",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
}
],
"back_matter": [
{
"text": "The results in all of the three settings show that the expected automatic ranking correlates significantly well with both manual and automatic rankings. In other words, the adaptation of the model to test dataset demonstrates a satisfactory level of performance. This finding suggests that the regression model can be adapted to unseen datasets with reliable performance.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "annex",
"sec_num": null
},
{
"text": "As previously shown, experiments on both training and test sets indicate that adjective density is significantly correlated to degrees of formality of different text categories and hence the prospect of using this measure to automatically classify texts. To verify how adjective density as a characteristic could contribute to text classification, experiments were carried out by using the Na\u00efve Bayes classifier available in Weka, a machine learning system available from the University of Waikato, New Zealand (Homles et al 1994). Adjective density was calculated for all the individual texts in both the training and the test sets for each text category. Weka was used to perform an 80-20 split of all the instances (1,180 in total). NaiveBayes was selected to train a model based on adjective density as the sole feature from the training set (80% of all the instances), which was subsequently applied to the test set (20% of all the instances). Table 7 summarises the results for the eight text categories in terms of precision, recall and F-measure. It can be noticed that all the files of conversation have been classified into other spoken. There are two possible explanations. First, there is significant difference in instance number between the two categories: conversation has only 102 instances while other spoken has 378 instances. Second, other spoken also includes dialogues, which blurs the distinction of conversation. For the same reason, a majority of fiction has been classified as other spoken. In addition, unpublished writing and other published writing were observed as the less clearly defined categories. The training of the model and the subsequent prediction by the model were thus biased as a result of the unbalanced classes (Eibe and Bouckaert 2006) .The less clearly defined categories were excluded and a second try on the classifier was made. The results are presented in Table 8. ",
"cite_spans": [
{
"start": 1756,
"end": 1781,
"text": "(Eibe and Bouckaert 2006)",
"ref_id": "BIBREF2"
}
],
"ref_spans": [
{
"start": 950,
"end": 957,
"text": "Table 7",
"ref_id": null
},
{
"start": 1907,
"end": 1915,
"text": "Table 8.",
"ref_id": null
}
],
"eq_spans": [],
"section": "Automatic Text Classification using Na\u00efve Bayes Classifier",
"sec_num": "5"
}
],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "The British National Corpus, version 3 (BNC XML Edition)",
"authors": [
{
"first": "D",
"middle": [],
"last": "Biber",
"suffix": ""
}
],
"year": 1988,
"venue": "Distributed by Oxford University Computing Services on behalf of the BNC Consortium",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Biber, D. 1988. Variation across Speech and Writing. Cambridge: Cambridge University Press. BNC User Reference Guide. URL: http://www.natcorp.ox.ac.uk/XMLedition/URG/index.html The British National Corpus, version 3 (BNC XML Edition). 2007. Distributed by Oxford University Computing Services on behalf of the BNC Consortium. URL: http://www.natcorp.ox.ac.uk/.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "Using Phrasal Verbs as an Index to Distinguish Text Genres. American Association for Artificial Intelligence",
"authors": [
{
"first": "K",
"middle": [
"B"
],
"last": "Dempsey",
"suffix": ""
},
{
"first": "P",
"middle": [
"M"
],
"last": "Mccarthy",
"suffix": ""
},
{
"first": "D",
"middle": [
"S"
],
"last": "Mcnamara",
"suffix": ""
}
],
"year": 2007,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Dempsey, K. B., P. M. McCarthy, and D. S. McNamara. 2007. Using Phrasal Verbs as an Index to Distinguish Text Genres. American Association for Artificial Intelligence (www. aaai.org).",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "Na\u00efve Bayes for Text Classification with Unbalanced Classes",
"authors": [
{
"first": "F",
"middle": [],
"last": "Eibe",
"suffix": ""
},
{
"first": "R",
"middle": [
"R"
],
"last": "Bouckaert",
"suffix": ""
}
],
"year": 2006,
"venue": "Proceedings of 10 th European Conference on Principles and Practice and Knowledge Discovery in Databases",
"volume": "",
"issue": "",
"pages": "503--510",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Eibe, F. and R.R. Bouckaert. 2006. Na\u00efve Bayes for Text Classification with Unbalanced Classes. In Proceedings of 10 th European Conference on Principles and Practice and Knowledge Discovery in Databases, Berlin, Germany, 503-510.",
"links": null
},
"BIBREF3": {
"ref_id": "b3",
"title": "Formality of Language: definition, measurement and behavioral determinants",
"authors": [
{
"first": "F",
"middle": [],
"last": "Heylighen",
"suffix": ""
},
{
"first": "J.-M",
"middle": [],
"last": "Dewaele",
"suffix": ""
}
],
"year": 1999,
"venue": "Internal Report, Center \"Leo Apostel",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Heylighen, F. and J.-M. Dewaele. 1999. Formality of Language: definition, measurement and behavioral determinants. Internal Report, Center \"Leo Apostel\", Free University of Brussels.",
"links": null
},
"BIBREF4": {
"ref_id": "b4",
"title": "Variation in the contextuality of language: An empirical measure. Context in Context: Special issue Foundations of",
"authors": [
{
"first": "F",
"middle": [],
"last": "Heylighen",
"suffix": ""
},
{
"first": "J.-M",
"middle": [],
"last": "Dewaele",
"suffix": ""
}
],
"year": 2002,
"venue": "Science",
"volume": "7",
"issue": "3",
"pages": "293--340",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Heylighen, F. and J.-M. Dewaele. 2002. Variation in the contextuality of language: An empirical measure. Context in Context: Special issue Foundations of Science, 7(3), 293-340.",
"links": null
},
"BIBREF5": {
"ref_id": "b5",
"title": "Weka: A machine learning workbench",
"authors": [
{
"first": "G",
"middle": [],
"last": "Holmes",
"suffix": ""
},
{
"first": "A",
"middle": [],
"last": "Donkin",
"suffix": ""
},
{
"first": "I",
"middle": [
"H"
],
"last": "Witten",
"suffix": ""
}
],
"year": 1994,
"venue": "Proceedings of the Second Australia and New Zealand Conference on Intelligent Information Systems",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Holmes, G., A. Donkin, and I.H. Witten. 1994. Weka: A machine learning workbench. In Proceedings of the Second Australia and New Zealand Conference on Intelligent Information Systems, Brisbane, Australia.",
"links": null
},
"BIBREF6": {
"ref_id": "b6",
"title": "The measurement of observer agreement for categorical data",
"authors": [
{
"first": "R",
"middle": [
"J"
],
"last": "Landis",
"suffix": ""
},
{
"first": "G",
"middle": [
"G"
],
"last": "Koch",
"suffix": ""
}
],
"year": 1977,
"venue": "Biometrics",
"volume": "33",
"issue": "",
"pages": "159--174",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Landis, R. J. and G. G. Koch. 1977. The measurement of observer agreement for categorical data. Biometrics 33, 159-174.",
"links": null
},
"BIBREF7": {
"ref_id": "b7",
"title": "Automatic Discrimination of Genres: The Role of Adjectives and Adverbs as Suggested by Linguistics and Psychology",
"authors": [
{
"first": "R",
"middle": [],
"last": "Rittman",
"suffix": ""
}
],
"year": 2008,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Rittman, R. 2008. Automatic Discrimination of Genres: The Role of Adjectives and Adverbs as Suggested by Linguistics and Psychology. VDM Verlag.",
"links": null
},
"BIBREF8": {
"ref_id": "b8",
"title": "Text Categories and Where You Can Stick Them: A Crude Formality Index",
"authors": [
{
"first": "R",
"middle": [],
"last": "Sigley",
"suffix": ""
}
],
"year": 1997,
"venue": "International Journal of Corpus Linguistics",
"volume": "2",
"issue": "2",
"pages": "199--237",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Sigley, R. 1997. Text Categories and Where You Can Stick Them: A Crude Formality Index. International Journal of Corpus Linguistics, 2(2), 199-237.",
"links": null
}
},
"ref_entries": {
"FIGREF0": {
"text": "Graph of Y=2.998+0.841X.",
"num": null,
"type_str": "figure",
"uris": null
},
"TABREF0": {
"text": "Total tokens in the subcorpus",
"type_str": "table",
"content": "<table><tr><td/><td>Text Category</td><td>Token</td></tr><tr><td>Speech</td><td>Conversation Other spoken</td><td>3,017,930 3,019,043</td></tr><tr><td/><td>Academic prose</td><td>3,124,550</td></tr><tr><td/><td>Fiction</td><td>3,026,196</td></tr><tr><td>Writing</td><td>Newspapers Non-academic prose</td><td>3,018,301 3,083,486</td></tr><tr><td/><td>Other published writing</td><td>3,013,586</td></tr><tr><td/><td>Unpublished writing</td><td>3,001,746</td></tr><tr><td>Total</td><td/><td>24,304,838</td></tr></table>",
"html": null,
"num": null
},
"TABREF1": {
"text": "Manual ranking of the eight text categories",
"type_str": "table",
"content": "<table><tr><td>Text Category</td><td>R m</td></tr><tr><td>Conversation</td><td>1</td></tr><tr><td>Other spoken</td><td>2</td></tr><tr><td>Unpublished writing</td><td>3</td></tr><tr><td>Fiction</td><td>4</td></tr><tr><td>Non-academic prose</td><td>5</td></tr><tr><td>Newspapers</td><td>6</td></tr><tr><td>Other published writing</td><td>7</td></tr><tr><td>Academic prose</td><td>8</td></tr></table>",
"html": null,
"num": null
},
"TABREF2": {
"text": "Adjective density of the training set",
"type_str": "table",
"content": "<table><tr><td>Text Category</td><td colspan=\"3\">Total Tokens ADJ Tokens ADJ Density</td></tr><tr><td>Conversation</td><td>2,368,324</td><td>82,599</td><td>3.49</td></tr><tr><td>Other spoken</td><td>2,382,061</td><td>111,126</td><td>4.67</td></tr><tr><td>Fiction</td><td>2,382,786</td><td>139,894</td><td>5.87</td></tr><tr><td>Newspapers</td><td>2,360,843</td><td>159,046</td><td>6.74</td></tr><tr><td>Unpublished writing</td><td>2,395,601</td><td>162,826</td><td>6.80</td></tr><tr><td>Other published writing</td><td>2,354,825</td><td>197,100</td><td>8.37</td></tr><tr><td>Non-academic prose</td><td>2,451,482</td><td>213,128</td><td>8.69</td></tr><tr><td>Academic prose</td><td>2,468,802</td><td>237,709</td><td>9.63</td></tr></table>",
"html": null,
"num": null
},
"TABREF3": {
"text": "Manual ranking vs. automatic ranking in the training set",
"type_str": "table",
"content": "<table><tr><td>Text Category</td><td>R m</td><td>R adj</td><td>D</td></tr><tr><td>Conversation</td><td>1</td><td>1</td><td>0</td></tr><tr><td>Other spoken</td><td>2</td><td>2</td><td>0</td></tr><tr><td>Fiction</td><td>4</td><td>3</td><td>1</td></tr><tr><td>Newspapers</td><td>6</td><td>4</td><td>2</td></tr><tr><td>Unpublished writing</td><td>3</td><td>5</td><td>2</td></tr><tr><td>Other published writing</td><td>7</td><td>6</td><td>1</td></tr><tr><td>Non-academic prose</td><td>5</td><td>7</td><td>2</td></tr><tr><td>Academic prose</td><td>8</td><td>8</td><td>0</td></tr></table>",
"html": null,
"num": null
},
"TABREF4": {
"text": "Basic stats of adjectives in text categories of the test set",
"type_str": "table",
"content": "<table><tr><td>Text Category</td><td colspan=\"3\">Total Tokens ADJ Tokens ADJ Density</td></tr><tr><td>Conversation</td><td>649,613</td><td>25,506</td><td>3.93</td></tr><tr><td>Other spoken</td><td>636,982</td><td>29,327</td><td>4.60</td></tr><tr><td>Fiction</td><td>643,410</td><td>37,508</td><td>5.83</td></tr><tr><td>Newspapers</td><td>606,149</td><td>41,441</td><td>6.84</td></tr><tr><td>Unpublished writing</td><td>657,458</td><td>46,807</td><td>7.12</td></tr><tr><td>Other published writing</td><td>658,762</td><td>52,466</td><td>7.96</td></tr><tr><td>Non-academic prose</td><td>632,003</td><td>53,816</td><td>8.52</td></tr><tr><td>Academic prose</td><td>655,748</td><td>60,468</td><td>9.22</td></tr></table>",
"html": null,
"num": null
},
"TABREF5": {
"text": "Expected automatic ranking of the test set",
"type_str": "table",
"content": "<table><tr><td>Text Category</td><td>ExR adj</td></tr><tr><td>Conversation</td><td>1</td></tr><tr><td>Other spoken</td><td>2</td></tr><tr><td>Fiction</td><td>3</td></tr><tr><td>Unpublished writing</td><td>5</td></tr><tr><td>Newspapers</td><td>5</td></tr><tr><td>Other published writing</td><td>6</td></tr><tr><td>Non-academic prose</td><td>7</td></tr><tr><td>Academic prose</td><td>7</td></tr></table>",
"html": null,
"num": null
},
"TABREF6": {
"text": "Performance of using ADJ density for text categorization",
"type_str": "table",
"content": "<table><tr><td>Text Category</td><td>Precision</td><td>Recall</td><td>F-Measure</td></tr><tr><td>Conversation</td><td>0.846</td><td>0.917</td><td>0.880</td></tr><tr><td>Academic prose</td><td>0.556</td><td>0.333</td><td>0.417</td></tr><tr><td>Fiction</td><td>0.524</td><td>0.733</td><td>0.611</td></tr><tr><td>Newspapers</td><td>0.667</td><td>0.467</td><td>0.549</td></tr><tr><td>Non-academic prose</td><td>0.448</td><td>0.591</td><td>0.510</td></tr><tr><td>Weighted Avg.</td><td>0.626</td><td>0.613</td><td>0.606</td></tr></table>",
"html": null,
"num": null
}
}
}
}