Elamur Research

The George Washington University System for the Code-Switching Workshop Shared Task 2016

Paper · 2016 · Mohamed Al-Badrashiny and Mona Diab

Summary

A tweet can change language in the middle of a sentence. A system that assigns one language to the whole message loses the location of the change, while a system that judges each word in isolation can struggle with spellings shared across languages. Mohamed Al-Badrashiny and Mona Diab built a system that labels each word in a tweet while taking nearby words into account. They entered it in the shared task’s Modern Standard Arabic–dialectal Arabic and English–Spanish tracks. These tracks put the same design to work on different problems. The Arabic track asks it to distinguish varieties that share much of their vocabulary and spelling. Both tracks also require labels for items such as names, ambiguous words, and punctuation.

The system learns which short sequences of characters are typical of each language from words already labeled by the task organizers. A separate probability for the complete word comes from a large Arabic or English corpus, depending on the track. A lookup table supplies evidence that a word is a name, and a preprocessing tool supplies evidence for categories such as numbers, dates, and emoticons. A conditional random field, a classifier that scores possible sequences of labels, brings these signals together. The strongest development result the authors report used a window of 17 words, including the word being labeled and eight words on either side.

On the shared-task test sets, the system achieved a weighted average F-score of 83% for Modern Standard Arabic–dialectal Arabic and 91% for English–Spanish. The development scores were 85% and 94%, respectively. The individual labels tell a less uniform story. On the English–Spanish test set, the F-score for Spanish was 95%, while the score for named entities was 23%. The reported F-scores for mixed and ambiguous words were 0% on both test sets. Because the weighted score gives more influence to categories with more annotated instances, it can remain high even when a system struggles with some of the distinctions the task requires.

The authors attribute part of the gap between the tracks to the character patterns and words shared by the Arabic varieties. They also identify a weakness in the name lookup and a mistake in how their English–Spanish submission handled hashtags. They report throughput of up to 20,000 words/sec and present the system as a practical candidate for preprocessing. Its design can be used across the tracks with the same kinds of features, while the labeled examples and reference corpus give those features their language-specific content.

Deep dive: The George Washington University System for the Code-Switching Workshop Shared Task 2016

The George Washington University system identifies languages word by word in mixed tweets using spelling patterns, word frequencies, and context. · about 31 minutes to read

The problem and its context

Finding the switch inside the sentence

The paper studies linguistic code-switching, the practice of moving between languages or language varieties in speech or writing. It concentrates on switches within a sentence, where a message can begin in one language, use a phrase from another, and then switch again. In the authors’ English–Spanish illustration, an English reporting clause leads into mi esposo, an English phrase follows, and the sentence ends with un buen hombre. The example shows why a single label for the sentence would leave out information the system is supposed to recover. It also shows why the task is about sequences. Each of those stretches contains evidence about how to interpret the words around it.

The shared task makes the problem concrete by asking participants to assign a label to every word in a tweet. In the English–Spanish track, lang1 means English and lang2 means Spanish. In the Arabic track, the labels refer to Modern Standard Arabic, abbreviated MSA, and dialectal Arabic, abbreviated DA. The label names tell the system which distinction it is being trained to make. A lang1 prediction therefore has to be read with the track in mind. The organizers’ description of how the tweets and labels fit into the task is the shared-task overview.

A simple change from lang1 to lang2 is only one kind of event in this labeling scheme. A word can be ambiguous when it belongs to both languages and the context fails to settle which reading applies. The mixed label concerns the structure of the word itself. The paper gives the example of a dialectal Arabic base carrying affixes associated with MSA. An affix is a piece attached to a base, such as a prefix at the beginning or a suffix at the end. The whole written word receives one task label even when its meaningful parts come from different varieties. The difference between these cases depends on how a shared spelling or a combination of parts relates to the surrounding text and to the word’s morphology.

The label inventory also covers material for which a choice between the target languages would give the wrong kind of answer. fw marks a word from another language, and ne marks a named entity, such as a name. other covers items such as numbers, punctuation, emoticons, dates, and web addresses. The paper’s introductory description also mentions tokens beginning with # or @ and tokens containing an underscore, while its evaluation discussion identifies a track-specific problem with treating every token beginning with # as other. Finally, unk is available when the annotators cannot assign any of the preceding labels. Finding names is part of the language identification task because of its annotation scheme, which gives the classifier a partial named entity recognition problem.

A run of correctly labeled words can reveal where the language changes. The same run can be interrupted by a name or punctuation, so the label sequence carries more information than a list of switch locations alone. It records what the task considers language evidence and what belongs in a separate category. The paper treats this information as useful to later processing. A system working with mixed text can use the word-level decisions before attempting a task such as machine translation.

When the writing system leaves the question open

The earlier work discussed in the paper illustrates several ways in which the writing system can leave a language decision unresolved. In the work on Arabizi, Arabic is written with Latin characters, and the English words in the same message use Latin characters too. In the earlier Spanish–English work, both languages are also represented in Latin script. For the Arabic varieties discussed through AIDA2, MSA and Egyptian Arabic both appear in Arabic script. Across these settings, a detector needs evidence more specific than the alphabet in which a word appears. Shared script is the common obstacle, even though the reasons that particular words are hard to classify differ.

The 3ARRIB approach discussed by the authors deals with Arabic written in Latin characters alongside English. It learns a mapping from Romanized forms to possible spellings in Arabic script. That mapping is represented by a finite-state transducer, which reads a sequence of characters and can yield candidate output sequences. A Romanized word can admit several Arabic candidates. The system checks those candidates with MADAMIRA to filter out forms it cannot analyze as Arabic. A decision tree then uses probability information from the Arabic and Romanized forms to choose between an Arabic and an English reading in context. The transliteration stage and the distinction between Romanized Arabic and English are treated in Automatic Transliteration of Romanized Dialectal Arabic and Foreign Words and the Automatic Processing of Arabic Social Media Text Written in Roman Script. The tool used to check the Arabic candidates is MADAMIRA.

That pipeline uses a resource that can analyze a proposed Arabic word after transliteration. The information is richer than the presence of a particular sequence of letters. A candidate has to survive a check against an analyzer built for Arabic before the classifier makes its final decision. This makes sense for a problem in which the same intended Arabic word is encountered in a different script. It also illustrates the kind of specialized processing the George Washington University shared-task entry sought to avoid requiring across its tracks.

In earlier work on Spanish and English, Bar and Dershowitz used a sequential support vector machine. The classifier’s inputs included words preceding and following the current word, short prefixes and suffixes in the form of character sequences, and an indication of whether its first letter was capitalized. The authors also describe that system as using probabilities from character and word sequences learned from large English and Spanish corpora. That combination already treated language identification as a question about local text, word shape, and frequency. The George Washington University entry shares this broad interest in surface evidence while arranging the features and the use of resources differently.

Barman and colleagues, as discussed in the paper, experimented with Nepali–English and Spanish–English. Their approaches included dictionary-based decisions, a support vector machine with a linear kernel, and classification by nearby labeled examples. The strongest setup they found in their own experiments combined a support vector machine with character sequences, membership in language-specific dictionaries, word length, neighboring words, and capitalization features. The dictionaries were constructed from the most frequent 5000 words. A word’s presence in a dictionary supplies a different signal from its spelling. A word may look characteristic of a language without appearing in a restricted list of its frequent vocabulary. It may also appear in a dictionary even when nearby text favors another reading. The history in the paper thus gives several precedents for putting different kinds of evidence into the same classifier.

The paper regards Arabic variety identification as especially difficult because of the vocabulary and spellings shared by the varieties. Cognates can occupy a common part of the vocabulary, while false friends can have the same written form and different meanings. A spelling that looks ordinary in MSA may therefore also look ordinary in dialectal Arabic. Even a reliable estimate of how typical that spelling is can leave its use in a particular sentence unresolved.

The authors discuss AIDA2 as a specialized predecessor for MSA and Egyptian Arabic. AIDA2 uses MADAMIRA to identify grammatical and word-structure information. That includes the part of speech, or grammatical category, as well as prefixes, suffixes, and the lemma, the base form used to group related inflected words. It combines those features with word-level probabilities and uses several classifiers together to decide each token’s label. The paper presents AIDA2 as the strongest published system it knew for the Arabic variety problem. Its analysis of a word’s structure gives it evidence that can be obscured when the classifier sees only the written form and surrounding surface features. AIDA2 and part-of-speech tagging.

The shared-task entry takes a different design decision from that specialized predecessor. It uses the same general procedure for learning spelling and vocabulary evidence in Arabic and in English–Spanish. Its question is whether those cues, a small collection of auxiliary features, and a contextual classifier can give useful word labels without requiring a grammatical analyzer specific to each track. The tradeoff matters most when the languages or varieties share surface forms. Character patterns can help distinguish many words, but a procedure that relies on them has to deal explicitly with the cases where the patterns converge.

The method, step by step

What the classifier sees

The authors base their entry on LILI, their more general approach to language identification. The premise is that languages favor different combinations of sounds and meaningful word parts, some of which are reflected in the sequences of characters people write. A classifier can exploit those regularities by learning from actual examples of each language. It can then ask how plausible an unfamiliar spelling looks under each set of learned patterns. This idea also gives the classifier a way to obtain information about a word that never appeared in the labeled tweets as a complete item. LILI.

The input to the final classifier is a sequence of feature vectors. A feature vector is the collection of measurements and indicators associated with a word. Here it includes character-sequence probabilities for the target languages, a probability for the whole word from a reference corpus, and yes-or-no indicators for a name and for other. The classifier also uses positions around the current word. For a reader following the pipeline, it helps to keep the labels used to build those features separate from the labels the classifier eventually predicts. The first are examples supplied by the training annotations. The second are the output for a new tweet.

That distinction is particularly important for the spelling probabilities. The authors use words already assigned to a target language to learn what written sequences are typical of that language. Later, when they prepare a word for classification, they measure how well its spelling fits every target language in the track. There is no instruction to label it according to whichever spelling probability is largest. The sequence classifier can use the probabilities alongside all the other evidence, including features obtained from the words on either side.

How the system learns and predicts token labels

The steps in order.

How the system learns and predicts token labelsStep 1: Group labeled training words by target language1. Group labeled training words by target languageStep 2: Learn character patterns for each language2. Learn character patterns for each languageStep 3: Learn whole-word probabilities from a large corpus3. Learn whole-word probabilities from a large corpusStep 4: Build a lookup from annotated names4. Build a lookup from annotated namesStep 5: Flag other token types with SPLIT5. Flag other token types with SPLITStep 6: Assemble features across the word window6. Assemble features across the word windowStep 7: Train and apply the sequence classifier7. Train and apply the sequence classifier

Learning spelling patterns from labeled words

The character portion begins with the annotated training tweets. The authors collect the words tagged lang1 to estimate character-sequence probabilities for that language. They repeat the procedure with lang2. This is a supervised setup: the training labels tell the system which observations belong to which language before it estimates any spelling probabilities. In English–Spanish, English examples form one collection and Spanish examples form the other. In MSA–DA, the equivalent separation comes from the annotations for standard and dialectal Arabic. The feature-building procedure stays the same across the tracks, while the character sequences it learns depend on the words assigned to each group.

The authors use SRILM to estimate character 5-gram probabilities. An n-gram is a sequence of adjacent units, with the order describing how many units the sequence contains. Here the units are written characters. A 5-gram captures a local stretch of spelling, and the probability of a word’s letter sequence reflects the patterns learned from the corresponding language’s training words. A word can have an informative sequence even if the whole word is new. The unit being matched against previous observations is smaller than the word the system must label. N-gram.

The paper motivates these features through phonology, phonetics, and morphology. Sound patterns and allowable combinations of word parts can lead to recurring patterns in writing. The procedure uses those written traces directly. It has access to letter sequences, regardless of whether a particular sequence corresponds to a sound pattern, a morpheme boundary, or a recurring spelling convention. A character pattern is useful to the classifier when its probabilities differ in a way that helps predict a label. The method leaves the linguistic explanation for the pattern separate from its value as a feature.

Every prepared word is evaluated against the spelling probabilities for both languages in its track. For an English–Spanish word, this produces evidence of how well its character sequence fits the English examples and how well it fits the Spanish examples. The same procedure compares Arabic words with both sets of variety-specific examples. Importantly, this comparison is also available for words with labels such as ne or ambiguous. Those words are excluded from the language-labeled groups used to estimate the spelling patterns, but the resulting probabilities can still describe them as inputs to the classifier.

There are several ways the spelling evidence can turn out. A sequence can look typical of one language and unusual in the other. It can fit both sets of examples, as might happen with a form shared across the Arabic varieties. An unusual spelling can also have little support in either group. Evaluating the word against both groups gives the classifier information in each case. A decision based on picking the higher of the probabilities would discard the distinction between a clear fit and a choice between weak alternatives. The paper leaves the interpretation of those scores to the classifier trained on the tweets.

Adding a whole-word probability

The second source of probability information treats the complete word as a unit. The authors estimate a unigram probability from a large reference corpus. In this use, a unigram concerns a single word, so the feature measures the word’s probability independently of the words surrounding it in the tweet. The English–Spanish submission uses English Gigaword for this purpose. The MSA–DA submission uses Arabic Gigaword. The paper describes the practical choice as one of using the language for which a large corpus is available.

The unigram feature is deliberately asymmetric. The English–Spanish setup has a complete-word probability based on English Gigaword, while the Spanish side still has its character evidence from the labeled tweets. In the Arabic setup, the large reference corpus provides an Arabic whole-word probability alongside the spelling probabilities learned separately for standard and dialectal Arabic. The paper’s account of this step concerns a single reference source per track. A whole-word feature therefore supplies additional evidence from a chosen corpus, instead of a pair of equally sourced lexical estimates.

The two probability features can describe different properties of the same item. Character evidence can be informative for a shape that resembles many known words, even if the word itself seldom appears. Conversely, a reference corpus can give substantial whole-word evidence for a spelling whose individual character patterns are common across languages. In English–Spanish, for example, a strong English whole-word probability gives the classifier a reason to consider an English label, and the surrounding text can still affect that decision. A low probability is less specific. It can describe a word outside the vocabulary favored by the reference corpus, and the other features determine how much that matters for its label.

The training material thus enters the procedure at distinct points. The tweet annotations determine which examples count towards each set of character patterns. The large reference corpus supplies frequency evidence for complete words. The final supervised fit uses the features together on annotated sequences. Each resource answers a different question. A reference corpus can suggest whether a full spelling is familiar in one collection of text. It does not tell the classifier how the shared task annotates that spelling when it occurs in a particular tweet.

Providing separate cues for names and other tokens

For ne, the authors create a lookup table from words marked as named entities in the training data. If the input word appears in that table, its name indicator is enabled. Otherwise, the indicator is disabled. The lookup can recognize a form that the annotations have already associated with a name. Its evidence is about the form’s presence in the table. The sequence classifier still has to decide what label to give that occurrence in the new tweet.

This is a narrowly defined feature with a different source from the character probabilities. The spelling feature asks whether a word’s characters resemble patterns associated with one of the target languages. The lookup asks whether the exact form was previously annotated as a named entity. A form may meet both descriptions. A familiar name can have conventional spelling in one of the target languages, and a word used as a name in one tweet may serve another role elsewhere. Since the lookup supplies a feature instead of a final label, the classifier can in principle use context to distinguish those uses. For a new name absent from the lookup, that direct evidence is unavailable.

For other, the authors use their SPLIT preprocessing tool to recognize token types such as numbers, dates, web addresses, emoticons, sounds, and punctuation. This also yields a binary feature. The token either matches a type checked by the preprocessing procedure or it does not. The types have in common that a language-specific spelling probability offers an indirect way to identify them, whereas a recognizer that examines the token’s form can supply a more immediate cue. A date and a lexical item can both receive character probabilities, even though those probabilities answer a less relevant question for the date.

The other feature and the task label need to be read separately. The feature describes what the preprocessing step recognizes. The label describes what the task’s annotation scheme calls the item. A format is visible in the string, but the decision to put it into a particular annotation category comes from the task. The English–Spanish hashtag problem reported by the authors concerns this boundary. It matters because a track-specific label convention can change the correct output even when the visible cue is easy to identify.

The explicitly described auxiliary indicators concern names and other. A specialist detector for the morphemes within a mixed word is outside this feature design, and the paper describes no corresponding indicator that resolves whether a shared spelling is genuinely ambiguous in its context. Such labels remain possible outputs under the task scheme. They depend on the information the classifier can learn from the general features and the training examples carrying those labels.

Combining evidence across the tweet

The final stage uses CRF++, the toolkit with which the authors train a conditional random field, or CRF. A conditional random field assigns scores to possible label sequences given an observed sequence of words and their features. Training uses tweets for which the target labels are already known. The fitted classifier can then identify a sequence of labels for a new tweet. This matters for the example in which an English clause leads into a Spanish phrase. Adjacent labels and nearby word features give the classifier evidence about when the phrase begins and how long it continues.

There are two aspects of context in the design. The final classifier judges a sequence of output labels, and the feature configuration lets it observe features from positions around the current token. These aspects answer different questions. The surrounding feature vectors describe the observed words, such as how typical their spellings are or whether a nearby token looks like punctuation. The sequence of proposed output labels describes how the classifier interprets those positions together. The design can therefore give weight to evidence for a switch that develops over several words, including a word whose spelling on its own offers little help.

The strongest development setting reported in the paper uses a window of 17 words. That includes the current word, eight preceding words, and eight following words. The context can extend in both directions because the system is labeling text it has already received. A later word can therefore help classify an earlier one. The configuration is particularly relevant for shared spellings: a word might carry weak direct evidence about its language while appearing in a stretch where other words provide clearer cues. The results establish which setting the authors report as their best on development data. They leave open how much of its performance comes from each part of that window.

The paper presents the procedure in operational terms, through training data, probability features, indicators, and contextual sequence labeling. It gives no explicit scoring or training equation for these components. The method can be understood from the sources of its inputs and the decisions assigned to each stage. The character procedure estimates plausibility from labeled spellings, the corpus procedure adds word evidence, and the final supervised stage learns how to turn those measurements into the task’s label sequence.

Experiments and results

What the training and development sets contain

The experiments use the annotated tweets of the MSA–DA and EN–SP shared-task tracks. The authors report how many words receive each label in the training and development sets. These are word counts. A tweet can contribute to multiple label categories, so the counts describe the individual decisions the classifier encounters. The column headings identify the held-out counts as development data.

LabelMSA–DA trainingMSA–DA developmentEN–SP trainingEN–SP development
lang1127,626640658,8447067
lang221,722932627,0645207
mixed162448
ne21,38930242364368
ambiguous11861025222
fw00110
other13,738188820,7053912
unk0015358

The MSA–DA counts show an important change between the training and development splits. Standard Arabic is more frequent than dialectal Arabic in the training labels, with 127,626 lang1 words and 21,722 lang2 words. In development, the dialectal label has more examples, at 9326 words compared with 6406 for the standard label. That inversion affects how a weighted result reflects the two labels. It also matters to the training procedure, because the character probabilities for each variety are built from the corresponding language-labeled words. The paper does not tie an individual error to the change in frequency, but the counts show why an evaluation reader should pay attention to each language score.

The training counts for names also differ considerably between the tracks. The Arabic training data contain 21,389 ne words, and the English–Spanish training data contain 2364. These figures count annotated occurrences. A repeated name can appear many times, and the table gives no count of distinct name forms. The larger Arabic count therefore establishes more annotated name occurrences, while the coverage of the resulting lookup table on later tweets remains a separate question.

Some labels receive very little direct training evidence. MSA–DA has 16 mixed words in training and 2 in development. English–Spanish has 44 in training and 8 in development. Foreign words occur in the English–Spanish training counts, with 11 instances, and in neither of the reported development distributions. unk has 153 training and 58 development words in English–Spanish, while the corresponding Arabic counts are both 0. These support counts are needed for reading the classwise F-scores. A displayed 0% for an absent category and a displayed 0% for a category with annotated examples describe different evaluation situations.

How to read the comparisons

The paper reports F-scores for the individual labels and a weighted average F-score across labels. For a label, precision concerns how often the system is right when it predicts that label. Recall concerns how many of the annotated instances of that label the system recovers. F-score combines the two, so a system needs both reliable predictions and adequate coverage to perform well. A frequency-weighted average gives common labels greater influence over the aggregate. The paper presents the detailed scores as percentages and gives the test aggregates in decimal form in the abstract.

The comparison is between the authors’ reported configurations and evaluations across tracks and data splits. The paper’s discussion of prior systems supplies methodological context, but it does not give an independently evaluated baseline on these splits. There are no shared-task rankings or matching F-scores for AIDA2 and the earlier support vector machine systems in its results. The strongest recurring reference points for interpreting the results are the aggregate and classwise scores of the George Washington University system itself.

Modern Standard Arabic and dialectal Arabic

The MSA–DA development set has a weighted average F-score of 85%. For the language labels, the system obtains 81% on MSA and 83% on dialectal Arabic. The ne score is 91%, and other reaches 99%. Scores of 0% are listed for mixed, ambiguous, fw, and unk. The support counts show why the last group needs a careful reading. Mixed and ambiguous words are present in development, so their zero scores reflect an evaluation with annotated examples. The fw and unk rows in the counts have no development instances.

MSA–DA weighted average F-score by evaluation split

The Arabic development score is higher than the test score.

MSA–DA weighted average F-score by evaluation splitTest: 83%Test83%Development (this paper): 85%Development (this paper)85%
The numbers
System or settingF-score %
Test83%
Development (this paper)85%

On the MSA–DA test set, the weighted average F-score is 83%, also given as 0.83 in the abstract. The MSA label has an F-score of 77% and the dialectal label 83%. The score for names is 83%, and other remains at 99%. The paper again reports 0% for mixed, ambiguous, fw, and unk. It gives the test F-scores without an accompanying distribution of test instances by label. The training and development counts therefore cannot settle how frequently the test tweets presented each rare category.

An aggregate score can blur the differences among those movements. The dialectal label and other have the same reported F-scores in development and test. The scores for standard Arabic and names are lower on test. This is a more precise description of what changed than a general statement about the system performing worse on the test tweets. The repeated 99% for other also distinguishes the recognition of that category from language identification among Arabic words. A system can be highly successful at identifying tokens that fall outside the lexical distinction and still have trouble choosing between MSA and dialect.

English and Spanish

The English–Spanish development result is a weighted average F-score of 94%. English reaches 95%, Spanish 94%, named entities 70%, and other 97%. The development score for unk is 12%, with 58 annotated development words carrying that label. Mixed, ambiguous, and foreign words receive reported F-scores of 0%. In particular, the zero results for mixed and ambiguous accompany development counts of 8 and 22 words, respectively.

EN–SP weighted average F-score by evaluation split

The English–Spanish development score is higher than the test score.

EN–SP weighted average F-score by evaluation splitTest: 91%Test91%Development (this paper): 94%Development (this paper)94%
The numbers
System or settingF-score %
Test91%
Development (this paper)94%

On the English–Spanish test set, the weighted average F-score is 91%, given as 0.91 in the abstract. English receives 81% and Spanish 95%. other receives 95%. The named-entity score is 23%, and mixed, ambiguous, fw, and unk all receive 0%. Spanish improves from its development score, while English and names score lower on test. That mix of outcomes makes the aggregate particularly incomplete as a description of where the system succeeds.

The contrast between Spanish and named entities on the test set is also a reminder of what the task counts as a successful decision. A token that resembles a Spanish word can require the name label under the annotation scheme. The classwise F-scores show that the system’s strong performance on Spanish does not extend uniformly to all words a reader might associate with Spanish. A substantial part of the challenge is to decide which kind of label applies before the choice of language is resolved. The named-entity score is especially informative in that respect because the system assigns names through a feature derived from previous annotations.

The authors report a specific implementation choice affecting the English–Spanish evaluation. They treated any word starting with # as other, applying the convention they had used for the Arabic track. They say this was a misunderstanding of the English–Spanish annotation rules and that it affected their results. The reported other score consequently describes the submitted system with that behavior in place. A corrected run would be needed to measure the effect on that class and on the weighted total, especially because an incorrectly labeled token can affect both the category the system chooses and the one the annotation assigns.

What the cross-track comparison establishes

English–Spanish has the higher aggregate F-score on both splits. The per-label scores show why this comparison needs a narrower reading. Spanish has a higher F-score than dialectal Arabic in the two evaluations. Named entities, by contrast, have a higher F-score in Arabic in both. Arabic also has the higher reported other score. Thus the difference between weighted aggregates describes performance on the particular mixes of categories in the tracks. It can coexist with stronger Arabic results on some individual labels.

The authors interpret the higher English–Spanish aggregate in light of shared patterns between standard and dialectal Arabic. Part of what the system learns is how typical a spelling looks under each target language. If spellings and character sequences appear frequently for both varieties, that evidence offers less separation. This fits the linguistic problem the paper describes. The experiment also bundles together other differences, including the corpora used for whole-word evidence and the mix of labels in the training data. The comparison shows how the design performs on the two track setups as a whole.

The paper additionally reports processing up to 20,000 words/sec. That figure is a throughput claim about the system, separate from the F-scores on the shared-task labels. The authors give it as a reason that the design could serve as a preprocessing stage for larger volumes of text. Their reported speed and the test results together explain the intended use: the system can supply contextual token labels at a reported high processing rate, while the usefulness of particular labels depends on the class and language pair.

What the ablations show

The paper reports no formal ablation that removes a feature and measures the effect under matched conditions. Its analyses instead concern the selected context window, the comparison across language pairs and splits, the named-entity results, and the annotation mistake involving hashtags. These give evidence about the behavior of the complete system. They give much less direct evidence about which of its inputs deserves credit for a particular score.

Context was tuned on development data

The authors identify the 17-word window as the strongest development configuration they obtained. This establishes that the amount of context was a setting they tuned and that the reported development results belong to the selected configuration. It also makes clear that the sequence classifier considered a substantial neighborhood around each word. The authors used the setting in a task where several words can form a continuous stretch in one language before the next change.

The report gives only the winning configuration. A reader can understand why a wider window might help a shared spelling in a longer phrase, and why nearer words might already supply enough evidence for many decisions. The development result does not measure those situations independently. Without the scores of the other tried windows, the size of the benefit and its distribution across labels remain open. The paper also leaves the contributions of preceding context and following context unresolved. The chosen window combines both, so its score covers their joint use.

The authors connect the difference in aggregate performance to a known difficulty in the Arabic task. Standard and dialectal words overlap, and the same stretches of characters can be typical of each. The stronger English–Spanish result is consistent with the authors’ account of why their features have an easier job on that track. The continued gap in the two reported splits makes this more than an observation about a single aggregate on a single split, while still leaving the comparison tied to the data and label distributions of each track.

The paper proposes grammatical categories and morphological information as ways to improve the Arabic results. That proposal follows directly from the type of ambiguity it describes. A spelling can look plausible in both varieties, while a grammatical analysis or the relation between a base and its affixes may give more specific evidence. The earlier AIDA2 system illustrates how such information can be obtained. The submitted classifier’s reported scores cover the simpler design. An experiment adding those features to it would be necessary to measure the proposed improvement.

The difference between the Arabic language labels and other also helps localize the difficulty. The exceptionally strong other score concerns a category with explicit form-based cues in the system. The MSA and dialectal labels require a distinction among words that can resemble one another closely. Their lower F-scores are compatible with that difficulty. The score for other alone cannot measure the gain from SPLIT because all reported scores come from a system with the preprocessing feature in place.

Name recognition and hashtag handling expose different weaknesses

The authors single out named entities as a category in need of a stronger method. The English–Spanish name F-score goes from 70% in development to 23% in test. The Arabic name result goes from 91% to 83%. The same kind of lookup feature is used in both tracks, but the training data supply different contents. The reported scores support the authors’ judgment that a lookup was insufficient for consistent name recognition. They leave open the balance among unseen names, seen forms used differently in context, and other sources of error.

The lookup’s design suggests a way to distinguish those explanations. A name already present in the table can activate the feature. A form absent from the table presents a different case because the classifier must rely on its remaining evidence. The paper gives overall name F-scores, with no breakdown by lookup membership. The experiment therefore shows the variability of the final name label across splits, while the coverage of the table and the classifier’s use of positive matches remain unmeasured.

The hashtag diagnosis comes from inspecting a rule used in the submission instead of comparing two runs. Applying the Arabic convention gives a concrete account of why an item can receive the wrong category on English–Spanish tweets. That explanation is valuable even without a measured correction because it links the error to the task definition. It is a different kind of weakness from the overlap of Arabic spellings. The characters can reveal that a token begins with # directly. The mistake lies in the category assigned on the basis of that information.

Taken together, the analyses distinguish plausible sources of failure from effects that the study actually measures. The per-label results show where the system is weak. The discussion offers reasons to investigate shared spellings, table coverage, and annotation rules. Because the paper evaluates the components together, it gives no separate estimate of how much the character probabilities, the whole-word probability, the name lookup, and the contextual classifier each contribute.

Limitations

Limits the authors identify

The authors identify overlap between Arabic varieties as a limit of surface evidence. Standard and dialectal Arabic can share complete words and smaller written patterns. This matters directly to both lexical features: the same form can receive plausible character probabilities for each variety, and a broad Arabic corpus can show that a word is familiar without establishing which variety a particular occurrence belongs to. The proposed remedy is richer evidence about grammatical category and word structure. The results reported here concern the entry prior to any such extension.

The authors also say that the named-entity component needs more than a lookup. The performance of ne varies more sharply between the English–Spanish evaluation splits than the performance of Spanish or other. The feature recognizes forms already seen as names, while the task asks the system to identify the function of a token in its current tweet. That gap between a form being known and its use being recognized is a limitation of the evidence available to the classifier. The authors do not report a stronger name recognizer within this entry.

Their account of hashtags identifies a limitation in how the system was configured for the task. The submitted English–Spanish output embodies the decision to treat a leading # according to the Arabic convention. The authors explicitly say this hurt the final results. They present the scores of the submitted system, leaving the effect of a correction unquantified. The incident also puts a practical condition on portability across tracks: the general feature procedure can transfer, while the meaning of individual output labels has to be checked against the local annotation scheme.

Limits visible in the evaluation

The claim of language independence concerns the design of the components. The same feature types and sequence classifier are used in the two tracks. The data needed to instantiate them are specific to the language pair. Annotated tweets supply examples of each target language for the character estimates, labeled names for the lookup, and full sequences for supervised training. The method also assumes access to a large corpus for the selected whole-word feature. The experiments establish use with those resources for Arabic and for English–Spanish. Performance with a different script, scarce annotated data, or no comparable reference corpus remains open.

The whole-word probability introduces an additional uncertainty about portability. English Gigaword supplies that feature in English–Spanish, and Arabic Gigaword supplies it in MSA–DA. The paper offers a practical reason to choose the language with a large corpus. It gives no comparison with a feature built from the other language or variety, with symmetric whole-word features, or with the same system omitting that probability. The evaluation therefore covers the particular resource choices made for these tracks. The behavior of the same method under a different corpus choice cannot be read from the score gap.

Rare labels limit what can be concluded about the full annotation problem. The development sets show little support for mixed and uneven support for categories such as fw and unk. The zero results for mixed and ambiguous words establish that the paper reports no successful F-score for those categories on the evaluated splits. A weighted aggregate has little room to reflect some of those failures when few annotated words carry the relevant labels. The study gives stronger evidence for the frequent language labels and other than for the ability to recognize combinations of languages inside a single word or to identify an unresolved reading.

The individual F-scores also leave the direction of mistakes unresolved. A lower F-score can reflect missed annotated examples, unreliable predictions, or both. The paper does not give separate precision and recall values or a confusion matrix showing which labels were substituted for each other. For example, the MSA test score leaves open how often an error was a prediction of dialectal Arabic and how often it involved a name or another category. That distinction would matter for interpreting whether a low score mainly reflects confusion between the target varieties or difficulty separating linguistic labels from auxiliary ones.

The task is motivated as switch detection, while the reported metrics measure token labeling. Correct language labels frequently make the locations of switches apparent. A single wrong label within a span can also suggest a switch that never occurred, and a misplaced decision at the beginning or end of a span can change the inferred boundary. The study supplies no separate score for recovering those transitions or labeling whole stretches correctly. Its numerical conclusions therefore apply directly to the category assigned to each word. Their implications for the quality of inferred change points require an additional analysis.

Finally, the report gives an upper throughput figure without describing a timing setup in enough detail to compare it with another implementation. Hardware, the characteristics of the input, and which processing stages were timed would all affect such a comparison. Likewise, the authors identify machine translation as a potential downstream use, with no translation experiment in the evaluation. The paper measures the output of the language identification stage in the shared task. The downstream value of that output, including how later processing reacts to errors on names or mixed words, remains an empirical question.

What came after

A Survey of Code-switched Arabic NLP cites the shared-task paper in a later treatment of progress, challenges, and future directions for Arabic code-switching research. That places the George Washington University entry within a broader discussion of Arabic language processing. Its relevant contribution is a concrete example of word-level variety identification using learned spelling patterns and contextual classification, evaluated alongside a different language pair with the same general feature design.

The citation establishes a connection through the survey. It leaves open whether any subsequent system reimplemented the feature pipeline, adopted the same context window, or measured an improvement over its results. The precise point of continuity is the earlier paper’s treatment of Arabic code-switching as a sequence of word-level decisions, including the cases where a shared spelling gives too little evidence to decide by itself.

Cite

Cite as Mohamed Al-Badrashiny and Mona Diab. 2016. The George Washington University System for the Code-Switching Workshop Shared Task 2016. Proceedings of the Second Workshop on Computational Approaches to Code Switching.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w16-5813

@inproceedings{albadrashiny2016george,
  title = {{The George Washington University System for the Code-Switching Workshop Shared Task 2016}},
  author = {Mohamed Al-Badrashiny and Mona Diab},
  booktitle = {Proceedings of the Second Workshop on Computational Approaches to Code Switching},
  year = {2016},
  doi = {10.18653/v1/w16-5813},
  url = {https://doi.org/10.18653/v1/w16-5813}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/badrashiny-2016-george-washington-university-system-code/