<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1"/><title>Measuring corpus homogeneity using a range of measures for inter-document distance.</title><author surname="Cavaglià" givenname="Gabriela"><org  name="University of Brighton" country="United Kingdom" city="Brighton"/></author></firstpageheader><frontmatter><p><b>Measuring corpus homogeneity using a range of measures for inter-document distance</b></p><p><b>Gabriela Cavaglià</b></p><p>ITRI, University of Brighton</p><p>Lewes Road, Brighton BN2 4GJ, United Kingdom Gabriela.Cavaglia@itri.brighton.ac.uk</p></frontmatter><abstract>With the ever more widespread use of corpora in language research, it is becoming increasingly important to be able to describe and compare corpora. The analysis of corpus homogeneity is preliminary to any quantitative approach to corpora comparison. We describe a method for text analysis based only on document-internal linguistic features, and a set of related homogeneity measures based on inter-document distance. We present a preliminary experiment to validate the hypothesis that in the presence of a homogeneous corpus the subcorpus that is necessary to train an NLP system is smaller than the one required if a heterogeneous corpus is used. </abstract></header><body><section number="1." title="Introduction"><p>Corporaare collections ofdocuments, generallyinelec-tronic form, used mainly as a source of different kinds of linguistic information. In the last decade, the availabil­ity of many texts in machine-readable form and the devel­opment of powerful tools for exploiting them make cor­pora the basic resource for many areas of language re­search (Lexicography, Linguistics, Psycholinguistics, Nat­ural Language Processing). When a study performed on a particular corpus obtains interesting results, the possibility of extending them to a larger population is very tempting. But only corpora built according to explicit design crite­ria, which constitute a representative sample of a defined language variety, can allow the result of the study to be ex­tended without major bias errors. It follows that character­izations of existing corpora and the design of new ones are now receiving more attention: it becomes essential to be able to describe a corpus, compare it with others, and pro­duce new corpora that are representative samples of partic­ular language varieties.</p><p>The criteria that one might use to describe or design a corpus can be <i>external </i>or <i>internal. </i>External criteria are essentially non-linguistic, and therefore not present in the document itself; they cover the document's topic, genre and socio-cultural aspects (e.g., age and occupation of the au­thor) and are standardly assigned by people. By contrast, internal criteria are based on linguistic features, which are more or less directly present inside a text (e.g., words are directly present in a text, while POS tags can be exploited only after further analysis).</p><p>Corpus descriptions and corpus design techniques are usually based on external criteria (e.g., the 'Wall Street Journal corpus'). The main problem with external features is that they are not always available and, when they are, not always reliable (e.g., you can not always use the title of a text to identify its topic). Moreover, corpora produced us­ing external features can contain wide variations in internal features, which can cause problems when used by an NLP system. The decision to classify texts only on the basis of external criteria is motivated when the users are human be­ings, who can cope without any problem with differences in linguistic features. But when the user is a system, as in NLP, the performance of any task can be degraded by the presence of different linguistic features, as shown in Biber (1993; Sekine (1997; Roland and Jurafsky (1998; Folch et al. (2000).</p></section><section number="2." title="Corpus profiling: homogeneity and similarity"><p>The problem of describing and comparing corpora in relation to their internal features is becoming important. Work on corpora comparison started in the early '80s (Hofland and Johansson, 1982) with the study of the dif­ferences between British and American English and then extended to the opposition between spoken and written English (Biber, 1988) and later to differences in register (Biber, 1993; Kessler et al., 1997; Dewdney et al., 2001).</p><p>More recent developments focus on corpus homogene­ity and similarity. Both homogeneity and similarity are complex and multi-dimensional issues: a corpus can be ho­mogeneous, and two or more corpora can be similar, in re­lation to aspects such as lexis, syntax, semantics but also in relationto the structure of the texts or the presence of extra-textual information. Because we are mainly interested in textual information, we restrict our analysis to lexical, se­mantic and syntactic aspects, and we label the corpus pro­filing we are interested in as "linguistic". We call a corpus "homogeneous" when it does not contain major differences in internal features among its documents.</p><p>Kilgarriff (2001) defines corpus similarity as the "like-hood that linguistic findings based on one corpus apply to another". He presents corpus homogeneity as the prelimi­nary step to any quantitative study of corpus similarity: his claim is that without knowledge of corpus homogeneity it is not clear if it would be appropriate to measure similar­ity between, for example, a homogeneous corpus like the PILLs corpus of Patient Information Leaflets (Scott et al., 2001) and a balanced one like the Brown. He also states that ideally the measure used for corpus similarity can be used for corpus homogeneity, and presents an analysis based on word frequency lists. Illouz et al. (2000) present a method­ology for text profiling that aims to produce measures for corpus homogeneity within the different parts of a corpus.<page local="2"/> Their supervised approach is similar to Biber's work on text classification, but they use a tagger/parser to analyze syn­tactic features.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">426</doubt><p>We present a technique for corpus analysis strictly based on internal features and unsupervised learning tech­niques, together with a set of measures for corpus homo­geneity and similarity.</p></section><section number="3." title="The methodology"><p>We propose a stochastic method to describe and com­pare corpora, which is based only on their internal features. This method can be computed for any corpus, and is inde­pendent of any particular theory of language: it uses all the linguistic features of the documents, and not just a special sub-set as for example in Biber's work. The method has four steps:</p><p>1. choose the aspect you want to study and the type of feature you want to use;</p></section><section number="2." title="collect data for each document in the corpus;"></section><section number="3." title="calculate the similarity between each pair of docu­ments;"><p>4. quantify the characteristics of the corpus: we produce both a description of the corpus and measures of its homogeneity and its similarity in relation to other cor­pora.</p><subsection number="3.1." title="Deciding aspect and feature types"><p>Corpus profiling can be studied from different perspec­tives. As has been said, we restrict our interest to linguistic analysis and in particular to the lexical, syntactic and se­mantic <i>aspects. </i>Each aspect can be studied using different <i>feature types </i>(i.e. words or POS tags). At the moment just the lexical and syntactic aspects have been investigated.</p><p>Lexical analysis is performed to detect possible restric­tions in the vocabulary. As feature types for lexical analy­sis, either all-words or content words or lemmas are used. To identify restrictions at the syntactic level, either function words or POS tags or POS bi-grams are used. To detect function words a list of function words is needed, while to produce POS tag and POS bi-gram frequency lists a POS tagger is required.</p></subsection><subsection number="3.2." title="Collecting the data"><p>The objects employed to study corpus profiling are the texts that make up the corpus. Each text is represented by a vector of features (attributes) or a <i>frequency list. </i>A fre­quency list is a list of pairs &lt; <i>x,f(x)</i><i> </i>&gt; in which a; is a fea­ture instance, e.g., the function word "with" or the lemma "to cut", and is the frequency of the feature in the document (the number of occurrences of "with" or "to cut" in the document). Instead of using the sample frequency direcly, we compute the estimate of the probability .</p><p>This step yields a matrix which represents a corpus by the frequency lists of its documents.</p></subsection><subsection number="3.3." title="Computing similarity"><p>Probability lists representing texts in the corpus can also be seen as distributions. Two documents are considered similar if their probability distributions are similar. We ex­plored the use of three different text-similarity measures.</p><p>Relative entropy, also know as Kullback-Leibler diver­gence, is a well-known measure for calculating how sim­ilar two probability distributions are (over the same event space). If and are the distributions which represent two documents, the relative entropy, , is calculated as follow:</p><doubt alpha="48.0" length="25" tooSmall="False" monospace="0.0">D(p\\q)=j2p(i)lo&lt;Mi=iq{%)</doubt><p>Because it is not defined for <i>q(i)</i><i> </i><i>=</i><i> </i>0, for which <i>D(p\\q)</i><i> </i>= <footnote anchor="00"/>, we compute the <i>centroid, </i>the average prob­ability distribution of the corpus, and then add it to each distribution before calculating the similarity. The formula for relative entropy becomes:</p><doubt alpha="38.5" length="26" tooSmall="False" monospace="0.0">D'{p\\q) =^2(p(i)+c(i))log</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">i=l</doubt><doubt alpha="40.0" length="20" tooSmall="False" monospace="0.0">P(i) + c(i)q(i)+c{i)</doubt><p>with     the centroid ofthe entire corpus.</p><p>We also tested two other similarity measures based on the divergence from the null hypothesis that the two docu­ments are random samples from the same distribution: Chi Squared and Log-likelihood.</p><p>Chi Square measure ( ): for each feature in the fre­quency list, we calculate the number of occurrences in each document that would be expected. Suppose the sizes of documents <i>A </i>and <i>B </i>are respectively <i>Na </i>and <i>NB </i>and fea­ture <i>w </i>has observed frequency <i>ow&lt;a </i>in <i>A </i>and <i>ow&lt;b </i>in B, then the expected value       for <i>A </i>is:</p><doubt alpha="51.9" length="27" tooSmall="False" monospace="0.0">_Na{ow,a + Qw,b)€w'A~ Na+Nb</doubt><p>and likewise for for document <i>B. </i>Then the value for the document pair, A and B, is computed as follows:</p><doubt alpha="40.0" length="10" tooSmall="False" monospace="0.0">(oi - ei)2</doubt><p>with the sum over all the features.</p><p>Log-likelihood (G<footnote anchor="2"/>): Dunning (1993) showed that <i>G<footnote anchor="2"/></i>is a muchbetter approximationofthe binomialdistribution than especially for events with frequencies smaller than 5. It is a measure that works quite well with both large and small documents and allows the comparison of the signif­icance of both common and rare events. A <b>Contingency table, </b>as presented in table 1, helps us to understand the formula for .</p><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">Gl,</doubt><doubt alpha="35.7" length="143" tooSmall="False" monospace="0.0">2(alog(a) + 61og(6) + clog(c) + dlog(d) — (a + 6) log(a + 6) — (a + c) log(a + c)-(b+d)log(6+d)-(c+d)log(c +d)+ (a + 6 + c +d)log(a + 6 + c +d)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">427</doubt><page local="3"/><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">Doc. A   Doc. B</doubt><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">n i=l</doubt><p>This step yields a similarity matrix: to each pair of doc­uments a distance is associated. Relative entropy, x<footnote anchor="2"/> and</p><p>are all distance measures, so in the matrix the more sim­ilar text couples appear with a small value assigned.</p></subsection><subsection number="3.4." title="Quantify homogeneity"><p>The similarity values calculated in the previous step for each pair of documents in a corpus are now employed to produce information to help in describing the corpus and in quantifying its homogeneity and its similarity in relation to other corpora. The information we provide for the corpus is:</p><p>• a homogeneity measure which quantifies the variabil­ity of the features inside the corpus. The homogeneity measure corresponds to the maximum distance among its documents;</p><p>the corpus prototypical element, to give the user an idea of what kind of text he/she can find in the corpus. In clustering, such an object is called "the medoid", the cluster element which is the nearest to the centroid; a similarity measure which describes the relative posi­tion of the corpus in relation to the others. The simi­larity of corpus A and B is the distance between their centroids.</p><p>The usefulness of a prototypical element and the valid­ity of a similarity measure depend directly on the homo­geneity of the corpora analyzed. The more a corpus is ho­mogeneous the better its prototypical element can describe the corpus documents, because there is a smaller variance between it and the other documents of the corpus. The in­terpretation of a similarity measure computed between a homogeneous corpus and a heterogeneous one, or between two heterogeneous corpora, is not clear, and needs further analysis. In this paper we focus only on the evaluation of the homogeneity measures.</p></subsection></section><section number="4." title="Evaluation"><p>The aim of our first experiment is to understand which text-similarity measure is most reliable, among the three currently used (-D(p|<i>\q),X<footnote anchor="2"/></i><i> </i>and G<footnote anchor="2"/>).</p><p>To evaluate the homogeneity of a corpus is difficult ow­ing to the lack of gold-standard judgments with which the measures can be compared. The hypothesis at the base of homogeneity is that a NLP system can reach better results when it uses an homogeneous corpus rather than an het­erogeneous one. In the experiment we run an NLP system using homogeneous and heterogeneous corpora. Then we compare the accuracy that the system achieved on each cor­pus, with the degree of homogeneity that the corpus scores. We expect to find that the accuracy for the homogeneous corpora is higher.</p><p>The NLP system we use for the evaluation is Rainbow (McCallum, 1996), which performs text classification. We choose Rainbow because it is freely available, fast, and does not require any particular annotation or linguistic re­source other than the corpus itself. Because Rainbow per­forms text analysis (builds its model) using <i>all words </i>or <i>content words, </i>we have to restrict the evaluation to just these two internal features in this experiment. We collect a set of corpora for which we have a reliable classification, and compute the homogeneity measure for each corpus. For each corpus we measure homogeneity using the three inter­document similarity measures. Then, for each similarity measure, we rank the corpora according to their homogene­ity value in increasing order, so that homogeneous corpora appear at the beginning of the list. For each of the two features, three ranked lists of homogeneity values are pro­duced.</p><p>We then use Rainbow to produce similar ranked lists; using both all-words and content words, to use as a gold standard. All the corpora for which we measure the homo­geneity are merged to form a single big corpus. We then use Rainbow to classify the new big corpus using different sizes of training corpus. The task for Rainbow is to rebuild from the merged corpus all the corpora it was made of. Ac­cording to our hypothesis, in order to achieve the same level of accuracy, homogeneous corpora need to be trained on a smaller subcorpus than heterogeneous corpora. The accu­racy of the classification of each class is computed. Classes are then ranked in a descending order, so that the homo­geneous ones appear at the beginning of the list. For each of the two features, a rank list of Rainbow accuracy values is produced. Finally, the Spearman's rho test is employed to identify the correlation between the homogeneity values and Rainbow accuracy values.</p></section><section number="5." title="Experiment"><p>The corpus we used for this first experiment is the British National Corpus (BNC). The BNC is a 100 million-word collection of samples of written and spoken language, from a wide range of sources, designed to represent a wide cross-section of current British English (monolingual syn-chronic corpus). Moreover, it is a general corpus which includes many different language varieties, and is not lim­ited to any particular subject field, genre or register. There has been a lot of work on the classification of BNC docu­ments. The BNC Index (Lee, 2001) is an attempt to com­bine and consolidate some of these suggestions. The re­sult is a resource which provides an accurate classification of the documents in the BNC, according to many differ­ent kinds of external criteria such as <i>medium, domain </i>and <i>genre. </i>According to the medium, BNC documents can be classified into six different classes: spoken, written-to-be-spoken, book, periodical, published miscellanea, and un­published miscellanea. For domain, spoken English can be classified into five classes (e.g., transcription of business .<page local="4"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">428</doubt><table caption="Table 1: Contingency table" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>w</p></td><td class="cell"><p>a</p></td><td class="cell"><p>b</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>-i </b>w</p></td><td class="cell"><p>c</p></td><td class="cell"><p>d</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>recordings, spontaneous natural conversations), and writ­ten English into nine (e.g., applied science, arts, belief and thought). There are 24 genres for spoken and 46 genres for written English (among the genres for written English there are for example personal letters, university essays, tabloid newspaper, bibliographies and instructional texts).</p><p>To avoid comparing classes whose size is too dissimilar:</p><p>• each BNC document is divided into chunks of a fixed size. For the first experiment, chunks of 20,000 words were produced. If a document is too small it is dis­charged. If it is big enough to contain more than one chunk, multiple chunks are produced, and considered as individual documents in the analysis;</p><p>for each BNC classes from medium, domain and genre, a corpus is created with the same number of chunks. For the experiment we produced corpora of 20 chunks each. If a class does not contains enough documents it is discharged; otherwise 20 chunks are chosen randomly.</p><p>This gives 51 corpora with 20 documents of 20,000 words each. Three random corpora made of20 chunks cho­sen randomly from the BNC are also created. We expected random corpora to be less homogeneous than all the other corpora.</p><p>The three homogeneity measures (using , and ) for each corpus are calculated, and the corpora are ranked according to their homogeneity score: corpora with a lower score are considered more homogeneous than ones with a higher score. Then the 54 corpora are merged to form one big corpus, and Rainbow is used to see how accu­rately it can recover each of the 54 corpora, using training sets of different sizes. The sizes used were 1, 5, 10,15; e.g., when the training set size was 5, the task for Rainbow was to recover the other 15 same-class documents out ofthe pot of 1080 documents. For each corpus, we compute the accu­racy, the proportion of correctly classified documents, and the standard deviation calculated on 50 trials.</p></section><section number="6." title="Results"><p>Tables 2 and 3 list the homogeneity measures for the five corpora at the beginning and end of the lists ranked by homogeneity and Rainbow accuracy values, using all words as features. Using Rainbow, the three random corpora ap­pear to be less homogeneous than all the other corpora, as expected. The homogeneity measures based on inter­document distance instead partially failed; in fact, although they all appear somewhere at the bottom of the rank list, just one of them turns up after all the non-random corpora.</p><p>We use Spearman's rho test (Owen and Jones, 1977) to compare the ranks obtained using the homogeneity measure and Rainbow. Spearman's correlation is 1 when the two ranks are exacly the same, and when no correlation is found between the two ranked lists. The results, presented in table 4 for all words and in table 5 for content words, are always positive and usually within the significance level of</p><table caption="Table 4: Spearman's correlation between Rainbow accu­racy values and Homogeneity values using words"></table></section><section number="7." title="Conclusion and future work"><p>The Spearman correlation values show that the original distinction between homogeneous and heterogeneous cor­pora is maintained in Rainbow: corpora with a low homo­geneity score need a small training set to achieve a high ac­curacy in the classification task. By contrast, heterogeneous and random corpora need a bigger training set to achieve an accuracy which, however, is smaller than the one obtained by the homogeneous corpora.</p><p>None of the three text-similarity measures used to com­pute homogeneity produces a rank which follows exactly the same order identified with Rainbow, even if the constant high values of the standard deviation suggest that the rank order identify by Rainbow is not fixed. Among the three measures, provides the closest rank, expecially when all words are used.</p><p>Various reasons may be responsible for the unclarity of the results:</p><p>lack of data: chunks, in which we divide the docu­ments, and the number of chunks, we set for each cor­pus, are not big enough. For this experiment we pro­duce chunks of 20,000 words and we use corpora of 20 chunks each. We also try to use chunks of 50,000 words and corpora made of 50 chunks each, but the<page local="5"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">429</doubt><table caption="Table 2: Homogeneity scores computed using the 500 most frequent words in each corpus" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Corpus</p></td><td class="cell"><p><i>d(p\\q)</i></p></td><td class="cell"><p>2</p><p><i>X</i></p></td><td class="cell"><p><i>g<footnote anchor="2"/></i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_news_script</p></td><td class="cell"><p>0.0489</p></td><td class="cell"><p>0.0304</p></td><td class="cell"><p>0.0663</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_newsp_tabloid</p></td><td class="cell"><p>0.0948</p></td><td class="cell"><p>0.0640</p></td><td class="cell"><p>0.1503</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_newsp_other_report</p></td><td class="cell"><p>0.1208</p></td><td class="cell"><p>0.0817</p></td><td class="cell"><p>0.1951</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_newsp_other_sports</p></td><td class="cell"><p>0.1335</p></td><td class="cell"><p>0.0750</p></td><td class="cell"><p>0.1756</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_hansard</p></td><td class="cell"><p>0.1459</p></td><td class="cell"><p>0.0950</p></td><td class="cell"><p>0.2283</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>d-W_app_science</p></td><td class="cell"><p>0.6165</p></td><td class="cell"><p>0.2973</p></td><td class="cell"><p>0.7737</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>m-m_unpub</p></td><td class="cell"><p>0.6502</p></td><td class="cell"><p>0.3711</p></td><td class="cell"><p>0.9649</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_misc</p></td><td class="cell"><p>0.6572</p></td><td class="cell"><p>0.2818</p></td><td class="cell"><p>0.7040</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_advert</p></td><td class="cell"><p>0.7201</p></td><td class="cell"><p>0.2949</p></td><td class="cell"><p>0.7519</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>random2</p></td><td class="cell"><p>0.94344</p></td><td class="cell"><p>0.4200</p></td><td class="cell"><p>1.0906</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 4: Spearman's correlation between Rainbow accuracy values and Homogeneity values using words" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Rainbow</p></td><td class="cell"><p>Homogeneity</p></td><td class="cell"><p>Spearman's correlation</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1 doc per class</p></td><td class="cell"><p><i>D(p\k)</i></p></td><td class="cell"><p>0.526</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1 doc per class</p></td><td class="cell"><p>2</p><p><i>X</i></p></td><td class="cell"><p>0.527</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1 doc per class</p></td><td class="cell"><p><i>g<footnote anchor="2"/></i></p></td><td class="cell"><p>0.530</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5 doc per class</p></td><td class="cell"><p><b><i>D(p\\q)</i></b></p></td><td class="cell"><p>0.447</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5 doc per class</p></td><td class="cell"><p>2</p><p><i>X</i></p></td><td class="cell"><p>0.473</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5 doc per class</p></td><td class="cell"><p><i>g<footnote anchor="2"/></i></p></td><td class="cell"><p>0.474</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10 doc per class</p></td><td class="cell"><p><i>D(p\\q)</i></p></td><td class="cell"><p>0.432</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10 doc per class</p></td><td class="cell"><p>2</p><p><i>X</i></p></td><td class="cell"><p>0.451</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10 doc per class</p></td><td class="cell"><p><i>g<footnote anchor="2"/></i></p></td><td class="cell"><p>0.451</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>15 doc per class</p></td><td class="cell"><p><i>D(p\k)</i></p></td><td class="cell"><p>0.387</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>15 doc per class</p></td><td class="cell"><p>2</p><p><i>X</i></p></td><td class="cell"><p>0.413</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>15 doc per class</p></td><td class="cell"><p><i>g<footnote anchor="2"/></i></p></td><td class="cell"><p>0.415</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Table 5: Spearman's correlation between Rainbow accu­racy values and Homogeneity values using content words</p><p>Table 3: The accuracy obtained by Rainbow analyzing all words for homogeneous and heterogeneous subcorpora using training set of different size: 1,5, 10 and 15 document per class respectively number of BNC classes which contain these amounts of data are few and appear to be all quite heteroge­neous; presence of noise in the data: at the moment we use the N most frequent internal features present in each corpus, and for this experiment we set N equal to 500. We would like to consider ways of identifying the fea­tures that seem more likely to show differences among the documents, and of filtering out those which instead can only create noise;</p><p>• the use of Rainbow as a gold-standard judgment for homogeneity: to classify texts any system uses a mix of homogeneity and similarity, so the attempt to use its classification to evaluate a homogeneity measure can be misleading ;</p><p>the three text similarity measures used may not be the best for studying corpus homogeneity and similarity.</p><p>The results obtained from this first attempt to evaluate the homogeneity measure confirm the hypothesis that ho­mogeneous corpora need a smaller training set than hetero­geneous corpora to achieve a certain degree of accuracy.</p><p>But the methodology we have used is still too unrefined to produce clear results.</p><p>As far as the methodology is concerned, the aspect re­quiring further attention is the use of some kind of feature selection in order to analyze just the more distinctive fea­tures. At the moment we are considering different types of feature selection. We also want to use a fourth text-similarity measure - perplexity.</p><p>As far as evaluation is concerned, other experiments to study the validity and reliability of the measures proposed to quantify homogeneity and similarity are needed. Be­cause the main applications of the two measures are in NLP, they should still be tested in relation to a NLP task. We would like to consider a different system from text classi­fication and also possible ways of combining the two mea­sures.</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Class</p></td><td class="cell"><p>1</p></td><td class="cell"><p>5</p></td><td class="cell"><p>10</p></td><td class="cell"><p>15</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_hansard</p></td><td class="cell"><p>73.05 (32.61)</p></td><td class="cell"><p>97.2 (6.74)</p></td><td class="cell"><p>97.6 (4.31)</p></td><td class="cell"><p>94.8 (8.86)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_newsp_tabloid</p></td><td class="cell"><p>70.52 (25.62)</p></td><td class="cell"><p>89.46 (5.05)</p></td><td class="cell"><p>83.4 (7.98)</p></td><td class="cell"><p>85.6(16.18)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_ac_medicine</p></td><td class="cell"><p>58.63 (26.75)</p></td><td class="cell"><p>85.06 (9.67)</p></td><td class="cell"><p>85.4 (8.85)</p></td><td class="cell"><p>80.4 (16.89)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_newsp_other_sports</p></td><td class="cell"><p>56.31 (21.24)</p></td><td class="cell"><p>88.26(13.57)</p></td><td class="cell"><p>92.6 (8.99)</p></td><td class="cell"><p>96.8 (7.40)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>g-W_news_script</p></td><td class="cell"><p>53.57 (30.64)</p></td><td class="cell"><p>63.73 (24.32)</p></td><td class="cell"><p>71.2(20.06)</p></td><td class="cell"><p>66.4 (19.56)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>m-periodical</p></td><td class="cell"><p>3.26 (4.36)</p></td><td class="cell"><p>0(0)</p></td><td class="cell"><p>0(0)</p></td><td class="cell"><p>0(0)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>m-book</p></td><td class="cell"><p>2.52 (5.12)</p></td><td class="cell"><p>1.86 (3.31)</p></td><td class="cell"><p>0.6 (2.39)</p></td><td class="cell"><p>0.8(3.95)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>random3</p></td><td class="cell"><p>2.42 (4.28)</p></td><td class="cell"><p>0.13 (0.94)</p></td><td class="cell"><p>0(0)</p></td><td class="cell"><p>0(0)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>random2</p></td><td class="cell"><p>2.21 (3.84)</p></td><td class="cell"><p>0.26(1.32)</p></td><td class="cell"><p>0(0)</p></td><td class="cell"><p>0(0)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>randoml</p></td><td class="cell"><p>1.05 (2.12)</p></td><td class="cell"><p>0.13 (0.94)</p></td><td class="cell"><p>0.6 (2.39)</p></td><td class="cell"><p>0(0)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Rainbow</p></td><td class="cell"><p>Homogeneity</p></td><td class="cell"><p>Spearman's correlation</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1 doc per class</p></td><td class="cell"><p><b><i>D(p\\q)</i></b></p><p>2</p><p><i>X</i></p></td><td class="cell"><p>0.445</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1 doc per class</p></td><td class="cell"><p>0.383</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1 doc per class</p></td><td class="cell"><p><i>G<footnote anchor="2"/></i></p></td><td class="cell"><p>0.389</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5 doc per class</p></td><td class="cell"><p><i>D(p\k)</i></p><p>2</p><p><i>X</i></p></td><td class="cell"><p>0.291</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5 doc per class</p></td><td class="cell"><p>0.277</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5 doc per class</p></td><td class="cell"><p><i>G<footnote anchor="2"/></i></p></td><td class="cell"><p>0.286</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10 doc per class</p></td><td class="cell"><p><i>D{p\\q)</i></p><p>2</p><p><i>X</i></p></td><td class="cell"><p>0.273</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10 doc per class</p></td><td class="cell"><p>0.269</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10 doc per class</p></td><td class="cell"><p><i>G<footnote anchor="2"/></i></p></td><td class="cell"><p>0.281</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>15 doc per class</p></td><td class="cell"><p><i>D</i><i>(p\Vl)</i></p><p>2</p><p><i>X</i></p></td><td class="cell"><p>0.240</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>15 doc per class</p></td><td class="cell"><p>0.232</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>15 doc per class</p></td><td class="cell"><p><i>G<footnote anchor="2"/></i></p></td><td class="cell"><p>0.245</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><references><p>Douglas Biber. 1988. <i>Variation across speech and writing.</i></p><p>Cambridge University Press. Douglas Biber. 1993. Using register-diversified corpora for general language studies. <i>Computational Linguistics,</i> 19(2):219-41.</p><p>Nigel Dewdney, Carol VanEss-Dykema, and Richard MacMillan. 2001. The form is the substance: Clas­sification of genres in text. In <i>Workshop on hu­man language technology and knowledge management, </i>Toulouse, France. ACL 2001.</p><p>Ted Dunning. 1993. Accurate methods for the statistics of surprise and coincidence. <i>Computational Linguistics, </i>19(1):61-74.</p><p>Helka Folch, Serge Heiden, Benoit Habert, Serge Fleury, Gabriel Illouz, Pierre Lafon, Julien Nioche, and Sophie Prevost. 2000. Typtex: Inductive typological text classi­fication by multivariate statical analysis for nlp systems tuning/evaluation. In <i>Second International Conference on Language Resources and Evaluation, </i>pages 141-148, Athens, Greece. Lrec 2000.</p><p>k. Hofland and S. Johansson. 1982. <i>Word frequencies in British and American English. </i>The Norwegian Comput­ing Centre for the Humanities.</p><p>Gabriel Illouz, Benoit Habert, Helka Folch, Serge Heiden, Serge Fleury, Pierre Lafon, and Sophie Prevost. 2000.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">430</doubt><page local="6"/><p>Typtex: Generic features for text profiler. In <i>Content-Based Multimedia Information Access, </i>Paris, France. RIAO'2000.</p><p>Brett Kessler, Geoffrey Nunberg, and Hinrich Schutze. 1997. Automatic detection of text genre. In <i>Procceed-ings of the 37th Annual Meeting of the Association for Computational Linguistic and the 8th Conference of the European Chapter ofthe Association for Computational Linguistic, </i>pages 32-38, Madrid, Spain. ACL'97. Adam Kilgarriff. 2001. Comparing corpora. <i>International</i></p><p><i>Journal ofCorpus Linguistics, </i>6(1):1-37. David Lee. 2001. Genres, registers, text types, domains and styles: Clarifying the concepts and navigating a path through the bnc jungle. <i>Language Learning &amp; Technol­</i>ogy, 5(3):37-72. Special Issue on: "Using Corpora in Language Teaching and Learning. Andrew Kachites McCallum. 1996. Bow: A toolkit for statistical language modeling,text retrieval, classification and clustering. http://www.cs.cmu.edu/mccallum/bow. Frank Owen and Ronald Jones. 1977. <i>Statistics. </i>Polytech</p><p>Publishers, Stockport, UK. Douglas Roland and Daniel Jurafsky. 1998. How verb sub-categorization frequencies are affected by corpus choice. In <i>36th Annual Meeting of the Association for Computa­tional Linguistics, </i>pages 1122-1128, Montreal, Canada.</p><p>D. Scott, N. Bouayad-Agha, R. Power, S. Schulz, R. Beck, D. Murphy, and R. Lockwood. 2001. Pills: A multilin­gual authoring system for patient information. In <i>Vision ofthe Future and Lessons from the past. Proceeding of the 2001AMIA Annual Symposium, </i>Washington DC. Satoshi Sekine. 1997. The domain dependence of parsing. In <i>Proceedings ofthe Fifth Conference on Applied Natu­ral Language Processing, </i>Washington D.C., USA. ACL.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">431</doubt></references></body></article>