Elamur Research

Part of Speech Tagging for Code Switched Data

Paper · 2016 · Fahad AlGhamdi, Giovanni Molina, Mona Diab et al.

Summary

A sentence can change language without changing its subject. A speaker may begin in Spanish and continue in English, or use an Egyptian Arabic expression inside otherwise standard Arabic. For a person familiar with both varieties, this may be ordinary communication. For an automatic grammatical analyser trained on one variety, it changes the conditions under which its decisions are reliable. This paper studies part-of-speech tagging: assigning grammatical categories such as noun, verb, or adjective to words in context. Its central question is whether existing language-specific taggers can be reused effectively on mixed-language sentences, or whether a dedicated tagger trained on mixed material is preferable.

The authors investigate Spanish–English and Modern Standard Arabic–Egyptian Arabic. These settings differ in an important way: the Arabic varieties share many written forms, whereas the paper describes Spanish–English as having much less overlap between identically spelled words. The experiments also span different sources. The Arabic material comes from discussion forums, while the Spanish–English material consists of transcribed conversations. Rather than treating code-switching as a single uniform difficulty, the study asks whether the same broad strategy remains useful across these combinations of languages, varieties, and data.

The comparison separates two approaches. A combined approach keeps the language-specific taggers and decides how to use their predictions. It may identify each word’s language before tagging, select predictions after tagging, trust whichever tagger reports greater confidence, or learn a decision rule from the taggers’ outputs. An integrated approach instead trains a single tagger on code-switched material, pooled monolingual material, or both. This distinction makes the paper more informative than a comparison between an adapted system and an unadapted baseline: it tests several different explanations of what adaptation requires.

The strongest reported approach is COMB4:MonoLT-SVM, which learns from the grammatical labels and confidence scores produced by the language-specific taggers. Its overall tagging accuracy is 90.56% on ARZTest, 96.31% on Bangor, and 90.61% on Spanglish. In each evaluation, it exceeds the other tested combined and integrated settings. Simply choosing the more confident tagger does not reproduce this success. The results therefore support a specific conclusion: the outputs of specialised taggers contain useful information, but that information benefits from a learned decision procedure.

The paper also shows that training-data composition matters. Pooling monolingual resources can work surprisingly well, and adding code-switched training material helps some settings more than others. However, several statements in the discussion conflict with the numerical tables, particularly claims about the order of language identification and tagging. The safest reading gives priority to the explicitly reported accuracies. The main finding about COMB4 is consistent across the tables; broader claims about language distance, context loss, and the best mixture of training data remain interpretations requiring further controlled study.

Interesting ideas

Learn how to combine specialists. Separate systems can retain useful expertise even when neither is dependable on the complete input. Rather than routing every case through a fixed rule, train a small decision layer on their outputs and confidence signals. The paper’s strongest setting follows this principle. It is relevant wherever several analysers cover overlapping parts of a problem, including grammatical analysis, document classification, and extraction from heterogeneous sources.

Treat confidence as evidence to test. A high score from a component does not automatically mean that its prediction should win. The confidence-selection condition performs much worse than the learned combination, despite relying on the same underlying taggers. This makes confidence validation a practical engineering task instead of a cosmetic addition. Any system that ranks competing answers by internal scores should check whether those scores remain informative under the conditions in which the system is actually used.

Preserve context when routing input. Identifying a word’s language can help select an appropriate analyser, but dividing a sentence into language-specific fragments also changes what that analyser sees. A component trained on complete sentences may behave differently on a short fragment. The paper’s comparison of routing orders exposes this design choice, even though its discussion is inconsistent about the outcome. The transferable idea is to evaluate both routing correctness and the context that routing removes.

Compare data mixtures explicitly. Training on mixed-language examples, pooling separate monolingual collections, and combining both are distinct interventions. None should stand in for the others without measurement. This applies beyond multilingual processing: domain adaptation, genre transfer, and specialised terminology all raise similar questions about whether additional data provides the missing phenomenon or merely adds examples from a different distribution.

Create a shared interface before comparing systems. The authors reconcile different grammatical inventories before evaluating their taggers together. This is more than a reporting convenience: a combination procedure needs predictions that refer to compatible categories. The same principle applies when integrating tools with different schemas, taxonomies, or annotation conventions. Preserve the source representation, but make the comparison layer explicit and inspect the decisions involved in producing it.

Report performance on meaningful subsets. An overall score can conceal whether a system succeeds on mixed sentences, on material from one language, or on the more common portion of a collection. The paper reports sentence-category breakdowns alongside overall accuracy. Such reporting helps reveal which parts of a task benefit from an intervention, provided the subsets and their denominators are clearly defined.

Test a strategy across different resource settings. A method that succeeds on one small collection may exploit its particular genre or annotation conventions. The authors revisit an earlier Spanish–English finding using another conversational collection and an Arabic-variety setting. This supports the robustness of the broad combination strategy while also exposing differences in training-data behaviour. Replication across contrasting settings is useful even when the preferred architecture stays the same.

Deep dive: Part of Speech Tagging for Code Switched Data

How monolingual taggers can be combined to tag code-switched text, with results for Spanish–English and two Arabic varieties. · about 36 minutes to read

How Mova uses it

Mova is a small language system implemented in Rust. Its documented language pipeline turns text into dependency trees, reads those trees into frames, and maintains a world of the text. Its assessed understanding remains centred on English; French parsing and other language tools have separately stated experimental boundaries. The proposals below concern how the paper’s experimental design and combination strategies could inform that architecture. They do not establish that Mova already supports Arabic or Spanish code-switching.

The status marks describe proposed relationships to documented mechanisms. They are not records of an application of this paper, and they do not imply measured improvements. Where a related mechanism exists, the proposed transfer still needs its own data, checks, and evaluation.

Idea: Learn a transparent combination of specialised taggers. Where: Approach, COMB4:MonoLT-SVM. Area: syntax and statistical combination. Mova: частково є (peta/tools/treeagree/src/rules.rs, evidence-based parser agreement). Mova already combines parser evidence through explicit rules. A separate experiment could learn a small, inspectable selector from candidate tags and their supporting signals, then compare it with those rules. The paper supports testing a learned decision layer; it does not establish that an SVM would improve Mova’s native tagging or parser agreement.

Idea: Validate confidence before using it to select an answer. Where: COMB3:MonoLT-Conf and Discussion, combined conditions. Area: statistics and evaluation. Mova: вже є (prag/src/eval.rs, confidence bins and reliability reporting). Mova already evaluates pragmatic predictions by confidence groups, with uncertainty intervals and a permuted-confidence control. The paper gives a concrete reason to preserve that discipline when adding selectors: confidence that works within a component may fail when compared across components or used on mixed input. Its code-switching results are not measurements of Mova’s existing calibration.

Idea: Measure the cost of fragmenting a sentence. Where: COMB1:LID-MonoLT, COMB2:MonoLT-LID, and Figures 1 and 2. Area: syntax and routing. Mova: нове. A proposed experiment could hold language decisions fixed while comparing complete-sentence analysis with analysis of selected spans. This would test whether routing removes evidence needed by the parser or frame reader. Why Mova: its downstream interpretation depends on grammatical structure, so a locally sensible routing decision can damage the context needed to build that structure.

Idea: Keep input identification separate from grammatical inference. Where: the comparison between COMB1 and COMB2. Area: architecture. Mova: частково є (en, prag, world, and the configured native deputy interfaces). Mova already distinguishes parsing, interpretation, and task admission. A multilingual extension could likewise retain a language or variety observation separately from the grammatical decision it influences. That would make it possible to inspect whether an error came from identification, tagging, or their interaction, rather than treating the whole pipeline as an unexplained failure.

Idea: Compare code-switched, monolingual, and pooled training sources. Where: Integrated Experimental Conditions. Area: data and evaluation. Mova: нове. A future mixed-language study could reproduce the paper’s distinction between training on mixed sentences, pooling language-specific sentences, and combining both. The proposal is an experimental design, not a recommendation to import any particular corpus. Why Mova: it would show whether gains come from exposure to a missing construction, broader lexical coverage, or additional examples of already supported language.

Idea: Retain a shared category layer with explicit mappings. Where: Part of Speech Tagset. Area: annotation and interoperability. Mova: частково є (en Universal Dependencies output and the treebank dialect converters). Mova already uses a common grammatical representation and documents differences between treebank conventions. The paper suggests keeping each source-to-common mapping independently inspectable, especially when several taggers contribute evidence. Agreement after mapping should remain distinguishable from agreement in the original labels, because a coarse mapping can hide disagreements that matter downstream.

Idea: Publish performance separately for mixed and unmixed sentences. Where: Results and the language-category columns of the result tables. Area: evaluation. Mova: нове. An experimental multilingual benchmark could report sentence-category results alongside aggregate tagging and parsing scores. The relevant categories would need explicit definitions rather than being inferred from a file name. Why Mova: an overall improvement could otherwise conceal deterioration on the mixed constructions that motivated the extension, or reflect only the most frequent supported language.

Idea: Replicate a successful combination on contrasting collections. Where: Datasets, Results, and the comparison with Solorio and Liu. Area: evaluation design. Mova: частково є (documented held-out evaluation and regression gates across language and world tasks). Mova already requires evidence beyond a single demonstration. The proposed extension is to test a multilingual combination on different sources and language relationships while preserving the same decision architecture. This would help distinguish a reusable method from a setting-specific repair, without claiming that the paper’s cross-pair outcome transfers automatically.

Idea: Build cleaner component baselines before judging combination. Where: Monolingual POS Tagging systems. Area: experimental controls. Mova: частково є (separate native CPU and GPU parser identities and documented execution boundaries). The authors retrain their Arabic taggers because the available training histories do not provide the comparison they want. Mova could apply the same reasoning to any future specialist ensemble: record exactly what each specialist has already seen, then avoid describing an advantage as language specialisation when it may reflect prior exposure to mixed material.

Idea: Distinguish language mixture from genre mismatch. Where: Monolingual POS Tagging systems and Discussion, integrated conditions. Area: data analysis. Mova: частково є (tools/dictindex, source domains and retained provenance). Mova’s occurrence index already keeps source-domain metadata. A tagging experiment could use that information to separate changes associated with language mixture from changes associated with conversational, encyclopedic, or instructional text. The paper raises domain mismatch as an explanation but does not isolate it, so Mova should treat it as a hypothesis requiring a controlled comparison.

Idea: Preserve source labels before simplifying them. Where: the Arabic and Bangor tagset mapping procedures. Area: data processing. Mova: частково є (treebank converters and provenance-preserving dictionary evidence). A common label can support integration while the original label remains available for diagnosis. This matters when several distinct source categories collapse into one target category. Mova could retain the mapping decision with each imported annotation so that an apparent agreement can be traced back to its source meaning and corrected without reconstructing the entire import.

Idea: Disambiguate annotations before using them as reference answers. Where: the Bangor preparation procedure in Part of Speech Tagset. Area: annotation quality. Mova: вже є (peta/tools/treeagree, reviewed disputes, and separate admitted training paths). Mova already separates candidate annotations, reviewed disagreements, and later training admission. The paper’s manual treatment of ambiguous Bangor categories supports that separation. A token carrying several possible source tags is not yet a single reference answer, and a mechanical category conversion cannot resolve an uncertainty that the source annotation leaves open.

Idea: Keep language-identification quality visible beside tagging quality. Where: COMB1, COMB2, and the AIDA2 discussion. Area: evaluation and diagnosis. Mova: нове. If Mova adds token-level language routing, the routing observations should have their own evaluation instead of borrowing credibility from the final tagging score. Conversely, a good identification score should not establish that the routed parser works well. Why Mova: separate measurements would identify whether development effort belongs in recognition of the input variety, grammatical analysis, or the rule connecting them.

Idea: Treat shared spellings as a diagnostic category. Where: Discussion, integrated conditions, and Conclusions. Area: lexical semantics and syntax. Mova: частково є (global::senses and source-bound dictionary occurrence evidence). Mova already distinguishes senses and retains contextual evidence for dictionary work. A multilingual extension could analyse words whose spelling occurs in both varieties separately from words that strongly identify one variety. The paper motivates this distinction through homographs, but it does not justify resolving every shared spelling through the same mechanism as ordinary word-sense selection.

Idea: Inspect the information available when both specialists fail. Where: Discussion, combined conditions. Area: error analysis. Mova: частково є (treeagree evidence and disagreement records). The authors suggest that their learner can correct cases where neither specialist provides the right tag, but their method description leaves the exact prediction constraint unclear. Mova could make this explicit: distinguish selecting an existing candidate from proposing another category. The resulting records would show whether a combination succeeds through better arbitration or through a genuinely new prediction.

Idea: Require controlled evidence for explanations of improvement. Where: Discussion of confidence, context, and domain mismatch. Area: statistics and scientific reasoning. Mova: вже є (held-out checks, negative controls, and regression-gated changes). The paper’s tables support the superiority of its learned combination more directly than they support every explanation offered for that superiority. Mova’s existing measurement principles fit this distinction. A successful change should retain its measured result while explanations such as better context use or improved ambiguity handling remain separately testable claims.

Idea: Check that aggregate and subset reporting are interpretable together. Where: Results and the sentence-category breakdowns. Area: evaluation reporting. Mova: нове. A reporting validator could require the membership rule and scoring unit for every subset, then flag aggregate tables that cannot be reconstructed from the stated partitions. It would not silently repair an ambiguous publication. Why Mova: transparent systems need transparent denominators; a result is difficult to diagnose if the reader cannot tell which tokens contributed to each score.

Idea: Preserve a dataset’s processing identity. Where: Datasets and the differing Bangor size descriptions. Area: provenance and reproducibility. Mova: вже є (tools/dictindex source versions and epochs, and tools/enrich source fingerprints). Mova already refuses to conceal changed parses under an existing source version and checks source identity before staging enrichment. The paper illustrates why that matters: corpus descriptions, processed token totals, and evaluation splits may refer to different stages. Recording those stages would make a later comparison more precise without assuming why the published counts differ.

Idea: Make the training and selection split explicit. Where: COMB4’s cross-validation description and Datasets. Area: evaluation design. Mova: частково є (held-out data, source-bound runs, and assessment separation). The paper mentions cross-validation and held-out testing but leaves important details of the stacking procedure unstated. A Mova experiment should identify which examples train the base taggers, which train the combination rule, and which remain untouched for evaluation. This would make the combination reviewable and prevent a good score from depending on hidden reuse of evaluation information.

Idea: Evaluate whether coarse agreement preserves useful distinctions. Where: Part of Speech Tagset. Area: representation and downstream evaluation. Mova: частково є (en grammatical output and prag frame extraction). A common grammatical category makes comparisons possible, but Mova’s readers may need distinctions that a coarse inventory removes. An experiment could therefore inspect both category agreement and its consequences for frames or world updates. The paper measures tagging accuracy; it does not demonstrate that its mappings preserve every distinction relevant to Mova’s later reasoning.

Idea: Keep learned arbitration modular. Where: Combined Experimental Conditions. Area: system architecture. Mova: частково є (layers, explicit interfaces, and source-bound combinatorial tooling). The combination layer can be treated as a replaceable decision component with declared inputs and outputs. In Mova, that would allow comparison between written rules and a learned selector without changing the identity of the underlying parser observations. The paper motivates the separation through its architecture, while the constraints and proof obligations of a Mova implementation would need to be specified independently.

Idea: Distinguish ordinary mixed-language data from an assessment resource. Where: Datasets and the supervised experimental setup. Area: data governance and evaluation. Mova: вже є (tools/dictindex assessment exclusions and the separate training-admission path). The paper depends on annotated mixed-language material for training and testing, making the role of each collection consequential. Mova already excludes held-out assessments from dictionary evidence. A future code-switching programme should preserve that boundary while obtaining suitable training examples, rather than treating every available annotated sentence as interchangeable evidence.

The problem and its context

Code-switching means alternating between languages or varieties in communication. The paper distinguishes changes within an utterance from changes between utterances. Its experiments concentrate on the former, where a single sentence may require knowledge associated with more than one language. This makes the task different from choosing one language-specific analyser for an entire document.

The authors place the problem in multilingual social life. They discuss speakers who share a first language while also using another prevalent language, and they note that the varieties involved need not be completely separate languages. Modern Standard Arabic and Egyptian Arabic provide their example of switching between related varieties. Spanish and English provide the other experimental pairing.

Written communication matters to their motivation. The paper describes code-switching as established in speech and increasingly visible in social-media writing. It also notes that switching can affect more than vocabulary: differences may involve word formation, sentence structure, meaning, or discourse use. A grammatical analyser cannot therefore assume that identifying a foreign-looking word resolves everything unusual about the sentence.

The Arabic example makes the scale of the problem concrete. An otherwise standard-Arabic passage contains the Egyptian negator represented as m$ in Buckwalter transliteration. The authors contrast it with lyst, a standard-Arabic alternative. The example concerns an investigation that failed to find information, with science fiction used as part of the expression. A change involving a short negative expression is enough to alter the variety-specific evidence available to an analyser.

Buckwalter is used to display Arabic material through ASCII characters corresponding to the original orthography. It is a presentation convention, not a translation into another language. This distinction matters because the experiment concerns Arabic grammatical analysis; the Latin characters in the printed example should not be mistaken for an English-language input.

Part-of-speech labels sit near the beginning of many language-processing pipelines. The paper mentions parsing, information extraction, machine translation, and information retrieval as technologies affected by mixed-language input. Its experiments do not measure all those tasks. They examine grammatical tagging as a manageable component whose failure can create difficulties for subsequent processing.

Earlier approaches described by the authors

The related-work discussion does not present a single settled recipe. Instead, it describes several attempts to combine language recognition, language-specific tagging, and supervised learning.

Vyas and colleagues’ English–Hindi study is relevant because it treats social-media text as difficult for reasons beyond switching alone. The challenges listed include transliteration, spelling variation, short messages, and grammatical irregularity. According to the account in this paper, automatic language detection and translation improved tagging, but merely placing language-specific taggers alongside each other was insufficient.

The authors also cite Barman and colleagues on the combined difficulty of transliterated and mixed-language social-media material. That connection reinforces the need to distinguish several sources of distribution change. A system can fail because a word belongs to another language, because its spelling differs from the training data, or because the surrounding text follows a different genre.

Solorio and Liu’s Spanish–English work is the closest predecessor to the paper’s best-performing strategy. The authors describe that earlier approach as using machine learning with language-specific taggers and a small set of heuristics. It outperformed the baselines in its setting. The present study returns to the broader idea of learning from specialist outputs and tests it under a shared grammatical inventory and additional data.

Other cited studies give less uniform results. The paper reports an accuracy of 84% for a Hindi–English approach associated with Royal Sequiera and colleagues, whose features address transliteration. It describes Jamatia and colleagues as comparing fine and coarse grammatical inventories on social-media messages, where the learned approach did not surpass the language-specific combination. These accounts explain why a broader comparison was useful: previous evidence did not establish that one style of combination would always win.

The paper’s contribution is therefore primarily comparative. It examines multiple ways of reusing existing resources, contrasts them with direct training on mixed material, and repeats the comparison across different language relationships. Its strongest claim is about the observed ranking of these strategies, rather than the invention of a new base tagging algorithm.

The method, step by step

The experimental design begins with a practical resource question. There are already annotated monolingual collections and working language-specific taggers. There is also some annotated code-switched material, but its quantity and characteristics differ between settings. The authors ask how these resources should be organised.

The full method is best understood as a branching comparison. Some conditions retain separate taggers and combine their decisions. Others pool training examples and learn a single tagging system. Both routes eventually produce a grammatical label for each evaluated token.

Comparing ways to tag mixed-language sentences

The steps in order.

Comparing ways to tag mixed-language sentencesStep 1: Prepare annotated language and mixed-language collections1. Prepare annotated language and mixed-language collectionsStep 2: Map grammatical labels into a shared inventory2. Map grammatical labels into a shared inventoryStep 3: Train language-specific tagging baselines3. Train language-specific tagging baselinesStep 4: Combine predictions or pool training examples4. Combine predictions or pool training examplesStep 5: Learn the supervised combination where required5. Learn the supervised combination where requiredStep 6: Evaluate overall and sentence-category accuracy6. Evaluate overall and sentence-category accuracy

Prepare the Arabic specialists

For Arabic, the starting tool is MADAMIRA, which produces grammatical and morphological analyses. The paper describes outputs including lemmas, diacritised forms, phrase information, and named-entity labels, alongside part-of-speech information. Its role here is narrower: the experiments use its tagging predictions as language-specific baselines and as inputs to combination.

The available standard-Arabic and Egyptian versions do not provide a clean comparison by themselves. The standard-Arabic version was trained on newswire, whereas the Egyptian version’s training material included standard, dialectal, and mixed sentences. Using those versions unchanged would confound language variety, genre, and prior exposure to code-switching.

The authors therefore retrain the Arabic taggers from the Egyptian Arabic Treebank collection. They use sentence-level decisions from AIDA2 to identify material treated as purely standard Arabic, purely Egyptian Arabic, or mixed. The standard-only portion trains MADAMIRA-MSA, the Egyptian-only portion trains MADAMIRA-EGY, and the mixed portion supports the dedicated code-switching condition.

This procedure improves the intended comparability, but its labels remain operational decisions. The purity of a training sentence is established through the identification system used in the experiment. It is not described as an independently perfect separation of all linguistic phenomena.

Prepare the Spanish and English specialists

The Spanish–English experiments use TreeTagger for both languages. English training comes from the Penn Treebank, using sections 0-22. Spanish training uses Ancora-ES.

The authors select TreeTagger because its performance and characteristics make it suitable for their comparison, including continuity with the earlier Spanish–English study. The important architectural point is that the two language-specific taggers remain distinct. Their outputs can disagree, and the combination conditions must decide what to do with that disagreement.

Unlike the Arabic retraining, the Spanish and English training sources are not presented as conversational collections matched to the evaluation genre. This becomes relevant when the authors later discuss domain mismatch. A comparison of language-specific and integrated tagging can also reflect the fit between the training source and conversational test material.

Establish compatible output categories

The systems and corpora begin with different grammatical inventories. The authors map them to a shared inventory associated with the universal part-of-speech proposal. This permits comparison across the language pairs and gives combined systems a common output vocabulary.

For Arabic, the original Buckwalter categories encode much more detailed morphology. The paper describes 485 untokenised tags and a system of 70 tags and subcategories, with combinations producing almost 170 morpheme-level subcategories. This level of detail is not the intended target of the cross-pair comparison.

The mapping therefore groups detailed analyses into broader grammatical functions. Pronoun subtypes become pronouns; prepositions and postpositions become adpositions; auxiliary categories remain distinguishable from main verbs. Negation and other relevant particles receive a particle category. Determiner functions are also gathered into a shared category.

These conversions require linguistic decisions. A participial form, for instance, cannot be understood solely through its spelling when different grammatical uses are possible. The paper’s mapping description lists participles under more than one broad destination, without fully specifying every contextual rule that resolves those cases. A reader can understand the intended simplification while recognising that the complete mapping implementation is not documented in the prose.

COMB1: identify language before tagging

COMB1:LID-MonoLT begins by assigning language identities to the words of a mixed sentence. Consecutive words associated with the same language form fragments. Each fragment is sent to the corresponding language-specific tagger, and the resulting labels are placed back into the original sentence order.

For Arabic, AIDA2 supplies the token-level variety decisions. The paper describes its outputs as including standard-Arabic and Egyptian labels, other token classes, and confidence information. Its sentence-level function is also used earlier to prepare the training subsets.

For Spanish–English, the authors train character-based language predictors with the SRILM toolkit. They use 6-gram character sequences, with the AFP portions of English and Spanish GigaWord as training sources. The resulting language identities determine which specialist receives each fragment.

The appeal of this design is clear: avoid asking a language-specific tagger to analyse words assigned to the other language. Its cost is equally important: a sentence-trained component now receives a fragment. The identification decision changes not only the selected specialist but also the context available to it.

COMB2: tag before selecting by language

COMB2:MonoLT-LID reverses that order. Both language-specific taggers process the complete sentence. The language-identification component is then used to select, for each token, the prediction from the corresponding tagger.

This preserves the complete observed sentence for both specialists. It does not make that sentence monolingual, so each specialist still encounters unfamiliar material. Nonetheless, it avoids the explicit removal of neighbouring words that occurs when COMB1 constructs language-specific fragments.

The comparison is therefore not simply between early and late bookkeeping. It changes what evidence reaches the tagging systems. The authors emphasise that their language-specific taggers were trained as sequence taggers on sentence inputs, making this a plausible source of behavioural differences.

COMB3: choose by confidence

COMB3:MonoLT-Conf also runs the separate taggers, but selection relies on their confidence scores rather than language identity. For a given token, the procedure trusts the prediction associated with the stronger confidence signal.

This assumes that the scores are sufficiently comparable within a language pair. The paper states that its paired taggers provide comparable confidence values. Even under that assumption, comparability is not the same as reliability: two scores may share a usable scale while both become misleading on unfamiliar input.

This distinction helps explain why COMB3 is a meaningful baseline. It tests whether combining specialists requires supervised learning, or whether their own scores already contain an adequate decision rule.

COMB4: learn from the taggers’ outputs

COMB4:MonoLT-SVM uses a support vector machine to learn a tagging decision from the available specialist information. The stated features are the grammatical predictions and confidence scores produced by the taggers. The description also connects this condition to the outputs used in the confidence-based combination.

The paper mentions 10-fold cross-validation and evaluation on a held-out test set. It does not supply a complete account of the feature encoding, optimisation settings, or the exact role of each cross-validation stage. The reproducible high-level idea is a learned layer above the language-specific systems.

There is also an ambiguity in the prediction space. The method section describes choosing between the specialists’ tags. Later, the discussion suggests that the learner can recover when both specialists are wrong. These imply different constraints. A selector restricted to the proposed tags cannot output a correct category absent from both proposals; a classifier over the shared inventory could potentially do so.

The reported results establish that the learned condition works best among the tested settings. They do not resolve this implementation ambiguity by themselves.

INT1: train only on mixed material

INT1:CSD trains a dedicated tagger using annotated code-switched examples. Arabic uses the mixed portion extracted from the treebank training material. Spanish–English uses TreeTagger trained for the corresponding mixed-language condition.

This tests whether exposure to the target phenomenon is more valuable than retaining separate specialists. Such training can present mixed contexts directly, instead of requiring a later decision procedure to reconcile predictions from systems trained separately.

Its effectiveness still depends on the available collection. A dedicated system trained on a limited source may have less general coverage than specialists trained on larger monolingual resources. Conversely, a substantial in-domain mixed collection may be especially valuable.

INT2: pool monolingual material

INT2:AllMonoData combines annotated monolingual resources and trains a single tagger on the pooled collection. The Arabic condition joins standard and Egyptian material; the Spanish–English condition joins the corresponding language-specific corpora.

The resulting training stream contains different languages across sentences, but does not introduce mixed sentences within this condition. This is the crucial distinction from INT1. A tagger can learn vocabulary and grammatical patterns from both languages without observing how those patterns meet within one utterance.

The authors use this setting to test a simple resource-reuse strategy. It avoids maintaining a separate selector, and it does not require every training sentence to exhibit code-switching.

INT3: combine both training sources

INT3:AllMonoData+CSD joins the resources used by the preceding integrated conditions. It supplies both monolingual coverage and mixed-language examples.

This condition tests complementarity, but it also changes training quantity and composition together. If it improves, the improvement cannot automatically be attributed to one specific linguistic mechanism. If it deteriorates, the result does not prove that the added source contains no useful information; it may indicate that the particular pooling procedure uses it poorly.

Evaluate predictions

The paper measures accuracy by comparing predicted grammatical labels with the reference annotations. It reports an overall result and results for sentence categories associated with each language or with code-switching.

No mathematical derivation or explicit scoring equation is presented. The method is specified through experimental conditions, data preparation, and accuracy reporting. The relevant precision lies in identifying what each condition receives, which decision it changes, and which evaluation subset a reported score describes.

Experiments and results

The evaluation uses an Arabic treebank collection and conversational Spanish–English corpora. The same test material is used across conditions within each reported comparison. This allows the architectural alternatives to be assessed against common reference labels.

The overall score is token-level tagging accuracy across the relevant test material. It is not a sentence-level measure of whether every word was tagged correctly. The separate “CS” column concerns the subset described as code-switched sentences, rather than an explicitly defined window around each switching point.

Arabic discussion-forum material

The Arabic source is ARZ, assembled from the Egyptian Arabic Treebank collection. The dataset summary reports 13,698 sentences, 175,361 words, and 39,168 types. The split table assigns 154,897 tokens to training/development and 20,464 tokens to testing.

The authors form ARZTest by bringing together the source collection’s development and test portions. They use the training portion to construct the language-specific and mixed training conditions. The text describes the source genre as discussion forums, predominantly Egyptian Arabic.

The paper gives several different descriptions of the prevalence of switching. The dataset table reports 40.78%, another passage attributes 38% to AIDA2, and the discussion refers to approximately 51% of sentences. These figures should not be merged into a single estimate. Their relationship is not explained well enough to establish that they use the same unit or processed subset.

ARZTest overall part-of-speech accuracy

The learned combination exceeds the integrated and direct-selection alternatives.

ARZTest overall part-of-speech accuracyMADAMIRA-MSA: 77.23MADAMIRA-MSA77.23MADAMIRA-EGY: 72.22MADAMIRA-EGY72.22COMB1:LID-MonoLT: 77.66COMB1:LID-MonoLT77.66COMB2:MonoLT-LID: 77.41COMB2:MonoLT-LID77.41COMB3:MonoLT-Conf: 76.66COMB3:MonoLT-Conf76.66COMB4:MonoLT-SVM (this paper): 90.56COMB4:MonoLT-SVM (this paper)90.56INT1:CSD: 83.89INT1:CSD83.89INT2:AllMonoData: 87.86INT2:AllMonoData87.86INT3:AllMonoData+CSD: 89.36INT3:AllMonoData+CSD89.36
The numbers
System or settingaccuracy %
MADAMIRA-MSA77.23
MADAMIRA-EGY72.22
COMB1:LID-MonoLT77.66
COMB2:MonoLT-LID77.41
COMB3:MonoLT-Conf76.66
COMB4:MonoLT-SVM (this paper)90.56
INT1:CSD83.89
INT2:AllMonoData87.86
INT3:AllMonoData+CSD89.36

The table supports a clear separation between the learned combination and the simpler combined conditions. The integrated conditions also perform substantially better than those simpler combinations. Within integrated training, the strongest overall Arabic result comes from pooling monolingual and mixed material.

The paper contrasts these mixed-input results with approximate monolingual performance: around ∼97% for the standard-Arabic tagger and ∼93% for the Egyptian tagger on their corresponding monolingual evaluation material. Those contextual figures illustrate the motivation, but they are not controlled measurements on the same sentences with switching removed.

For COMB4, the reported Arabic sentence-category accuracies are 90.85 for code-switched sentences, 91.63 for standard-Arabic sentences, and 88.91 for Egyptian sentences. These show that its usefulness is not confined to one reported category. They should still be read alongside the reporting ambiguities discussed below.

The Bangor conversational collection

Bangor provides a larger Spanish–English conversational setting. The narrative description mentions 84 speakers, 35 hours of conversation, and 242,475 words. It describes the language distribution as 63% English, 34% Spanish, and 3% indeterminate.

The experiment’s dataset table instead gives 45,605 sentences, 335,578 words, and 13,994 types. Its split table assigns 268,464 tokens to training/development and 67,114 to testing. The paper does not fully explain how the narrative corpus description relates to the processed totals used in the experiment. The split-table figures are therefore the relevant stated sizes for interpreting the reported evaluation.

Reference preparation is important here. Bangor had undergone automatic glossing and subsequent manual correction. For these experiments, the authors additionally resolve ambiguous grammatical categories, correct selected frequent words, repair some mistranscribed unknown items, and map the resulting annotations to the common inventory.

Bangor overall part-of-speech accuracy

The learned combination leads, while dedicated mixed-data training is the strongest integrated setting.

Bangor overall part-of-speech accuracyTreeTagger SPA: 45.95TreeTagger SPA45.95TreeTagger ENG: 64.05TreeTagger ENG64.05COMB1:LID-MonoLT: 68.35COMB1:LID-MonoLT68.35COMB2:MonoLT-LID: 65.51COMB2:MonoLT-LID65.51COMB3:MonoLT-Conf: 68.25COMB3:MonoLT-Conf68.25COMB4:MonoLT-SVM (this paper): 96.31COMB4:MonoLT-SVM (this paper)96.31INT1:CSD: 95.28INT1:CSD95.28INT2:AllMonoData: 78.57INT2:AllMonoData78.57INT3:AllMonoData+CSD: 91.04INT3:AllMonoData+CSD91.04
The numbers
System or settingaccuracy %
TreeTagger SPA45.95
TreeTagger ENG64.05
COMB1:LID-MonoLT68.35
COMB2:MonoLT-LID65.51
COMB3:MonoLT-Conf68.25
COMB4:MonoLT-SVM (this paper)96.31
INT1:CSD95.28
INT2:AllMonoData78.57
INT3:AllMonoData+CSD91.04

Bangor is especially informative about training mixtures. Training directly on its mixed-language material works well, while pooling the monolingual training collections performs much less well. Adding those monolingual collections to the mixed training source does not improve on INT1 in the reported setup.

The authors suggest domain mismatch as an explanation. The monolingual resources and conversational evaluation material differ in source characteristics, so more training material need not mean better coverage of the target distribution. This is a plausible account, but the experiments do not independently manipulate genre while holding the other factors fixed.

COMB4’s reported accuracy on code-switched Bangor sentences is 95.39. The columns labelled ENG and SPA give 96.37 and 96.60. Thus the headline overall result should not be read as a score exclusively for mixed sentences. The paper explicitly reports a separate result for that subset.

The smaller Spanglish collection

Spanglish is included partly to connect the study with earlier Spanish–English research. It consists of conversational material used by Solorio and Liu. The dataset table reports 922 sentences, 8,022 words, and 1,455 types, with 20.61% in its switching column.

The split table gives 6,456 training/development tokens and 1,566 test tokens. These sizes matter when interpreting the result: the test is much smaller than Bangor’s, and the paper does not provide uncertainty intervals to show how sensitive the measured ranking might be to the sampled material.

Spanglish overall part-of-speech accuracy

The learned combination also leads on the smaller conversational evaluation.

Spanglish overall part-of-speech accuracyTreeTagger SPA: 44.61TreeTagger SPA44.61TreeTagger ENG: 75.87TreeTagger ENG75.87COMB1:LID-MonoLT: 78.73COMB1:LID-MonoLT78.73COMB2:MonoLT-LID: 73.52COMB2:MonoLT-LID73.52COMB3:MonoLT-Conf: 77.39COMB3:MonoLT-Conf77.39COMB4:MonoLT-SVM (this paper): 90.61COMB4:MonoLT-SVM (this paper)90.61INT1:CSD: 82.95INT1:CSD82.95INT2:AllMonoData: 84.55INT2:AllMonoData84.55INT3:AllMonoData+CSD: 85.06INT3:AllMonoData+CSD85.06
The numbers
System or settingaccuracy %
TreeTagger SPA44.61
TreeTagger ENG75.87
COMB1:LID-MonoLT78.73
COMB2:MonoLT-LID73.52
COMB3:MonoLT-Conf77.39
COMB4:MonoLT-SVM (this paper)90.61
INT1:CSD82.95
INT2:AllMonoData84.55
INT3:AllMonoData+CSD85.06

The integrated ranking differs from Bangor. Pooling monolingual resources outperforms training exclusively on the available mixed examples, and adding both sources gives the highest integrated score. Still, the learned combination remains the strongest reported condition.

COMB4’s Spanglish breakdown gives 89.43 on code-switched sentences, 93.61 in the ENG column, and 87.96 in the SPA column. These figures provide a more specific picture than the overall result alone: the strongest architecture still has differing performance across the reported categories.

What is stable across the evaluations

The most stable finding is architectural. COMB4 leads on every reported overall evaluation. The integrated conditions exceed the simpler combined conditions, while the exact ranking among integrated training mixtures changes with the collection.

A second stable observation is that language identification alone does not solve the task. Even when a procedure can select a nominally appropriate specialist, the resulting prediction can remain wrong. The chosen tagger may lack suitable context, may encounter unfamiliar usage, or may have been trained on a different genre.

The paper’s evidence is therefore strongest for supervised reuse of specialist outputs. It is less decisive about a universal recipe for assembling training corpora, and it does not establish that the same combination would retain its advantage with different base taggers or different mixed-language distributions.

What the ablations show

The paper does not present a fine-grained ablation of the winning system; it offers controlled comparisons between broad architectures, routing orders, and training-data mixtures.

Learned selection versus raw confidence

The comparison between COMB3 and COMB4 is the closest direct test of the value of learning above the specialists. Both rely on information supplied by the underlying taggers, but one uses a simple confidence preference while the other learns a decision procedure.

The learned condition wins consistently in the overall results. This supports the proposition that the relationship between a tagger’s reported confidence and the correct answer is more complicated than a direct comparison of scores.

It does not establish which part of COMB4 causes the gain. The paper does not separately remove grammatical-label features, remove confidence features, or replace the classifier while keeping everything else fixed. As a consequence, the result cannot tell us whether confidence is essential, whether the labels do most of the work, or whether particular interactions dominate.

The authors attribute the weaker confidence baseline partly to unreliable confidence from weak taggers. That is a reasonable interpretation of the observed pattern. However, they do not provide reliability curves or a separate calibration experiment, so the precise failure of the confidence scale remains unmeasured.

Routing before or after sentence analysis

COMB1 and COMB2 isolate a useful architectural distinction. In one, language decisions divide the input before tagging. In the other, the specialists see the complete sentence and language identity selects their outputs afterward.

The numerical tables give COMB1 the higher overall score on ARZTest, Bangor, and Spanglish. The prose does not consistently acknowledge that pattern. One discussion passage says the Arabic result favours whole-sentence tagging; another says the relationship reverses between language pairs. Neither description matches the tabulated overall ordering.

The comparison therefore establishes sensitivity to pipeline order, but it cannot safely support the paper’s full explanation about which language pair tolerates fragments better. The proposed mechanism—loss of useful sentence context—remains plausible without being demonstrated by the stated direction of the results.

A stronger diagnosis would require separating language-identification mistakes from context loss. For instance, the current experiment changes both what reaches a tagger and when language information affects the output. Without an independent reference for the routing decisions, those contributions remain entangled.

Mixed examples versus pooled monolingual examples

The integrated conditions show that code-switched training examples are not interchangeable with a pool of monolingual sentences. They also show that the value of each source changes across datasets.

Arabic’s overall integrated ranking favours the combined training source. Spanglish shows the same ordering at the top, while Bangor favours training on its mixed material alone. These results are enough to reject a simple assumption that every additional source improves the target system.

They are not enough to explain why. Training volume, genre, lexical coverage, and exposure to switching patterns change together. The authors emphasise shared spellings and language similarity for Arabic, and domain mismatch for Bangor. Those interpretations identify worthwhile hypotheses, but they are not isolated causal findings.

Cross-pair replication

Testing both language pairs provides a broader analysis than repeating variants within a single corpus. The learned combination’s ranking survives a change from Spanish–English to related Arabic varieties, as well as changes in corpus size and source.

This is evidence for the usefulness of the general strategy under the tested conditions. It does not show that every internal mechanism behaves the same way across the pairs. Indeed, the integrated-training results demonstrate that the data requirements are not uniform.

Missing error-level analyses

The paper does not give a detailed breakdown by grammatical category, distance from a switching boundary, or type of shared spelling. Such analyses would help connect the successful architecture to a linguistic explanation.

It also does not report how often both specialists are wrong or how frequently the learner corrects those cases. That omission is particularly relevant because the discussion invokes this possibility as an explanation for COMB4’s performance. The overall scores show a successful decision system; they do not reveal its complete correction pattern.

Limitations

The study’s limits fall into different groups. Some are explicitly recognised by the authors. Others follow from the experimental design or from ambiguities in how the results are reported. Keeping these apart preserves both the contribution and its boundaries.

Limits acknowledged by the authors

The authors identify inadequate context as a concern for the combined approaches. A tagger trained on sentences may behave poorly when given a short language-specific fragment. They propose future work that would provide more meaningful context for such inputs.

That proposal follows naturally from the architecture, but the existing comparison does not isolate context as the cause of the weak results. The paper’s inconsistent descriptions of COMB1 and COMB2 make it especially important to treat the context explanation as a research direction rather than a settled empirical conclusion.

They also identify the feature set of COMB4 as something to expand. Their planned additions include Brown-cluster information, Word2Vec representations, and features based on deep learning. These are future proposals in this paper. The reported winning system should not be credited with experiments using those additions.

Finally, the authors state that further investigation is needed into the relationship between language similarity and adaptation difficulty. They interpret their results in terms of shared spellings and the closeness of the Arabic varieties, but do not present that relationship as fully established across languages.

Language coverage is limited

A careful reader can conclude that the learned combination works well for the evaluated pairings and resources. The study does not establish the same ranking for every language combination, script relationship, or kind of switching.

The two settings differ along several dimensions simultaneously. Relatedness, shared orthography, source genre, training-resource histories, and collection sizes are not independently varied. A cross-pair difference therefore cannot be assigned uniquely to linguistic distance.

The paper’s conclusion that more distant languages benefit from pooled monolingual resources also needs qualification. Bangor’s dedicated mixed-data condition exceeds its monolingual-pooling condition, and adding monolingual material reduces the reported score relative to mixed-only training. The broader conclusion is more sweeping than the uniformity of the integrated results supports.

The task is grammatical tagging

The experiments measure part-of-speech accuracy. They do not demonstrate improvements in parsing, translation, retrieval, or extraction, even though these tasks motivate the work.

A correct coarse grammatical category can be useful without resolving every morphological or syntactic distinction. Conversely, an error in a broad category may have very different consequences depending on its role in a downstream pipeline. The paper does not evaluate those consequences.

This is especially relevant to the shared inventory. Mapping detailed Arabic analyses into broader categories makes cross-system comparison manageable, but it changes the question being scored. The results concern success under the mapped inventory, not recovery of every distinction available in the original annotations.

Annotation preparation affects the evaluation target

Bangor’s preparation includes manual correction and disambiguation before mapping. These steps are necessary to obtain usable reference labels, but the paper does not provide a detailed independent reliability analysis for the final mapped evaluation annotation.

Some mapping decisions also require interpretation. The treatment of conjunctions uses word lists; underspecified interrogative, relative, and demonstrative categories require manual decisions. Such choices influence what counts as an error.

This does not invalidate the experiment. It does mean that the annotation and conversion procedure belongs to the definition of the benchmark. A score cannot be fully understood as a property of a tagger alone.

Reported corpus quantities are not fully reconciled

The differing Bangor totals leave uncertainty about how the original corpus description relates to the processed experimental data. Similarly, the switching percentages reported for ARZ are not explained as a coherent sequence of measurements.

A reader should preserve those distinctions rather than silently choose a convenient total. The paper identifies the test-token sizes used in its split table, which supports interpretation of the main evaluations. It does not supply enough detail to reconstruct every preprocessing transition.

The relevant limitation is reproducibility of the data identity, rather than proof that any particular total is wrong. Different processing stages can produce different counts, but the relationship between stages needs documentation before that explanation can be accepted.

Some textual claims conflict with the tables

The discussion says that all Arabic combined conditions exceed the baselines. The table gives COMB3 an overall score of 76.66, while the standard-Arabic baseline is 77.23. Thus the universal statement is not supported by the reported values.

The ordering of COMB1 and COMB2 is also described inconsistently. The tabulated overall values favour COMB1 throughout, whereas parts of the discussion state other patterns. A reader should use the tables for the observed ordering and retain uncertainty about the explanation.

These problems do not overturn the central result: COMB4 remains the highest-scoring overall condition in each table. They do constrain the secondary claims about why the simpler approaches behave as they do.

Subset definitions need greater precision

The authors describe their language-specific and mixed results as sentence-category breakdowns. However, some integrated Arabic entries are difficult to reconcile with the overall score if those categories are assumed to be an exhaustive partition evaluated by the same token-accuracy calculation.

The paper does not give enough denominator detail to resolve that issue. It would be inappropriate to reconstruct alternative subset definitions from the numbers alone. The responsible conclusion is that the breakdown is informative in intent but insufficiently specified for full numerical auditing.

This also limits comparisons between the switching-percentage column and the CS accuracy column. A percentage describing corpus composition cannot be used as an evaluation weight unless its unit and subset match the accuracy calculation.

The winning system is incompletely specified

The description of COMB4 gives its broad classifier family and feature sources but not all implementation details. Feature encoding, classifier settings, and the precise stacking procedure are not fully stated.

The prediction-space ambiguity matters as well. Selecting one specialist’s answer and predicting freely from the common inventory are different tasks. The paper’s discussion appears to attribute the capabilities of the latter to a method introduced partly in the language of the former.

The cross-validation description is similarly brief. It establishes that cross-validation and held-out testing are part of the procedure, but does not make the complete sequence of training and selection decisions transparent.

Statistical uncertainty is not reported

The paper reports accuracy values without uncertainty intervals or significance tests for the comparisons. This is a limit of the evidence, particularly for the smaller Spanglish test set.

A consistent ordering across datasets is meaningful evidence, but it does not replace uncertainty analysis within each evaluation. Nor does the precision of a printed percentage establish that equally small differences would be stable under another sample.

The strongest supported conclusion remains comparative and bounded: under the stated resources and evaluation setup, the learned combination has the highest reported overall accuracy. Claims about its expected advantage on new collections require additional evaluation.

What came after

The later citing works place the paper within a broader development of code-switched language processing. Their titles establish connections to representation learning, benchmarking, sentiment analysis, entity recognition, and surveys. The available descriptions do not establish the particular experiment or argument through which each work uses this paper. It is therefore important to distinguish a documented citation relationship from a claim that a later study adopted COMB4 or confirmed its results.

Alghamdi and colleagues’ pretrained-embedding study returns directly to grammatical tagging of code-switching data. Its title identifies pretrained word representations as the resource being leveraged. This connects naturally with the earlier paper’s proposal to enrich the combination features with distributional information. However, the title alone does not establish that the later work implements the earlier proposed feature set, retains the same architecture, or evaluates the same corpora.

GLUECoS moves the connection toward evaluation infrastructure. Its title identifies a benchmark for code-switched language processing. That is relevant to a central lesson of the tagging study: a method needs testing across more than one resource setting before a broad architectural claim becomes persuasive. The citation relationship does not, on its own, show which tagging systems or measurements GLUECoS includes, so no particular comparison with the earlier accuracies follows.

Chakravarthi and colleagues’ Tamil–English corpus study concerns corpus construction for sentiment analysis in mixed-language text. Its subject broadens the context from grammatical tagging to interpreting evaluative content. The earlier paper already motivates code-switching as a general obstacle for language technology, and this later title demonstrates another task and language pairing within the citing literature. It does not establish that the sentiment system relies on the earlier tagging method.

Aguilar and colleagues’ named-entity recognition work concerns another processing task affected by mixed-language input. The connection is thematic as well as bibliographic: the tagging paper explicitly names extraction-related applications among its motivations. The available record supports discussing the later work as code-switched entity recognition, but not describing its architecture, feature set, or dependence on grammatical tags.

Doğruöz and colleagues’ survey frames code-switching through linguistic and social perspectives on language technology. Its scope is broader than the mechanics of selecting a tagger. That broader framing is relevant because the earlier paper treats switching as ordinary multilingual communication instead of an arbitrary corruption of monolingual text. The citation indicates that the tagging study belongs to the literature considered by the survey; the available description does not establish the survey’s detailed assessment of its findings.

Hamed and colleagues’ Arabic survey places the connection specifically within Arabic language processing. Its title covers progress, difficulties, and future directions for code-switched Arabic. The earlier comparison of standard and Egyptian Arabic is directly relevant in subject, especially its concerns about shared spellings, resource composition, and the reuse of variety-specific analysers. The available information does not establish which conclusions the survey accepts or how it ranks later alternatives.

These links show the reach of the problem more clearly than they establish a single line of technical inheritance. The tagging paper offers a reusable experimental question: when several specialised resources exist, should they be pooled, routed, or combined through learning? Its contribution remains most useful when that question is carried forward with explicit data identities, compatible annotations, separate confidence checks, and evaluations that distinguish a successful architecture from an untested explanation of its success.

Cite

Cite as Fahad AlGhamdi, Giovanni Molina, Mona Diab, Thamar Solorio, Abdelati Hawwari, Victor Soto and Julia Hirschberg. 2016. Part of Speech Tagging for Code Switched Data. 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-5812

@inproceedings{alghamdi2016part,
  title = {{Part of Speech Tagging for Code Switched Data}},
  author = {Fahad AlGhamdi, Giovanni Molina, Mona Diab, Thamar Solorio, Abdelati Hawwari, Victor Soto and Julia Hirschberg},
  booktitle = {Proceedings of the Second Workshop on Computational Approaches to Code Switching},
  year = {2016},
  doi = {10.18653/v1/w16-5812},
  url = {https://doi.org/10.18653/v1/w16-5812}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/alghamdi-2016-part-speech-tagging-code-switched/