Language ID in the Context of Harvesting Language Data off the Web
Paper · 2009 · Fei Xia, William Lewis and Hoifung Poon
Summary
A linguistic article can contain evidence about a language in a passage only a few words long. The passage may come with a gloss and a translation, yet its language may be named only in the surrounding discussion. Xia, Lewis and Poon study how to recover that name’s corresponding language code automatically when collecting examples from scholarly documents for the Online Database of Interlinear Text, or ODIN. A document can compare several languages, so the system has to identify the language of each example separately. In the authors’ evaluation, a passage on the language line averages 5.1 words, the examples cover 638 languages, and about 10% of test examples come from languages absent from training. This combination makes it difficult to identify languages from their spelling patterns alone.
The authors treat the task as an instance of coreference resolution, the problem of deciding which expressions refer to the same entity. Here the expressions are linguistic examples and language names, and the entities are language codes. The system considers names found in the document and learns to judge whether each candidate code matches a particular example. Evidence includes where a name appears, how much the example resembles labeled material from training, and whether examples within the same document share words or shorter pieces of text. The system learns the value of those cues across languages. A name next to an example can therefore provide evidence for a language even when the system has never trained on an example labeled with that language’s code.
In 10-fold cross-validation on the labeled ODIN collection, TextCat, an identifier based on recurring character sequences, reaches 51.38% accuracy by itself and 60.72% when its choices are restricted to languages named in the document. A direct classifier that also uses document cues and this restriction reaches 67.03% without access to the correct labels of neighboring examples. The authors’ best practical system reaches 85.10%, and their alternative, which uses Markov logic to reason jointly about examples, reaches 84.70%. Supplying the correct labels of other examples raises the sequence-labeling system’s accuracy to 90.26%, a diagnostic of how much information those labels carry.
The distinction also matters when labeled data are scarce. With 0.1% of the original training data and the same test set, the sequence-labeling system with all cues available at prediction time reaches 70.15%. The direct classifier’s ceiling in that setting is 1.66%, the proportion of test examples whose labels it could output at all. Linking examples to names trades that dependence on training coverage for dependence on the document. The authors estimate a 97.31% ceiling based on whether the correct language is named in the same document. Within that coverage, choosing the right name and settling ambiguous codes remain substantive problems.
Deep dive: Language ID in the Context of Harvesting Language Data off the Web
A study of how language names and nearby examples help identify the languages of short linguistic passages harvested from the web. · about 33 minutes to read
The problem and its context
A document can be about several languages at once
Imagine collecting the linguistic examples from an article that discusses a construction in one language, then compares it with related constructions elsewhere. The prose may be readable English throughout. Embedded in it are small pieces of the languages under discussion, each arranged for a reader to inspect. Identifying the language of the running prose answers a different question from identifying which language supplied any particular example. The latter is the question ODIN needs answered before the examples can be retrieved by language.
The paper concentrates on interlinear glossed text, abbreviated IGT. In its canonical form, an example gives the original language on one line, an English gloss on the next, and an English translation after that. The gloss lines up pieces of the original with brief indications of their meanings or functions. The translation gives the reader the sense of the expression as a whole. The layers are useful precisely because a reader may have no prior familiarity with the language under study. For automatic identification, the gloss and translation also make clear why the example must be read as a structured object. The words of the translation serve a different purpose from the words whose language needs a label.
The paper illustrates this arrangement with a scholarly document on Edo. The surrounding discussion introduces a minimal pair, and the examples use closely related forms to illustrate a grammatical distinction. A reader can use the introduction, the article’s title and the relationship between the examples to interpret their provenance. The language lines are much shorter than the discussion that situates them. A language identifier has to recover the relevant part of that context while passing over other mentions, including names that appear in unrelated roles.
Identifying every example separately is consequential in the authors’ data. About 40% of the labeled documents contain examples from multiple languages. A prominent name in a title may be an excellent guide to the primary subject of an article and a poor guide to a comparison buried in its discussion. A system that treats the name as the label for the entire document cannot represent that change. A system that looks only at the example can miss the explanation that made the change clear to a human reader.
The paper also notes that scholarly writers sometimes use Romanized forms for languages whose writing systems use other scripts. It gives pinyin for Chinese as an example. A script can narrow the range of possible languages in some settings, so losing that distinction removes a source of evidence. Extraction introduces another difficulty. About 0.26% of the language lines in the evaluation collection are empty after crawling or extraction errors. An identifier has no language-line spelling to inspect in those cases, although the document may still contain clues about the intended example.
Why labels matter after collection
ODIN gathers IGT from scholarly material already available on the web. The collection process retrieves documents, locates interlinear examples in them and assigns language codes to the extracted material before storing it for search. The paper addresses the code assignment stage. At the time described, ODIN held about 189,000 instances from approximately three thousand documents and represented close to a thousand languages. A further 130,000 documents containing interlinear examples had been retrieved and were awaiting processing. Those figures describe the collection effort. The labeled portion used for the experiments is smaller.
A searchable language field lets a linguist retrieve examples of a language or a family. ODIN also supports searches for examples illustrating particular constructions, such as passives or wh-movement. An identification error matters in both contexts. A reader searching for material about a language may miss relevant examples or find examples from other languages under the requested code. Treating a printed name as the stored identity would introduce its own problems, since languages can appear under several names and one spelling can refer to several languages.
The authors view the examples collectively as a multilingual resource with parallel material, since the source-language lines are aligned with English glosses and translations. Earlier work described in the paper had already investigated harvesting the examples and enriching them through structural projection, which uses the aligned material to carry structural information across the lines. It had also used enriched examples to answer typological questions such as a language’s usual word order, and explored search and the possibility of using the derived information as prototypes for learning. Those uses make a language code meaningful beyond cataloguing. If the examples are pooled to infer something about a language, its label determines which pool receives the evidence. The paper presents this as a way to support work on low-resource languages.
Why the usual training assumptions change
Earlier approaches to written language identification include systems that compare a new text with patterns estimated from known languages. The paper highlights Cavnar and Trenkle’s approach based on character sequences. An n-gram is a sequence of consecutive units, such as characters or words. Recurring character sequences can help distinguish languages when the available examples are long enough to show their characteristic patterns and the identifier has seen enough labeled material to learn those patterns.
The difficulty in ODIN is the combination of short inputs, many candidate languages and very uneven training coverage. The authors give 23 examples and 116 language-line word tokens as the averages for a language represented in training. For 45.3% of the languages, the training material contains no more than 10 word tokens. That can leave a character-based identifier with little evidence from which to infer recurring patterns. And for a language entirely absent from training, a conventional identifier that builds its set of predictions from its training labels has no way to select the correct code. The obstacle arises before the identifier compares any strings.
The paper places this task in the context of Hughes and colleagues’ review of outstanding problems in written language identification. The authors say their own setting encounters eight of the eleven questions identified in that review. Their point is that a collection spanning many languages changes several assumptions at once. The amount of text per input shrinks, the number of labels grows, and the evidence supporting each label becomes less evenly distributed. At the same time, there is a source of information that a short-text identifier need never have used before. These examples occur in documents written to tell readers what the examples illustrate.
Earlier work on coreference supplies the alternative formulation. In the usual task, a system may decide which person or thing a name or pronoun refers to. The paper invokes sequential approaches that make linking decisions one mention at a time, including A Machine Learning Approach to Coreference Resolution of Noun Phrases and Improving Machine Learning Approaches to Coreference Resolution. It also draws on work that reasons about interdependent decisions, including Joint Determination of Anaphoricity and Coreference Resolution using Integer Programming and Joint Unsupervised Coreference Resolution with Markov Logic. The ODIN task gives the analogy a concrete meaning. An interlinear example may rely on a nearby name for its interpretation, much as a pronoun relies on surrounding text. The system has to resolve that dependence to a code suitable for the database.
The method, step by step
Find possible languages in the document
The system begins with a document and the interlinear examples already extracted from it. The task is to assign a code to each example. For the linking approach, the first step is to identify plausible languages from the surrounding text. This requires a catalogue that can handle both directions of ambiguity. A language may have several names, and a name found in a document may have more than one possible interpretation.
The authors merge ISO 639-3, the 15th edition of Ethnologue and LinguistList’s list of ancient and dead languages. The merged table contains 7816 codes and 47,728 code–name pairs. It contains 44,071 distinct names, of which 2625 are ambiguous, or 5.95% of the names. These counts describe the catalogue available to the name finder. The 638 languages in the evaluation collection describe the examples actually labeled for the experiments. A broader catalogue is useful because a document can mention a language that has no examples in the training portion.
The authors give aaa as an example of a code with several names, including Alumu-Tesu and Arum-Cesu. The form Edo illustrates ambiguity in the opposite direction. The table associates it with both bin and lew. If the document says Edo, recognition of the name alone leaves both codes in play. The system must score the possibilities separately and look for other evidence. This is one reason the prediction target is a code. A system that returns the written name would leave unresolved the distinction the database needs to make.
As it reads the document from left to right, the name detector identifies the longest string that matches an entry in the name table. When a match points to multiple codes, subsequent stages consider them all. Longest matching helps retain a name that consists of several words when it can be recognized as a whole. Matching still operates on strings, so an exact match can occur in an unrelated context. In the paper’s Edo example, the detector finds Thompson in an author’s name and treats thp as a possible language code. Conversely, a genuine language name outside the catalogue produces no match. Both kinds of mistakes change the evidence available to the scorer.
How document context becomes a language code
The steps in order.
Turn clues into evidence for a candidate
The paper groups the evidence into feature families. A feature is an input to a learned decision rule. Here the features are binary, so each one records whether a particular condition holds. Some of the conditions come straight from where a name appears. Others begin with a numerical comparison of text and become binary by testing the comparison against a threshold. This common representation means the learner can weigh a proximity clue and a lexical clue within the same decision.
F1 is the nearest preceding language-name cue. Suppose the system is evaluating a proposed code for an example. It checks whether the closest detected language name before that example can refer to the proposed code. In the Edo example, both bin and lew satisfy this condition. The feature carries forward the strong evidence that the author is discussing Edo without resolving what Edo denotes in this instance. That resolution is left to the combination of available cues.
F2 broadens the view. It checks for languages in the example’s neighborhood, at the beginning of the document and at its end. The authors use lines within 50 lines of the example and the first 50 and last 50 lines of the document. They also use a feature based on which language occurs most often in the document. A name near an example can signal a local topic. A name in the opening can signal the subject of the article. A often mentioned name can help when there is little nearby prose, although frequency also gives a prominent language many opportunities to compete with the intended one. These cues have different scopes, and proximity to the example is only one of them.
F3 compares the example with material already labeled in training. For each language represented there, the system builds lists of individual words, individual morphs and character sequences up to the length specified in the paper. A morph is a piece into which a word is segmented, so a morph list can capture recurring material even when complete word forms differ. The system builds corresponding lists from the current example’s language line and measures overlap. A threshold turns a sufficient amount of overlap into a feature that is present for the pair. Word, morph and character comparisons allow evidence at different levels of granularity to contribute to the decision.
n ≤ 4
The symbol n is the number of characters in a character n-gram. The symbol ≤ makes 4 the largest length included in these lists. Word and morph comparisons use unigrams, meaning individual items from those segmentations.
F4 looks for related language material in other examples from the same document. An author may present a closely related set of examples, and those examples can share words or shorter fragments. That recurrence can be informative even where there is too little material about the language in the training collection to build a useful list. The feature family asks whether other examples give the current one a reason to share their language assignment. In the direct and sequential formulations this requires a code for the other material whose tokens are being compared. In the joint formulation the relationship between examples is represented explicitly.
The difference between F3 and F4 matters for prediction. Training data supply the labels for F3’s reference lists. At prediction time, the other examples in the current document are themselves items to identify. Their correct labels are unavailable in ordinary use. A system can use its own tentative assignments or reason over assignments jointly, and the authors compare those possibilities with a diagnostic in which correct labels are supplied. The diagnostic tests the usefulness of the nearby material under more favorable conditions than a harvesting system encounters.
Change what the learner is asked to predict
The direct formulation, which the authors abbreviate CL, is an example of text classification. Its input is an example described by features, and the answer is one code drawn from a pre-defined label set. The paper describes this using x for the training or test instance, y for its predicted class and C for the set of permitted classes. In the feature-based implementation, a statement such as “the nearest preceding name can refer to bin” has a feature name containing bin. A parallel statement about lew has a different feature name. The training procedure estimates how the features relate to the classes represented in its data.
Consider how this represents the first Edo example. Its correct label is bin. The preceding name activates a nearest-name feature for bin and another for lew. The occurrence of Thompson adds a cue for thp in the broader preceding context. Lexical comparisons add signals for bin where the example overlaps the word and morph lists drawn from training. The learner sees these inputs together and has to choose among the class labels it knows. The feature representation keeps the identities of the languages distinct even when the same type of evidence applies to them.
In the authors’ linking formulation, abbreviated CoRef, the input is an example paired with a candidate code. The output is Same when the example is in that language or Diff otherwise. A labeled example with several candidates can supply positive and negative instances of the same kind of decision. Its positive instance pairs it with the known code if that code is among the candidates. The other pairs teach the scorer what a plausible-looking but incorrect association can resemble. At prediction time the candidate with the strongest matching score is chosen for the example.
The Edo example now gives rise to separate pairs. For the bin and lew pairs, the nearest-name feature has the same name and is present in both. For the thp pair, the preceding-context feature can be present without the nearest-name cue. Word and morph overlap give the bin pair further evidence. For the next example, the paper also shows a feature indicating sufficient word overlap with other examples assigned bin in the document. The evidence for a pair still depends on which language was proposed. The name of the feature can stay the same because the candidate is already part of the input.
The authors refer to sharing feature weights this way as parameter tying. Suppose a learner sees many examples where a preceding language name correctly identifies the language of the next passage. With a shared feature, all those cases can inform the weight for that pattern, even when they involve different codes. Later, a candidate never encountered as a training label can activate that same feature if its name appears in the right place. That is the route by which an unseen language can be predicted. A spelling overlap with labeled texts from that language cannot supply the evidence in this situation, but other features can.
In a conventional classifier, the same generalization is difficult with the paper’s representation because the name feature for one code is distinct from the feature for another. The authors note that a change in the learning procedure would be needed to share what those cases teach. They build the shared structure directly into the input to the linking decision. It gives the score a consistent interpretation across candidate languages and reduces the number of separately estimated quantities.
Score links in sequence or reason about them jointly
The first CoRef implementation uses a maximum entropy classifier, abbreviated MaxEnt. It learns weights for the features that distinguish matching from nonmatching pairs. The scores for the competing pairs can then be used to rank the codes for an example. The authors refer to this implementation as sequence labeling because it works through decisions for the examples and can use assignments in the document to form the cross-example features.
The authors implement beam search for this system. Beam search can keep several partial assignments under consideration as it proceeds, allowing an earlier alternative to remain available when later evidence makes it more plausible. Keeping only the strongest choice gives a simpler decision process that commits to one assignment as it goes. The paper reports that beam size matters little for this task and uses the top choice per example in its reported CoRef sequence-labeling experiments. Those choices supply F4 in practical use. The version that receives correct labels for other examples answers a separate question about the value of F4 when those assignments are dependable.
The other implementation represents uncertain relationships with Markov logic. A Markov logic network contains weighted logical clauses. When the variables in those clauses are replaced with particular examples, candidate languages or features, the resulting statements concern concrete cases. Such an instance of a statement is called ground. The paper describes a network with a node for each ground atom, an elementary statement about a particular set of arguments, and a feature for each ground clause. The feature inherits the weight of the clause from which it came.
The point of using weighted clauses is that a generalization can influence the assignment without acting as an infallible rule. A particular language name appearing right before an example can favor a link. Similarity between examples can favor compatible assignments. The probability of a state takes account of the weighted statements satisfied by that state.
P(x) = (1 / Z) exp(Σᵢ wᵢ fᵢ(x))
P(x) is the probability of state x, a complete assignment of truth values in the network. The index i ranges over ground clauses, and Σᵢ adds their contributions. wᵢ is the weight of clause i, and fᵢ(x) is 1 when that clause is true in x and 0 otherwise. exp is the exponential function applied to the weighted sum. Z is the normalization constant that makes the probabilities of the possible states sum to 1. The index i in this equation has a different role from the example variable i in the rules below.
In the authors’ application, HasFeature records evidence from F1 through F3 for a proposed link. HasRelation represents a relationship from F4 between examples in the same document. IsSame is the predicate whose truth the system seeks to determine for the example and proposed language. A predicate is a statement with named arguments that can be true or false when those arguments refer to specific things. In the Edo case, the nearest-name evidence can hold for both code candidates, while the word-list comparison can provide additional evidence for the correct one.
IsSame(i, l)
IsSame is true when example i is in the language represented by code l. The variable i ranges over interlinear examples, and l ranges over language codes. As a weighted clause by itself, this expresses the default support for a link before the other rules contribute evidence.
HasFeature(i, l, +f) ⇒ IsSame(i, l)
HasFeature says that example i and language code l satisfy feature f, where f comes from F1 through F3. The + before f makes the learner estimate a separate weight for each feature, allowing position and lexical overlap to carry different amounts of evidence. The ⇒ symbol expresses implication from the feature to the proposed link, and IsSame(i, l) means that i belongs to l. The clause’s weight determines its influence when the feature holds.
HasRelation(i₁, i₂, +r) ∧ IsSame(i₁, l) ⇒ IsSame(i₂, l)
i₁ and i₂ denote interlinear examples, and the subscripts distinguish them. HasRelation says that the relation r holds between those examples, where r corresponds to an F4 feature. The + before r allows a separate weight for each relation. ∧ requires both statements on the left to hold, namely that the examples have the relation and that i₁ is in the language with code l. ⇒ connects that combination to IsSame(i₂, l), the proposed assignment of the same language to i₂. The variables for examples and codes carry no +, so the weight for a relation is shared across them.
The rules express different routes to a decision. A feature such as a nearby name can support a particular code directly for a particular example. A relationship such as shared words can let the evidence for a code on one example support that code for another. This second route gives the joint system a way to use dependencies within a document. The clauses express that relationship at the level of examples rather than requiring the authors to write a separate rule for every possible language.
For training and inference the paper uses Alchemy’s existing implementations with default settings. Weights are estimated by pseudo-likelihood training with L-BFGS. Pseudo-likelihood uses local conditional probabilities to approximate the problem of fitting the network as a whole, and L-BFGS is the optimization procedure used to adjust the weights. MC-SAT, a Markov chain Monte Carlo method, estimates conditional probabilities through sampling. In the authors’ experiments with F4, the test-set HasRelation statements are supplied as evidence in the diagnostic condition and treated as queries in the practical condition. This describes the availability of information in the joint system, whose implementation differs from filling in F4 from earlier guesses in the sequential system.
Experiments and results
What was evaluated
The experiments use the portion of ODIN whose examples had been assigned language codes semi-automatically. It contains 15,239 interlinear examples from 1160 documents and represents 638 languages. There are 77,063 word tokens on the language lines. The labeled codes provide the standard for evaluation. The task is scored by language-identification accuracy, meaning the proportion of examples for which the output matches the reference code. This measures decisions for individual examples, which is what the database needs even when a document supplies shared context.
The paper reports averages over 10-fold cross-validation, with 90% for training and 10% for testing in each split. Cross-validation lets different portions of the labeled collection serve as held-out data in turn. The reduced-training experiment uses smaller portions of the original training data and keeps the test data the same. That matters because cutting the training data changes the number of represented languages. Holding the test population fixed preserves the question each system has to answer as that training coverage declines.
The authors also report ceilings based on which codes the systems can output. For direct classification, the unfiltered ceiling is 90.33%. It counts test examples whose correct language is represented in training. For linking, the ceiling is 97.31%, based on whether the correct language is named in the example’s own document. Neither calculation requires the system to distinguish among competing candidates. Each answers a preliminary question about whether a perfect chooser, operating under that approach’s candidate restriction, would have access to the correct answer.
Baselines and direct classification
The paper contrasts ODIN with a result previously reported by Cavnar and Trenkle. Their character-sequence approach reached 99.8% accuracy on newsgroup articles across eight languages. That earlier result describes a different collection and evaluation. It gives a sense of why conventional language identification could look dependable before it was applied to short fragments drawn from far more languages.
The authors test the same general approach on ODIN using TextCat. They vary the lexicon-size setting from 100 to 800 and observe only a minor change in accuracy. The reported TextCat results use 800. On the labeled ODIN examples, TextCat reaches 51.38% accuracy. The paper also describes ODIN’s earlier use of a simple heuristic identifier, with the existing approaches falling below 55%. The detailed baseline comparisons center on TextCat and the learned direct classifier.
A post-processing condition makes document names available to direct classifiers. The classifier first ranks its known languages. The filter discards languages with no detected name in the document and returns the highest remaining item. The restriction lifts TextCat to 60.72% accuracy. It reduces the direct-classification ceiling to 88.95%, since the correct code must now satisfy the training and document restrictions together. A filter can help the system choose from what it knows by eliminating unsupported guesses. It has no mechanism for inserting a language into the original ranking.
To test whether direct classification can make fuller use of context, the authors train several kinds of classifiers. They mention decision trees, naive Bayes and maximum entropy using Mallet, and a support vector machine using libSVM. MaxEnt performs slightly better than the alternatives using the same feature sets, so the paper reports its detailed results. With F1 through F3 and no name filter, MaxEnt reaches 64.19% accuracy. With the filter it reaches 67.03%. When supplied with the correct codes of other examples to form F4, it reaches 66.47% without the filter and 69.20% with it. The authors did not implement beam search for F4 under the direct approach, so the latter results serve as diagnostics.
The linking systems
The linking systems already draw their candidate languages from the document, so the additional direct-classification filter is unnecessary. With F1 through F3, the sequential system reaches 83.49% and the joint system reaches 83.44%. Both can use document names to propose codes and labeled training examples to add lexical evidence. Neither needs a correct label for another test example to use this feature bundle.
With the practical version of F4, the sequential system reaches 85.10% and the joint system reaches 84.70%. These are the main results for fully automatic prediction with the paper’s contextual features. With the evaluation condition that supplies information from the reference labels, the sequential system reaches 90.26% and the joint system reaches 90.37%. Those figures show performance with privileged information about other examples in the test data, so they answer a different question from the practical results.
Practical language identification accuracy on the labeled ODIN examples
Linking examples to candidate codes gives the highest accuracy, and restricting predictions to document names also helps TextCat.
The numbers
| System or setting | accuracy % |
|---|---|
| TextCat | 51.38 |
| TextCat with document-name filter | 60.72 |
| Direct MaxEnt with F1–F3 and document-name filter | 67.03 |
| Sequential linking with F1–F3 | 83.49 |
| Joint linking with F1–F3 | 83.44 |
| Joint linking with F1–F4 | 84.70 |
| Sequential linking with F1–F4 (this paper) | 85.10 |
The paper’s tables also show what each formulation gives the learner. The direct setup lists about 600 classes and 13,723 training instances. It lists 8226 features for F1 through F3 and 8793 when it also includes F4. The linking setup lists 2 classes and 511,039 training instances, with 17 features for F1 through F3 and 22 when F4 is added. The larger training-instance count comes from forming multiple candidate pairs from an example. It describes a different use of the same labeled material, since one annotated passage can inform several decisions about proposed codes.
The feature counts describe the feature inventories of the respective systems. In direct classification, a positional clue referring to each particular language is represented separately, and the classifier must estimate how features relate to its many classes. The paper characterizes this as a setting with millions of parameters and substantial risk of sparse estimates and overfitting. In linking, a proximity clue can have a shared weight and be evaluated for any candidate. That difference in representation helps explain how the systems can learn from the same source material yet have very different demands on it.
Performance when training data are scarce
The reduced-training study uses the sequential linking system. With 0.1% of the original training data, the practical F1–F4 system reaches 70.15% on the same test data. At 0.5% it reaches 80.24%, at 1.0% it reaches 81.20%, and at 10% it reaches 83.08%. The direct approach’s ceiling across those settings is 1.66%, 21.15%, 28.92% and 54.45%, respectively. Those direct figures are coverage calculations. In particular, 1.66% is the maximum the direct formulation could reach at that training fraction given the labels it could output. The study gives no measured direct-classifier accuracy for that fraction.
Sequential linking accuracy on the same ODIN test data as training is reduced
The practical system with all feature families improves as more of the training data become available in these settings.
The numbers
| System or setting | accuracy % |
|---|---|
| 0.1% of training data | 70.15 |
| 0.5% of training data | 80.24 |
| 1.0% of training data | 81.20 |
| 10% of training data (this paper) | 83.08 |
The linking ceiling stays at 97.31% because reducing the training portion leaves the names in each test document intact. Accuracy can still fall because the system has less material for estimating weights and less labeled text for lexical comparisons. The stable ceiling therefore describes the availability of a route to the correct answer. The measured scores describe how well the system can use that route with the available evidence.
What the ablations show
How the evidence changes as features are added
The feature comparisons add families cumulatively. F1 starts with just the nearest preceding language name. F2 adds the wider positional and frequency cues, F3 adds comparison with labeled examples from training, and F4 introduces relationships with other examples from the document. This sequence shows what changes when a family joins those before it. The effects are conditional on that order and on the particular formulation using the features.
With F1 alone, the sequential linking system reaches 54.37% on the ODIN test examples and the joint system reaches 54.98%. A name just before an example frequently helps, but it can identify a comparison language, be ambiguous, or be a name detected in an unrelated role. Adding F2 raises the sequential result to 66.32% and the joint result to 65.94%. The additional coverage matters when the nearest name gives incomplete or misleading evidence, and the system can examine how the candidate is positioned elsewhere in the document. The comparison combines several changes, so it does not identify how much comes from the neighborhood window, the beginning or end of the document, or the frequency feature by itself.
The addition of F3 takes the sequential result to 83.49% and the joint result to 83.44%. There is still value in comparing the example itself with previously labeled material. Its lexical evidence can arbitrate when contextual names point to several candidates, as the Edo feature vectors illustrate. The result concerns lexical overlap added to a context-driven candidate search. The paper does not give a separate ODIN accuracy for a CoRef system using only F3, so this comparison does not tell us how well those overlap features could make the decisions independently.
The direct classifier also benefits as the features expand. Without the document-name filter, its MaxEnt accuracy is 49.74% with F1, 61.55% with F1 and F2, and 64.19% with F1 through F3. Under the filter, the corresponding accuracies are 56.69%, 64.95% and 67.03%. Thus the document supplies valuable information even if the system retains a conventional inventory of output classes. The smaller change at the F3 step in this formulation shows that the same family of comparisons has a different measured contribution in a different learning problem. In direct classification, the estimates are split across code-specific features and a much larger set of output classes.
Applying the name filter is a useful controlled check because it changes the prediction rule while leaving the classifier’s ranked outputs in place. TextCat’s improvement after filtering shows that the candidate restriction alone supplies a benefit, even to a baseline that uses a different representation of the input. The filter also improves the direct MaxEnt results across the reported feature bundles. The direct-versus-linking comparison then shows what happens when document names become the source of candidates and the classifier learns a shared decision about the proposed link. These changes travel together in the authors’ implementation, so their individual contributions cannot be read off as separate gains.
What other examples contribute
The F4 comparisons distinguish using neighboring examples from receiving the correct answers about those examples. In the practical sequential system, adding F4 moves accuracy from 83.49% with F1 through F3 to 85.10%. In the joint system the corresponding results are 83.44% and 84.70%. The improvement in each system shows that cross-example evidence can help under its ordinary inference procedure. Its value is constrained by how reliably the system identifies the related examples and by whether their textual overlap is informative about their language.
When the authors supply the correct information for those comparisons, accuracy reaches 90.26% for the sequential system and 90.37% for the joint one. The gap between those diagnostic results and the practical results shows that there is useful information in F4 that the systems do not fully recover from their own decisions. It also explains why the practical numbers must be paired with the practical inference conditions. In a new document, several examples can depend on the same uncertain clue. Their agreement can reinforce a correct assignment, but uncertainty about which language they share remains.
The comparison with direct classification is informative here as well. For that system, the only F4 condition is the one that supplies correct labels for the other examples. Even with that information, the filtered direct classifier reaches 69.20%, below either linking system using F1 through F3. This removes one possible explanation for the overall difference. The linking systems already perform substantially better before they use the cross-example feature family. Their advantage in these tests comes from a formulation that can exploit context and lexical evidence with shared parameters and can consider languages absent from the training labels.
The two linking implementations perform closely with the same feature bundles. The sequential system does slightly better in the practical all-feature condition, and the joint system does slightly better in the diagnostic condition. The results support the authors’ conclusion that the shared evidence accounts for much of the performance of both systems on this task. The authors see room for Markov logic to express further relationships and prior knowledge through additional predicates and rules. The accuracy comparisons establish the behavior of the particular rules tested, so the advantages of such extensions remain possibilities.
The observations about the beam also constrain the inference story. Keeping more alternatives in the sequential system changes little in the reported experiments, and the authors say taking the top-scoring choice for each example nearly always worked best. The reported sequential scores therefore reflect the simpler setting. Within this dataset and feature set, the evidence favors changing the representation of the decision over expanding the search for a sequence of assignments.
Which cues survive a sharp reduction in training
The reduced-data comparisons show how the feature bundles behave when the evidence required to estimate them thins out. With F1 alone, sequential linking reaches 54.37% at every tested fraction from 0.1% through 10%. The same score appears with the full training portion. The nearest-name cue is available directly from each document, and in these runs the extra training does not change its reported accuracy. That result applies to this feature and prediction setup. The broader bundles exhibit more variation because they can learn from additional observations and because part of their evidence changes with the available labeled text.
With F1 and F2, the results at 0.1%, 0.5%, 1.0% and 10% of the original training portion are 54.84%, 62.78%, 60.58% and 62.13%. With F1 through F3 they are 65.28%, 76.74%, 76.09% and 77.07%. The intermediate settings do not follow a strictly increasing order for either bundle. What the numbers show consistently across these fractions is that adding the F3 lexical comparisons raises accuracy over the narrower context bundle. There is usable lexical information even in the reduced training portions, alongside the positional evidence that is available regardless of how many codes are represented in training.
Supplying reference information for F4 produces 81.21% at 0.1% training, 87.17% at 0.5%, 87.24% at 1.0% and 87.20% at 10%. The practical F4 scores under the same conditions are lower. That separation persists even where the direct approach’s coverage has become severely restricted. Other examples from a test document offer a form of local evidence that can complement scarce training material. Correctly assigning that local material is still part of the task, and the diagnostic condition removes some of that burden.
Comparing practical linking accuracy with the direct approach’s ceiling makes a structural point. Even an ideal direct chooser among the languages it has seen is unable to recover labels outside that inventory. The linking system uses named candidates and can keep considering those labels as training shrinks. The result therefore demonstrates resilience to a specific kind of missing data: absence of a language from the labeled training portion when clues to its identity remain available at test time.
Limitations
Limits identified by the authors
A list of nearby names conveys relatively little about the roles those names play. In the authors’ error analysis, a clause can introduce one language by comparing it with another. A short descriptive phrase can name a language or group as part of an explanation of the primary language. Similar surface distances can therefore correspond to different patterns of attention in the prose. The name nearest an example may be less relevant than a name farther away that identifies the main subject of the passage. The system sometimes picks the wrong one because its positional cues do not capture that distinction.
The name detector makes mistakes of its own. Incomplete coverage in the catalogue means that some genuine names go undetected. A name that also occurs as a person’s name or in another role can be detected where there is no intended language reference. The latter mistake both introduces an irrelevant candidate and can fill a useful contextual slot, such as the nearest preceding name, with irrelevant evidence. The authors’ example of Thompson makes this problem visible in the feature representation. A match can be correct as a lookup in a table and wrong as an interpretation of the passage.
Ambiguous names present a further limit even when the detector has correctly found a language reference. The paper notes that a name may cover several related languages spoken in the same region. Choosing among their codes can require knowledge of subtle distinctions that the document may never state. A shared cue can teach the system to trust a good name in a good position. It cannot guarantee resolution when the author uses a designation broader than the database categories. Retaining all possible codes protects the correct candidate when it is listed, while leaving the competing interpretations to be resolved through other evidence.
The authors focus on a specific kind of material that routinely comes with explanatory context. They propose extending the approach to resources such as lexicon entries, word lists and transcriptions, and suggest that a larger ODIN collection could help bootstrap tools for languages with limited resources. The reported evaluation concerns identification of interlinear examples. It measures the correctness of assigned codes, which is a prerequisite for those applications. It contains no downstream measurement of how much the additional material would improve a tagger or parser.
Limits of the evaluation design
The data establish aggregate accuracy on the semi-automatically labeled part of ODIN. An example-level score gives more influence to languages with more examples in the test collection. The wide coverage of the collection is consequently a statement about the range of the evaluation, while the overall score describes the accuracy of the pooled predictions. The paper does not give a language-balanced score or a separate accuracy for the test examples whose languages were absent from training. The reduced-training comparison shows how much the two formulations depend on access to training labels. It leaves open how the remaining errors are distributed among individual languages and levels of training coverage.
The paper describes cross-validation over the labeled data, but does not specify whether all examples from any one source document were kept in the same fold. That detail matters for a method whose cues include nearby examples and whose training evidence draws on language-line text. The reported setup leaves document-level generalization uncertain. The scores describe the stated ODIN evaluation, and the paper gives no separate result for a split that holds out whole source documents.
The bounds also depend on the way candidates are defined. The 97.31% figure concerns the presence of a correct language name in the same document. A name can be present and yet be missed by the detector or mapped ambiguously. Once the correct candidate is available, the scorer still has to favor it over the alternatives. The 90.33% direct-classification ceiling similarly counts language labels the system could in principle output. It says nothing on its own about how well the direct classifier estimates the evidence for them. The coverage analyses are most informative when read alongside the measured scores under the matching prediction conditions.
Examples with empty language lines, Romanized examples and examples embedded in multilingual documents motivate the method, but the main results pool them with the other examples. Separate scores for those conditions would be needed to measure how reliably the method handles each one. The feature experiments identify useful groups of evidence, but their cumulative design also limits attribution. For instance, the F2 comparison cannot establish that the document’s opening adds more than the local neighborhood. And the direct-versus-linking comparison changes candidate generation, label structure, examples supplied to the learner and weight sharing together. The paper establishes the value of the resulting formulation on its task, while leaving the independent effect of each design choice unresolved.
The diagnostic F4 comparisons depend on test information unavailable to automatic harvesting. They are useful for assessing the potential of cross-example evidence, provided that the conditions remain explicit. The practical accuracy is the result to use when asking what the systems could return for new examples under the paper’s inference procedures. The authors’ reported comparison gives point estimates for the sequential and joint systems. It leaves open whether their small ordering differences would persist across other samples of documents or other representations of cross-example evidence.
What came after
Automatic Language Identification in Texts: A Survey (2019) cites the paper in a survey of written language identification. That is the documented connection. The citation does not establish a replication of the ODIN experiments, adoption of the Markov logic rules, or a later result on the same collection.
The ODIN study contributes a distinct task setting to that broader literature. Language identification here requires returning a code for a brief passage embedded in an explanatory document. The document can contain several languages, and a correct answer can be absent from the training inventory while appearing by name in the text. Those requirements give the work a place in a survey of language identification even though the system borrows its decision structure from coreference resolution. They also explain why reading the paper solely as a comparison of classifiers would miss the role of how the input is collected and what information accompanies it.
The paper itself points toward other kinds of harvested linguistic data, including dictionary material, lists of words and transcriptions. The common condition for such an extension would be a source that names the language somewhere in the material surrounding the item. The evidence would then depend on how that source presents its language names and groups its examples. The reported study establishes that this route can work for scholarly interlinear examples, with the strongest practical result coming from shared link scoring and evidence from other examples. Its reduced-data tests show why that result matters for collection building: training can teach the system how to use a name in context even when it has supplied no labeled example of the language that name denotes.
Cite
Cite as Fei Xia, William Lewis and Hoifung Poon. 2009. Language ID in the Context of Harvesting Language Data off the Web. Proceedings of the 12th Conference of the European Chapter of the ACL (EACL 2009).
@inproceedings{xia2009language,
title = {{Language ID in the Context of Harvesting Language Data off the Web}},
author = {Fei Xia, William Lewis and Hoifung Poon},
booktitle = {Proceedings of the 12th Conference of the European Chapter of the ACL (EACL 2009)},
year = {2009},
doi = {10.3115/1609067.1609164},
url = {https://doi.org/10.3115/1609067.1609164}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/xia-2009-language-id-context-harvesting-language/