<?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" global="553"/><title>Cross-domain Feature Selection for Language Identification</title><pubinfo>Proceedings of the 5th International Joint Conference on Natural Language Processing,pages 553-561, Chiang Mai, Thailand, November 8 - 13, 2011. ©2011 AFNLP</pubinfo><author surname="Lui" givenname="Marco"><org  name="Peking University" country="China" city="Beijing"/></author><author surname="Baldwin" givenname="Timothy"><org  name="University of Melbourne" country="Australia" city="Melbourne"/></author></firstpageheader><frontmatter><p><b>Cross-domain Feature Selection for Language Identification</b></p><p><b>Marco Lui and Timothy Baldwin</b></p><p>NICTA VRL</p><p>Department of Computer Science and Software Engineering University of Melbourne, VIC 3010, Australia</p><p>saffsd@gmail.com, tb@ldwin.net</p></frontmatter><abstract>We show that transductive (cross-domain) learning is an important consideration in building a general-purpose language iden­tification system, and develop a feature selection method that generalizes across domains. Our results demonstrate that our method provides improvements in transductive transfer learning for language identification. We provide an implementa­tion of the method and show that our sys­tem is faster than popular standalone lan­guage identification systems, while main­taining competitive accuracy. </abstract></header><body><section number="1" title="Introduction"><p>Language identification (LangID) is the task of determining the language(s) that a text is written in. It is considered by some researchers to be a solved task, because previous research has re­ported near-perfect accuracy (Cavnar and Trenkle, 1994). Hughes et al. (2006) elaborated a number of simplifying assumptions that have made this the case, and Baldwin and Lui (2010a) showed that when some of these assumptions are relaxed to make the task closer to the actuality of open-web LangID, it becomes considerably harder. In this paper, we demonstrate that the style of evaluation used by Baldwin and Lui (2010a) performs well in-domain but badly cross-domain, and develop a novel method for preserving high in-domain ac­curacy, while significantly boosting cross-domain accuracy. Similarly to Baldwin and Lui (2010a), we make the simplifying assumption that all doc­uments are monolingual, despite recent work on multilingual LangID (Baldwin and Lui, 2010b).</p><p>LangID is usually formulated as a supervised machine learning problem and evaluated in an of­fline setting (Cavnar and Trenkle, 1994; Baldwin and Lui, 2010a).   However, its primary use is online without any additional configuration, op­timized for maximal cross-domain accuracy. A number of such standalone LangID systems are available, notable among which is TextCat (van Noord, 1997). TextCat has been the LangID solution of choice in research, and is the basis of language identification/filtering in the ClueWeb09 Dataset (Callan and Hoy, 2009) and Corpus-Builder (Ghani et al., 2004). Elsewhere, Google provides LangID as a web service via its Google Language Detect API (GoogleAPI). While it has much higher accuracy than TextCat (as we show in Section 6.1), research applications contravene the service's terms of use, and moreover the ser­vice is rate-limited.</p><p>Our ideal system should offer the same ad­vantages as TextCat in terms of licensing and run-time speed, while matching the open-domain accuracy and ease-of-use of an API such as GoogleAPI. To this end, we release the op­timized final LangID system described in this paper, and benchmark it against TextCat and GoogleAPI. Our major contributions are: (1) we show that negative transfer occurs when training a classifier over a combined set of LangID datasets; (2) we show that language models learned in a par­ticular domain do not always generalize to other domains; (3) we develop a method for extracting features for LangID that are not tied to a particular domain, and show that our method mitigates neg­ative transfer and provides improvements in cross-domain LangID; (4) we show that our method can incorporate additional languages without a penalty in performance on existing languages; and (5) we provide an implementation of our method that is faster than state-of-the-art LangID systems while maintaining competitive accuracy.</p></section><section number="2" title="Background"><p>LangID as a computational task is usually at­tributed to Gold (1967), who sought to investigate language learnability from a language theory per­spective. However, its current form is much more recognizable in the work of Cavnar and Trenkle (1994), where the authors classified documents ac­cording to rank order statistics over byte n-grams between a document and a global language pro­file. Since the 1990s, LangID has been formu­lated as a supervised machine learning task, and has been greatly influenced by text categorization in general. Monolingual LangID of a test docu­ment Di takes the form of a mapping onto a unique language from a closed set of languages C, i.e. I :<page local="2" global="554"/> Di — ci G C.</p><p>Statistical approaches applied to LangID in­clude the use of Markov models over n-gram fre­quencies (Dunning, 1994) and dot products of word frequency vectors (Darnashek, 1995). Ker­nel methods have also been applied to the task of LangID (Kruengkrai et al., 2005). Linguistically motivated models for LangID have also been pro­posed, such as stop word list overlap (Johnson, 1993), where a document is classified according to its overlap with lists for different languages. There has also been work on word and part of speech cor­relation (Grefenstette, 1995), cross-language to-kenisation (Giguet, 1995) and grammatical-class models (Dueire Lins and Goncalves, 2004).</p><p>LangID has been applied in a variety of do­mains, including USENET messages (Cavnar and Trenkle, 1994), web pages (Kikui, 1996; Mar­tins and Silva, 2005; Liu and Liang, 2008), and web search queries (Hammarstrom, 2007; Ceylan and Kim, 2009). It has been shown to improve performance of other tasks such as parsing (Alex et al., 2007) and multilingual text retrieval (Mc-Namee and Mayfield, 2004). It has also been used for gathering data for linguistic corpus creation (Ghani et al., 2004; Baldwin et al., 2006; Xia et al., 2009; Xia and Lewis, 2009), and is an im­portant area of research for supporting low-density languages (Hughes et al., 2006; Abney and Bird, 2010).</p><p><i>Transfer learning </i>refers to the use of data from external domains to improve task performance on a target domain. Pan and Yang (2010) provide a survey, in which they define <i>transductive </i>transfer learning, where labels are available in source do-main(s) but not in the target domain. This corre­sponds exactly to our task, where we wish to train a classifier using language-labelled data from a va­riety of sources, and apply this classifier to target data without making any assumptions about its do­main. Pan and Yang (2010) also discuss the phe­nomenon of <i>negative transfer, </i>whereby including data from the source domain(s) results in reduced performance in the target domain.</p><p>Other work has used the term <i>domain adapta­tion </i>to refer to <i>inductive </i>transfer learning, where labels are available in both the source and target domains, and the goal is to improve the perfor­mance in the target domain (Daume III and Marcu, 2006; Daume III, 2007). Daume III and Marcu (2006) tackle this problem by using a mixture model, where data in a specific domain is mod­elled as coming from a mixture of domain-specific and general components, and the linkage between domains is achieved by sharing a single general component. In our task, we have no labels in the target domain, and thus know nothing about the domain-specific component. Thus, our challenge is to build a suitable model of the general com­ponent, which we do by eliminating features that make minimal contribution to the general com­ponent. This approach makes the conversion of documents to a standardized representation much simpler than a model that decomposes individual features into general and domain-specific compo­nents.</p></section><section number="3" title="Data Sources"><p>For this work, we collected language-labelled de­velopment data from five sources of diverse ori­gin, and use these as the basis of our examination of in-domain, inductive (all-domain) and transduc-tive (cross-domain) learning. We additionally use three independent test data sets to validate the ef­fectiveness of the final methodology. Statistics of all datasets are provided in Table 1.</p><subsection number="3.1" title="Development data sets"><p><b>JRC-Acquis: </b>JRC-ACQUIS is an aligned multilingual parallel corpus (Steinberger et al., guages.<page local="3" global="555"/> From the corpus, we randomly selected 20000 documents without replacement, maintaing the relative skew of languages. For each docu­ment, only the text enclosed in the &lt;body&gt; tags was retained.</p><doubt alpha="53.5" length="43" tooSmall="False" monospace="0.0">2006) totalling 463792 documents in 22 lan-</doubt><table caption="Table 1: Summary of the LangID datasets" class="main" frame="box" rules="all" border="0" 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>Dataset</p></td><td class="cell"><p>Docs</p></td><td class="cell"><p>Langs</p></td><td class="cell"><p>Doc Length (bytes)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>JRC-Acquis ClueWeb09</p></td><td class="cell"><p>20000 20000</p></td><td class="cell"><p>22</p><p>10</p></td><td class="cell"><p>18478.5±60836.8 36909.0±20735.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Debian</p></td><td class="cell"><p>21735</p></td><td class="cell"><p>89</p></td><td class="cell"><p>12329.8±30902.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RCV2</p></td><td class="cell"><p>20000</p></td><td class="cell"><p>13</p></td><td class="cell"><p>3382.7±1671.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Wikipedia</p></td><td class="cell"><p>20000</p></td><td class="cell"><p>68</p></td><td class="cell"><p>7531.3±16522.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>N-EuroGOV</p></td><td class="cell"><p>1500</p></td><td class="cell"><p>10</p></td><td class="cell"><p>17460.5±39353.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>N-TCL</p></td><td class="cell"><p>3174</p></td><td class="cell"><p>60</p></td><td class="cell"><p>2623.2±3751.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>N-Wikipedia</p></td><td class="cell"><p>4963</p></td><td class="cell"><p>67</p></td><td class="cell"><p>1480.8±4063.9</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><p><b>C</b><b>lue</b><b>W</b><b>eb</b><b>09: </b>The ClueWeb09 dataset (Callan and Hoy, 2009) consists of about 1 billion web pages in 10 languages.<footnote anchor="1"/> The language of each document was automatically detected using TextCat, an implementation of the algorithm of instances from the dataset by selecting the first in­stance in each of 20000 files selected without re­placement. Because the language labels are auto­matically assigned, they do not constitute a true gold-standard, and we thus use ClueWeb09 ex­clusively as a training dataset in Section 6.</p><doubt alpha="58.1" length="43" tooSmall="False" monospace="0.0">Cavnar and Trenkle (1994). We sampled 20000</doubt><p><b>W</b><b>ikipedia: </b>Wikimedia provides dumps of the complete contents of all Wikipedia wikis.<footnote anchor="2"/> Indi­vidual languages have their own wiki, usually un­der the corresponding ISO 639-1 code. We ob­tained XML dumps of the wikis with valid ISO 639-1 codes. From these dumps, we selected 20000 pages in a skew-preserving fashion. In order to ensure that each language contained at least 20 documents, we limited selection to the 68 largest wikis by page count. The data we used was obtained from July-August 2010.</p><p><b>RCV2: </b>Reuters RCV2<footnote anchor="3"/> consists of over 487000 Reuters News stories in 13 languages. We ran­domly selected 20000 documents in a skew-preserving fashion.</p><p><b>Debian: </b>The Debian Project maintains manual translations of the content strings of a large number of software packages.<footnote anchor="4"/> We obtained all translations with codes corresponding to valid ISO 639-1 codes. This resulted in 21735 language-package pairs in 89 languages.</p><p>For each dataset, we randomly divided the doc­uments into two equal-sized partitions. One parti­tion was used for selecting language features and for training, and the other was used for testing.</p><footnote label="1">http://boston.lti.cs.cmu.edu/ clueweb09/</footnote><p>http://dumps.wikimedia.org/backup-index.html</p><footnote label="3">http://trec.nist.gov/data/reuters/ reuters.html</footnote><footnote label="4">http://i18n.debian.net/material/po/ unstable/main/</footnote><p>To distinguish between them, we label the parti­tions A and B, respectively. For example, De-biana is the partition of the Debian dataset used to compute feature weights and language models, and DebiaNb is the partition used for testing. We also make frequent use of the union of the A par­titions across all datasets, and will refer to this as</p><p>Uniona.</p></subsection><subsection number="3.2" title="Test data sets"><p>In order to evaluate accuracy in the transductive learning setting, we make use of N-EuroGOV, N-TCL and N-Wikipedia, the three datasets de­scribed in detail by Baldwin and Lui ( 010a). N-EuroGOV was sourced from the EuroGOV col­lection used in the 2005 Web-CLEF task, N-TCL was manually sourced by the Thai Computational Linguistics Laboratory (TCL) in 2005 from online news sources, and N-Wikipedia is drawn from a 2008 dump of Wikipedia, with normalization.</p></subsection></section><section number="4" title="Learning Algorithms"><p>In this work, we use a multinomial naive Bayes learner. For brevity, we only give a short sketch of the technique; it is described in much more de­tail by McCallum and Nigam (1998). The crux of the method is to compute the probability that an instance belongs to a class Ci from a given closed set C, and hence assign the most probable class to a document D, consisting of a vector of n features <i>X\ ...xn.</i></p><doubt alpha="63.6" length="22" tooSmall="False" monospace="0.0">c = argmaxdec P (Ci\D)</doubt><p>Bayes' theorem allows us to re-express this as:</p><doubt alpha="55.9" length="34" tooSmall="False" monospace="0.0">P(D\Ci)P (Ci) c = argmaxdec-P~(D)-</doubt><p>where <i>P(D) </i>is a normalizing constant indepen­dent of Ci. Thus for classification, we only need to estimate P(D\Ci) and P(Ci). C is modelled as a categorical distribution over classes, and so <i>P(Ci) </i>is obtained via a maximum likelihood esti­mate. In order to estimate <i>P(D\ Ci), </i>we make the naive assumption that each term is conditionally independent, hence:</p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">P(D\Cj )</doubt><footnote label="11">N D)ti !</footnote><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">i=1</doubt><p>where <i>ND)ti </i>is the frequency with which term <i>ti</i>occurs in <i>D.</i></p><page local="4" global="556"/><doubt alpha="13.2" length="76" tooSmall="True" monospace="0.0">0.05       0.10       0.15       0.20       0.25       0.30 0.35 IG Language</doubt><p>Figure 1 : Scatter plot of IG for language vs. IG for domain (byte trigrams)</p><p>The reason we select multinomial naive Bayes is that it is relatively lightweight and has been shown to be highly accurate when combined with feature selection (McCallum and Nigam, 1998; Manning et al., 2008). To establish the general-izability of our results, we also experimented with a nearest prototype classifier based on skew diver­gence (Lee, 2001), based on the findings of Bald­win and Lui (2010a). However, when combined with feature selection, we found it was consis­tently outperformed by the naive Bayes classifier, and thus omit results from this paper. We also ex­perimented with a linear-kernel SVM learner, but once again omit results as we found it to be compa­rable in accuracy to naive Bayes when combined with feature selection, but much slower to retrain.</p></section><section number="5" title="Feature Selection"><p>The document representation that we use is a mix­ture of byte n-grams (Cavnar and Trenkle, 1994; Baldwin and Lui, 2010a), as it is language-neutral in that it does not make any assumptions about the language or language type of each document. In particular, we make no assumptions about word delimitation (e.g. via white space) in each lan­guage. Results from Baldwin and Lui (2010a) ad­ditionally suggest that explicit encoding detection is not necessary in LangID, and that the simple byte tokenization strategy also used in this work is superior to encoding-aware codepoint-based to­kenization. Where we have data in more than one encoding, we do not transcode it; instead we sim­ply extract byte features across all the encodings. In practice this is not an issue as the data that we use is mostly UTF8-encoded, with small quanti­ties of other encodings (esp. in N-TCL). We make no further mention of encoding as it is not the fo­cus of this work.</p><doubt alpha="21.8" length="78" tooSmall="True" monospace="0.0">5000    10000   15000   20000   25000   30000   35000 40000 Document Frequency</doubt><figure caption="Figure 2: Scatter plot of DF vs.CD(byte tri­grams)"></figure><p>Cavnar and Trenkle (1994) perform feature se­lection over such a mixture of n-grams, where 1 &lt; <i>n &lt; </i>5. Their feature selection method is based on the frequency of terms, where the <i>N </i>most frequent terms for each language are retained in the global feature set. Related to term frequency is document frequency, where rather than counting individual terms in a class, we count the number of docu­ments that a particular term appears in. Feature selection based on document frequency has been shown to be inferior to other methods. Generally it has been found that Information Gain <i>(XQ</i><i> </i>: Quin-lan (1986)) is particularly suited to feature selec­tion in multiclass problem settings such as LangID (Yang and Pedersen, 1997; Forman, 2003).</p><p>The novel aspect of our research is that we con­sider <i>XQ</i><i> </i>of particular n-gram features along mul­tiple dimensions: (1) with respect to the set of all languages; (2) with respect to a given language; and (3) with respect to the domain the data was ob­tained from. We are interested in identifying fea­tures that have high <i>XQ </i>with respect to language but low <i>XQ </i>with respect to domain.</p><p>For each of 1-grams, 2-grams and 3-grams we computed the <i>XQ </i>of each feature with respect to the set of all languages in our development datasets (97 languages), as well as with respect to the set of 5 domains. A scatter plot of <i>XQ </i>for language vs. domain for 3-grams is presented in Figure 1. From this analysis, it is clearly visible that there are two distinct groups of features:<page local="5" global="557"/> one where the XQ for language is strongly correlated with that for domain, and one where the XQ for language is largely independent of that for domain. We are interested in identifying features in the sec­ond group, and so for each feature we compute a CD (Language-Domain) score, defined as:</p><doubt alpha="64.7" length="34" tooSmall="False" monospace="0.0">CDall{t) = XQ fjng(t)- XQdomain(t)</doubt><p>The number of features to consider grows ex­ponentially with n-gram order. This makes cal­culating the XQ for higher token n-gram orders computationally infeasible. Yang and Pedersen (1997) found that document frequency (DF) and XQ were strongly correlated. Thus, we studied the relationship between <i>CD </i>and DF in our data, and found that low DF is a good predictor of low CD score, but not vice versa, as seen in Figure 2. As DF is much cheaper to compute than XQ, we first identify the 15000 features with highest DF for a given n-gram order, and assign a CD score of 0 to all features outside this set.</p><p>We also consider an alternative formulation of CD. Due to skews between the quantities of data for each language, the highest-ranked features by CD tend to be biased towards the more common languages. In order to mitigate this, we also con­sider a formulation whereby we compute a CD<footnote anchor="6"/>*" score for each feature conditioned on each lan­guage l:</p><p><i>CD&gt;bin(t\l) = XQ</i><i>^OJnguage</i><i>(t</i>\l<i>) </i>- XQ<i>domain</i><i>(t)</i></p><p>In order to give better representaiton to less-frequent languages, we then select the top-scoring features from each language, and define the CD<footnote anchor="6"/>*" feature set as the union of these features.</p><p>The number of features N is a parameter in both methods that we will investigate empirically in Section 6.</p></section><section number="6" title="Experimental Setup and Results"><p>The results presented in Baldwin and Lui (2010a) are based on cross-validation within datasets, without considering the applicabiliy of a model learned in one domain to LangID in another do­main. Baldwin and Lui (2010a) also presented preliminary results with regards to feature selec­tion, based on the Cavnar and Trenkle (1994) method. We first compare results with and without feature selection using our <i>CDUn and CD</i>a" met­rics, as well as XQf" —where we select the top features according to their information gain with the set of all languages—and finally XQ<footnote anchor="6"/>*"ff— where we select a fixed number of features per lan­guage, according to their information gain with the language.</p><p>Baldwin and Lui (2010a) found that byte bi-grams performed well as a feature set for LangID, so we use them for this initial experiment. Tok-enizing across all of our datasets results in 57160 unique bigrams. For XQ^"ff and <i>CDal1</i>, we con­sider the top 2000 to 10000 features, in increments of 1000. For the per-language metrics, we exper­iment with selecting 100 to 800 features per lan­gauge, in increments of 100.</p><p>We perform this experiment in two settings:</p><p>(1) the supervised learning setting, where we use training and test data from the same domain; and (2) the inductive transfer learning setting, where we train a single classifier on Un ion a—the union of the A partitions across the five domains—and use this to classify partition B from each of the five domains in turn. We found that for <i>XQ^"ng</i>, 10000 features produced the best results; for XQ<footnote anchor="6"/>*"ff, it was 100 features per class, corresponding to 4078 features; for <i>CDal1</i>, it was 3000 features; and for <i>CD<footnote anchor="6"/>*" </i>it was 200 features per class, correspond­ing to 3086 features. We report the results for the best parametrization of each feature selection met­ric in Tables 2 and 3. In each case, we present the classification accuracy for the full feature set ("Full"), followed by the classification accuracy for feature selection over the same combination of training and test dataset, as the A over Full. In all our experiments, the language skew present in each domain is preserved in both the training and the test partitions.</p><p>In the supervised case, the accuracy attained is similar when using the full feature set as for the respective reduced feature sets. This shows that utilizing the reduced feature sets does not harm in­domain classification accuracy, implying that we are able to preserve the key features required for classifying the data.</p><p>In the case of inductive transfer learning, we observe negative transfer: the greater amount of training data causes the accuracy to drop. This is particularly evident over RCV2, where adding in data from the other four domains results in a drop in accuracy from 0.973 to 0.576. We find that the CD features are generally able to better mitigate this than the XQx    features. <i>CD<footnote anchor="6"/>*" </i>features provide the best accuracy over each dataset in the in­ductive transfer learning setting, increasing accu­racy over RCV2 to 0.<page local="6" global="558"/>986, exceeding the accuracy of the in-domain classification on the full feature set. We find that ££&gt;6m features can also improve accuracy for in-domain classification, increasing accuracy on RC V2 to a near-perfect 0.999. These results validate the choice of <i>CVhm </i>as a suitable metric for selecting general features for LangID.</p><p>Since our aim is to build a classifier in a trans-ductive transfer learning setting, we examined the behaviour of the <i>CVhm </i>features in such a setting over our 5 datasets. For each dataset, we trained a classifier on the A partitions, and evaluated the classifier on the B partition of each of the other datasets. Since each dataset covers a different set of languages, there may be languages in the eval­uation dataset that are not present in the training dataset. It makes no sense to attempt to clas­sify documents in these languages since we will by definition misclassify them, so the results re-sported in Table 4 are only over languages in the evaluation set that are also present in the train­ing set. As a result, caution must be exercised in naively comparing accuracy figures across differ­ent combinations of training and test datasets.</p><p>In Table 4, we see several examples of language models not generalizing to other domains. For ex­ample, we see that when using all features, the lan­guage models learned from RCV2 classify data from the RCV2 domain with accuracy 0.973, but this drops to 0.838, 0.889 and 0.796 in other do­mains. We also find that language models from other domains have reduced accuracy when classi­fying RCV2 data. We find that in all these cases, using the <i>CVhm </i>features mitigates this loss in ac­curacy. On RCV2 in particular, use of the <i>CVhm</i>features results in over 0.95 accuracy when train­ing with any of the 5 domains.</p><p>There is a number of domains where the use of the <i>CVhm </i>features results in a loss in accu­racy relative to the full feature set. This contrasts with our results in the inductive learning setting. We hypothesize that this is due to the <i>CVhm </i>fea­tures having been selected from the union of all 5 datasets. While this feature set represents a gen­eral model across these 5 domains, for a specific pair of domains there will be some additional fea­tures that are strong predictors of language.</p><p>Preliminary work by Baldwin and Lui (2010a) suggested that feature selection over a mixture of n-grams yielded promising results. This is also supported by Cavnar and Trenkle (1994), who use a mixture of 1- to 5-grams. We thus investigated the interaction between the range of n-gram orders used for feature selection, the number of features selected per language and classification accuracy. Based on the results in Tables 2, 3 and 4, we used the <i>CVhm </i>metric exclusively.</p><p>We conducted a parameter search for maximum token order M (e.g. M = 3 would mean all 1-, 2- and 3-grams) and number of features per lan­guage N. We considered 1 &lt; M &lt; 9 and 100 &lt; N &lt; 800 in increments of 100 features. We tested all combinations exhaustively in a su­pervised learning task across the union of all 5 datasets. We found that the best results are ob­tained for M &gt; 4 and N &gt; 300. In order to max­imize classification rate we need to minimize the number of features used, so we chose M = 4 and N = 300, producing a feature set consisting of 7480 features.</p><p>In building a universal LangID tool, we need to quantify the effect of training on languages ex­traneous to the target domain. To investigate this, we perform experiments over the datasets of Bald­win and Lui (2010a) using two different classi­fiers: a reference classifier trained on all languages<page local="7" global="559"/></p><table caption='Table 2: In-domain supervised learning accuracy, relative to all features ("Full")' 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><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Train</p></td><td class="cell"><p>Eval</p></td><td class="cell"><p>Full</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p><i>£Va"</i></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>JRC-ACQUISa</p></td><td class="cell"><p>JRC-ACQUISb</p></td><td class="cell"><p>0.985</p></td><td class="cell"><p>+0.000</p></td><td class="cell"><p>+0.007</p></td><td class="cell"><p>+0.007</p></td><td class="cell"><p>+0.005</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DEBIANa</p></td><td class="cell"><p>DEBIANb</p></td><td class="cell"><p>0.963</p></td><td class="cell"><p>+0.003</p></td><td class="cell"><p>+0.002</p></td><td class="cell"><p>-0.001 -0.003</p></td><td class="cell"><p>-0.016</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RCV2a</p></td><td class="cell"><p>RCV2b</p></td><td class="cell"><p>0.973</p></td><td class="cell"><p>-0.017</p></td><td class="cell"><p>-0.016</p></td><td class="cell"><p>+0.026</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>WIKIPEDIAa</p></td><td class="cell"><p>WIKIPEDIAb</p></td><td class="cell"><p>0.935</p></td><td class="cell"><p>+0.017</p></td><td class="cell"><p>+0.020</p></td><td class="cell"><p>+0.030</p></td><td class="cell"><p>+0.001</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><td class="cell"></td><td class="cell"></td></tr></table><table caption='Table 3: Inductive Transfer Learning (all-domain) accuracy, relative to all features ("Full")' 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><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Train</p></td><td class="cell"><p>Eval</p></td><td class="cell"><p>Full</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p><i>LVal1</i></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Uniona</p></td><td class="cell"><p>JRC-Acquis Debian RCV2 Wikipedia</p></td><td class="cell"><p>0.931 0.817 0.576 0.739</p></td><td class="cell"><p>-0.001</p><p>-0.031</p><p>-0.048 -0.150</p></td><td class="cell"><p>+0.039 +0.049</p><p>+0.129</p><p>-0.070</p></td><td class="cell"><p>+0.060</p><p>+0.122</p><p>+0.347</p><p>+0.179</p></td><td class="cell"><p>+0.062 +0.127</p><p>+0.410 +0.179</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><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">Debian</doubt><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">RCV2</doubt><p>Wikipedia</p><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">Full</doubt><p>Training</p><p>JRC-Acquis</p><p>ClueWeb09</p><p>JRC-Acquis "Full <i>CDbin</i></p><p>Test Dataset Debian RCV2</p><doubt alpha="0.0" length="13" tooSmall="False" monospace="0.0">-0.026 -0.039</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.985 +0.005</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.981 -0.005</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.983 -0.003</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.838 +0.148</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.837 +0.141</doubt><doubt alpha="0.0" length="5" tooSmall="False" monospace="0.0">0.979</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.989 -0.010</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.963 -0.016</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.889 -0.003</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.863 +0.011</doubt><doubt alpha="0.0" length="29" tooSmall="False" monospace="0.0">0.812 0.925 0.689 0.973 0.561</doubt><doubt alpha="0.0" length="34" tooSmall="False" monospace="0.0">+0.174 +0.069 +0.261 +0.026 +0.407</doubt><doubt alpha="0.0" length="5" tooSmall="False" monospace="0.0">0.977</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.927 -0.039</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.937 -0.058</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.796 +0.154</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.935 +0.001</doubt><table caption='Table 4: Transductive transfer learning (cross-domain) accuracy relative to all features ("Full")'></table><p>Test Dataset</p><p>langid.py Accuracy docs/s</p><p>TextCat AAcc Slowdown</p><p>TextCat (retrained) AAcc Slowdown</p><p>GoogleAPI AAcc Slowdown</p><p>tools, in terms of accuracy and speed (docupresent in the training set, and a domain-specific classifier trained only on languages in the test set. The reference classifier is trained on 1^-grams, selecting 300 features per language on the full 97 languages, whereas each domain-specific clas­sifier is trained only on the subset of languages present in the target domain.</p><p>Figure 3 shows a scatter plot of the per-language accuracy over the different datasets. Rather than harming performance, we find that adding lan-guges extraneous to the target domain generally has no impact on accuracy over the languages in the dataset. In fact, it occasionally positively im­pacts on accuracy (points to the left of the diago­nal), and for the rare instances where it hurts accu­racy (points to the right of the diagonal), the dif­ference is relatively modest.</p><subsection number="6.1" title="Comparison to existing tools"><p>Our ultimate interest is in building a standalone classifier that is fast and accurate. For comparison to existing tools, we implemented our method as a Python module (langid.py), in the form of a single Python file with pre-trained models for 97 languages. It can act as a standalone LangID sys­tem, an embedded Python module, or a web ser­vice with an AJAX API.<footnote anchor="5"/></p><p>We compared the speed and accuracy of our system to TextCat, as well as GoogleAPI. GoogleAPI is constrained to: (1) limit the classification rate to 10 documents/second, and (2) base the classification only on the first 500 bytes of the document. These constraints are imposed by the service's terms of use. For TextCat, we test it: (1) off-the-shelf using the pre-trained language models, and (2) after retraining it over the same training data as langid.py.</p><footnote label="5">The code is available for public download from http://www.csse.unimelb.edu.au/research/ lt/resources/langid/</footnote><p>Table 5 shows the accuracy of each system across 7 test datasets, as well as the speed in documents per second. We present absolute ac­curacy and speed for langid.py, and relative accuracy and slowdown for the other classifiers. The machine used to perform this experiment was a commodity desktop-class machine, with an In­tel Q9400 4-Core CPU, 4GB of RAM and a 7200RPM SATA II hard drive. The slowdown for GoogleAPI is reported based on a classification rate of 10 documents per second.</p><p>We find that in general, langid.py is faster and more accurate than TextCat (both off-the-shelf and re-trained). The difference is small­est over a "traditional" LangID dataset like N-EuroGOV which contains only 10 languages, and is much more pronounced over a dataset like N-TCL which has a much larger vari­ety of languages. Comparing langid.py and GoogleAPI, the two systems are evenly matched in accuracy, but again, langid.py is signifi­cantly faster. All differences in accuracy are sta­tistically significant (McNemar's test, <i>p &lt; </i>0.01).</p><p>We note that the accuracy of langid.py is slightly lower on N-TCL than on other datasets. N-TCL has a high proportion of non-UTF8 doc-<page local="8" global="560"/></p><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">£Vbtn</doubt><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">£Vbtn</doubt><doubt alpha="0.0" length="6" tooSmall="False" monospace="0.0">-0.055</doubt><table caption="Table 5: Comparison of standalone classification ments/second), relative tolangid.py" class="main" frame="box" rules="all" border="0" 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><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>JRC-Acquis</p></td><td class="cell"><p>0.991</p></td><td class="cell"><p>69.8</p></td><td class="cell"><p>-0.164 -0.305</p></td><td class="cell"><p>18.5x 25.1 x</p></td><td class="cell"><p>-0.075 -0.129</p></td><td class="cell"><p>11.1x 14.2x</p></td><td class="cell"><p>+0.004</p></td><td class="cell"><p>7.0x 9.4x</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Debian</p></td><td class="cell"><p>0.969</p></td><td class="cell"><p>94.1</p></td><td class="cell"><p>-0.043</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RCV2</p></td><td class="cell"><p>0.992</p></td><td class="cell"><p>146.6</p></td><td class="cell"><p>-0.642</p></td><td class="cell"><p>34.9x</p></td><td class="cell"><p>-0.922</p></td><td class="cell"><p>19.1x</p></td><td class="cell"><p>+0.005</p></td><td class="cell"><p>14.6x</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Wikipedia</p></td><td class="cell"><p>0.959</p></td><td class="cell"><p>102.7</p></td><td class="cell"><p>-0.210</p></td><td class="cell"><p>26.2x</p></td><td class="cell"><p>-0.365</p></td><td class="cell"><p>14.9x</p></td><td class="cell"><p>-0.012</p></td><td class="cell"><p>10.3x</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>N-EuroGOV</p></td><td class="cell"><p>0.987</p></td><td class="cell"><p>68.5</p></td><td class="cell"><p>-0.046</p></td><td class="cell"><p>18.1x</p></td><td class="cell"><p>-0.083</p></td><td class="cell"><p>11.1x</p></td><td class="cell"><p>+0.006</p></td><td class="cell"><p>6.9x</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-tcl</p></td><td class="cell"><p>0.904</p></td><td class="cell"><p>172.1</p></td><td class="cell"><p>-0.299</p></td><td class="cell"><p>38.8x</p></td><td class="cell"><p>-0.232</p></td><td class="cell"><p>22.5x</p></td><td class="cell"><p>+0.018</p></td><td class="cell"><p>17.2x</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>N-Wikipedia</p></td><td class="cell"><p>0.913</p></td><td class="cell"><p>209.2</p></td><td class="cell"><p>-0.207</p></td><td class="cell"><p>45.9x</p></td><td class="cell"><p>-0.227</p></td><td class="cell"><p>25.7x</p></td><td class="cell"><p>-0.010</p></td><td class="cell"><p>20.9x</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><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">1.0</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.8</doubt><doubt alpha="0.0" length="5" tooSmall="False" monospace="0.0">, 0.6</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">3 &lt;</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.4</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.2</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">TCL</doubt><p><b>Wikipedia EuroGOV</b></p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">++</doubt><doubt alpha="0.0" length="15" tooSmall="False" monospace="0.0">0.2 0.4 0.6 0.8</doubt><p><b>Accuracy (Domain Languages)</b></p><p>Figure 3: Per-language accuracy of a classifier trained only on languages present in the evaluation domain (x-axis) vs. all languages (y-axis)</p><p>Table 6: Comparison of TextCat to a NB classi­fier using CTand <i>CVhm </i>for feature selection, us­ing UnioNa as the training data uments (57%). To quantify the effect of this, we transcoded all the documents in N-TCL to UTF8 and repeated the experiment. We found that af­ter transcoding, the accuracy of langid.py in­creased from 0.904 to 0.947. This indicates that unsupported encodings have a small impact on ac­curacy, though it is relatively minor considering that the majority of the data is not UTF8-encoded.</p><p>The are two key conceptual differences between TextCat and langid.py: feature selection and learning algorithm. TextCat (CT) selects features per language by term frequency, whereas langid.py uses <i>CVhm </i>(the focus of this work). On the other hand, the learning algorithm used by TextCat is a nearest-prototype method us­ing the token rank difference metric of Cavnar and Trenkle (1994), whereas langid.py uses multinomial naive Bayes. in order to consider these differences independently, we combine the <i>CT</i>feature selection with the multinomial naive Bayes learner, selecting the union of the top-300 features per language by document frequency over 1- to 5-grams, yielding 10846 features. For comparison, we also selected the top 300 features by <i>CVhm </i>over 1- to 5-grams, yielding 8166 fea­tures. We then trained a naive Bayes classifier over UnioNa using the respective feature sets, and used it to classify each of N-EuroGOV, N-TCL and N-Wikipedia. In Table 6, we com­pare the accuracy of these two classifiers to (re­trained) TextCat. Across all datasets, <i>CVbin</i>is superior to CT. Additionally, NB with CTis superior to TextCat (which uses the same fea­ture selection strategy, with the nearest prototype learner), although the difference here is much smaller. This suggests that the bulk of the im­provement of langid.py over TextCat is due to the use of <i>CVhm</i>, as developed in this research.</p></subsection></section><section number="7" title="Conclusion"><p>We demonstrated the problem of negative trans­fer in training a LangID system using language-labelled data from a variety of domains. We de­veloped a method for identifying features that are strongly predictive of language across multiple do­mains by examining the difference in information gain of each feature with language and with the source domain. We used this method to compile a feature set from 50,000 documents in 97 lan­guages across 5 datasets, and implemented this as a standalone LangID system using a naive Bayes classifier. We empirically compared our system to state-of-the-art LangID systems, and found our system to be faster whilst maintaining competitive accuracy.</p></section><section title="Acknowledgments"><p>The authors wish to thank Google for providing increased ac­cess to the Google AJAX Language Identification API for the purposes of this research. The first author was additionally a recipient of travel support from Google Australia.</p><p>NICTA is funded by the Australian Government as rep­resented by the Department of Broadband, Communications and the Digital Economy and the Australian Research Coun­cil through the ICT Centre of Excellence program.</p><table class="main" frame="box" rules="all" border="0" 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>Test dataset</p></td><td class="cell"><p>Feature selection</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>CT</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>TextCat</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>N-EuroGOV</p></td><td class="cell"><p>0.904</p></td><td class="cell"><p>+0.067</p></td><td class="cell"><p>+0.083</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n-tcl</p></td><td class="cell"><p>0.672</p></td><td class="cell"><p>+0.016</p></td><td class="cell"><p>+0.227</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>N-Wikipedia</p></td><td class="cell"><p>0.686</p></td><td class="cell"><p>+0.084</p></td><td class="cell"><p>+0.223</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></section><references><p>Steven Abney and Steven Bird. 2010. The human language project: building a Universal Corpus of the world's lan­guages. In <i>Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics, </i>pages 88-97, Uppsala, Sweden.</p><p>Beatrice Alex, Amit Dubey, and Frank Keller. 2007. Us­ing foreign inclusion detection to improve parsing perfor­mance. in <i>Proceedings ofthe Joint Conference on Empir­ical Methods in Natural Language Processing and Com­putational Natural Language Learning 2007 (EMNLP-CoNLL 2007), </i>pages 151-160, Prague, Czech Republic.</p><page local="9" global="561"/><p>Timothy Baldwin and Marco Lui. 2010a. Language identifi­cation: The long and the short of the matter. in <i>Proceed­ings of Human Language Technologies: The 11th Annual Conference ofthe North American Chapter ofthe Associ­ation for Computational Linguistics (NAACL HLT 2010), </i>pages 229-237, Los Angeles, USA.</p><p>Timothy Baldwin and Marco Lui. 2010b. Multilingual lan­guage identification: ALTW 2010 shared task dataset. in <i>Proceedings ofthe Australasian Language Technol­ogy Workshop 2010 (ALTW 2010), </i>pages 5-7, Melbourne, Australia.</p><p>Timothy Baldwin, Steven Bird, and Baden Hughes. 2006. Collecting low-density language materials on the web. in <i>Proceedings ofthe 12th Australasian eb Conference (AusWeb06). </i>http://www.ausweb.scu.edu.au/ ausweb0 6/edited/hughes/.</p><p>Jamie Callan and Mark Hoy, 2009. <i>ClueWeb09 Dataset. </i>Available at http://boston.lti.cs.cmu.edu/ Data/clueweb09/.</p><p>William B. Cavnar and John M. Trenkle. 1994. N-gram-based text categorization. in <i>Proceedings ofthe Third Symposium on Document Analysis and Information Re­trieval, </i>Las Vegas, USA.</p><p>Hakan Ceylan and Yookyung Kim. 2009. Language iden­tification of search engine queries. In <i>Proceedings of the Joint Conference ofthe 47th Annual Meeting ofthe ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP, </i>pages 1066-1074, Singapore.</p><p>Marc Darnashek. 1995. Gauging similarity with <b>n</b>-grams: Language-independent categorization of text. <i>Science, </i>267:843-848.</p><p>Hal Daume III and Daniel Marcu. 2006. Domain adaptation for statistical classifiers. <i>Journal of Artificial Intelligence Research, </i>26(1):101-126.</p><p>Hal Daume III. 2007. Frustratingly easy domain adaptation. In <i>Proceedings of the 45th Annual Meeting of the Asso­ciation for Computational Linguistics (ACL 2007), </i>pages 256-263, Prague, Czech Republic.</p><p>Rafael Dueire Lins and Paulo Goncalves. 2004. Automatic language identification of written texts. In <i>Proceedings of the 2004 ACM Symposium on Applied Computing (SAC 2004), </i>pages 1128-1133, Nicosia, Cyprus.</p><p>Ted Dunning. 1994. Statistical identification of language. Technical Report MCCS 940-273, Computing Research Laboratory, New Mexico State University.</p><p>George Forman. 2003. An Extensive Empirical Study of Feature Selection Metrics for Text Classification. <i>Journal of Machine Learning Research, </i>3(7-8):1289-1305.</p><p>Rayid Ghani, Rosie Jones, and Dunja Mladenic. 2004. Building Minority Language Corpora by Learning to Gen­erate Web Search Queries. <i>Knowledge and Information Systems, </i>7(1):56-83.</p><p>Emmanuel Giguet. 1995. Categorization according to lan­guage: A step toward combining linguistic knowledge and statistic learning. in <i>Proceedings ofthe 4th International Workshop on Parsing Technologies (IWPT-1995), </i>Prague, Czech Republic.</p><p>E. Mark Gold. 1967. Language identification in the limit. <i>Information and Control, </i>5:447-474.</p><p>Gregory Grefenstette. 1995. Comparing two language iden­tification schemes. In <i>Proceedings ofAnalisi Statistica dei Dati Testuali (JADT), </i>pages 263-268.</p><p>Harald Hammarstrom. 2007. A Fine-Grained Model for Language Identication. In <i>Proceedings of Improving Non English Web Searching (iNEWS07), </i>pages 14-20.</p><p>Baden Hughes, Timothy Baldwin, Steven Bird, Jeremy Nicholson, and Andrew MacKinlay. 2006. Reconsider­ing language identification for written language resources.</p><p>In <i>Proceedings of the 5th International Conference on Language Resources and Evaluation (LREC 2006), </i>pages 485-488, Genoa, Italy.</p><p>Stephen Johnson. 1993. Solving the problem of language recognition. Technical report, School of Computer Stud­ies, University of Leeds.</p><p>Genitiro Kikui. 1996. Identifying the coding system and language of on-line documents on the internet. In <i>Pro­ceedings ofthe 16th International Conference on Compu­tational Linguistics (COLING '96), </i>pages 652-657, Ky­oto, Japan.</p><p>Canasai Kruengkrai, Prapass Srichaivattana, Virach Sornlert-lamvanich, and Hitoshi Isahara. 2005. Language identifi­cation based on string kernels. In <i>Proceedings of the 5th International Symposium on Communications and Infor­mation Technologies (ISCIT-2005), </i>pages 896-899, Bei­jing, China.</p><p>Lillian Lee. 2001. On the effectiveness of the skew diver­gence for statistical language analysis. In <i>Proceedings of Artificial Intelligence and Statistics 2001 (AISTATS 2001), </i>pages 65-72, Key West, USA.</p><p>Jicheng Liu and Chunyan Liang. 2008. Text Categorization of Multilingual Web Pages in Specific Domain. In <i>Pro­ceedings of the 12th Pacific-Asia Conference on Advances in Knowledge Discovery and Data Mining, </i>PAKDD'08, pages 938-944, Osaka, Japan.</p><p>Christopher D. Manning, Prabhakar Raghavan, and Hinrich Schütze. 2008. <i>Introduction to Information Retrieval. </i>Cambridge University Press, Cambridge, UK.</p><p>Bruno Martins and Mario J. Silva. 2005. Language identi­fication in web pages. In <i>Proceedings of the 2005 ACM Symposium on Applied Computing (SAC 05), </i>page 764.</p><p>Andrew McCallum and Kamal Nigam. 1998. A compari­son of event models for Naive Bayes text classification. In <i>Proceedings of the AAAI-98 Workshop on Learning for Text Categorization, </i>Madison, USA.</p><p>Paul McNamee and James Mayfield. 2004. Character <b>T</b>V-gram Tokenization for European Language Text Retrieval. <i>Information Retrieval, </i>7(1-2):73-97.</p><p>Sinno Jialin Pan and Qiang Yang. 2010. A Survey on Trans­fer Learning. <i>IEEE Transactions on Knowledge and Data Engineering, </i>22(10):1345-1359, October.</p><p>J.R. Quinlan. 1986. Induction of Decision Trees. <i>Machine Learning, </i>1(1):81-106, October.</p><p>Ralf Steinberger, Bruno Pouliquen, Anna Widiger, Camelia Ignat, Tomaz Erjavec, Dan Tufis, and Daniel Varga. 2006. The JRC-Acquis: A multilingual aligned parallel corpus with 20+ languages. In <i>Proceedings of the 5th Interna­tional Conference on Language Resources and Evaluation (LREC'2006), </i>Geona, Italy.</p><p>Gertjan van Noord, 1997. <i>TextCat. </i>Software avail­able at http://odur.let.rug.nl/~vannoord/</p><p>TextCat/.</p><p>Fei Xia and William Lewis. 2009. Applying NLP technolo­gies to the collection and enrichment of language data on the web to aid linguistic research. In <i>Proceedings of the EACL 2009 Workshop on Language Technology and Re­sources for Cultural Heritage, Social Sciences, Humani­ties, and Education (LaTeCH - SHELT&amp;R 2009), </i>pages 51-59, Athens, Greece.</p><p>Fei Xia, William Lewis, and Hoifung Poon. 2009. Language ID in the context of harvesting language data off the web. In <i>Proceedings of the 12th Conference of the EACL (EACL 2009), </i>pages 870-878, Athens, Greece.</p><p>Yiming Yang and Jan O. Pedersen. 1997. A comparative study on feature selection in text categorization. In <i>Pro­ceedings of the 14th International Conference on Machine Learning.</i></p></references></body></article>