Perspectives in Research and Society · Vol. 2 No. 11 (2026)
Published November 26, 2026
Average sentiment error gives no indication of which label contributes most to a difference between classifiers. We held the predictions from 20 lexical classifiers fixed on 398 parallel NusaX test items in ten Indonesian local languages and recomputed expected error under alternative target class mixtures. The same classifier had the lower point estimate in each language across the four moderate mixtures studied. In five languages the fitted class errors allowed a ranking change elsewhere in the mixture space. The equally weighted ten-language averages crossed near 69% positive texts when the two other classes were equally common, with substantial sampling uncertainty. The fitted break-even share describes a change in the evaluation mixture with both classifiers held fixed.
A sentiment application may be built for a review stream that is mostly positive and later used on a feed that contains more neutral updates. Even with the same classifier, a reported error rate can change if errors are more frequent on one class than another. Choosing between classifiers adds a further issue. One model might recognize neutral text more often, while a second might classify positive texts more accurately. A held-out benchmark that combines these classes into a single score implicitly values those advantages in proportion to its label counts. Another expected mixture can therefore change the estimated difference. In a remote language or domain, test coverage of the intended mixture may be difficult to establish before the model is used.
Feng (2025) presents low-resource sentiment transfer in the setting of multilingual BERT adaptation to dialects and minority languages. The relevance here is the interpretation of performance once a model is under consideration for a target language. We ask whether a ranking of two simple lexical baselines is sensitive to the mixture of negative, neutral, and positive test items, with their predictions unchanged. In contrast to changes in training, this question can be addressed using documented pairs of prediction errors and a simple standardized estimate. Both classifiers here are fitted in each language separately, so the result assesses evaluation sensitivity with fixed estimators. An adaptation experiment could repeat the same calculation for transferred models once their target predictions were available.
Work on sentiment classification has long considered choices in text representation. Pang et al. (2002) compare machine-learning approaches for sentiment in reviews, while Wang and Manning (2012) document strong results from simple lexical baselines and bigram features. Character input can preserve information across related surface forms, as illustrated in a different modeling setup by Zhang et al. (2015). Our two baselines differ only in their feature representation and share the same class prediction rule. We expect some languages to show a consistent advantage for one representation under all considered mixtures. The contrasting prediction is that one classifier's class-specific advantage changes sign across the three labels, allowing the mixture of labels to determine the overall ranking. The important empirical conditions are the signs and sizes of the three differences, not a claim of superior performance for one representation in general.
We use the ten local-language partitions of NusaX, assembled by Winata et al. (2023) from translations of Indonesian sentiment examples. Their source materials include the SmSA sentiment data associated with the Indonesian benchmark documented by Wilie et al. (2020). The local-language files let us keep the same source items and assigned sentiment labels across several languages. Using a parallel dataset does not make the translations equivalent in difficulty. Research by Artetxe et al. (2020) and Volansky et al. (2015) explains how translation can leave language-specific artifacts that influence modeling and interpretation. Larger cross-language studies using translated benchmarks, such as Conneau et al. (2018) and Ponti et al. (2020), illustrate how shared semantic items support matched comparisons while still demanding caution about indigenous usage.
The source repository is pinned at commit 75b0be5d982348332509f296e10d9bf9cb66d60f. Its dataset documentation gives a Creative Commons Attribution ShareAlike license, and the official dataset card identifies version 4.0. We fetched the train, validation and test files for each local language on 23 November 2026 and recorded a hash for each file. The file schema contains a source item identifier, translated text, and a sentiment label. Within each split the identifiers are unique and both identifiers and labels align across all ten languages. The train, validation and test identifiers are disjoint. Each training set has 500 records, covering 192 negative, 119 neutral and 189 positive items. The 100 validation records per language were neither used as extra training data nor used to tune the two predefined models.
Texts are case-folded, normalized to Unicode NFC, and have URLs and at-mentions replaced by spaces. Runs of white space are then collapsed. A test identifier would be excluded everywhere if its text were empty or matched a training text after these transformations in any of the ten languages. No identifier met either criterion. We excluded every occurrence of exact duplicate test text within a language and removed the corresponding identifiers from every translation, resulting in two removed source items. The 398 held-out source items consist of 151 negative, 96 neutral and 151 positive labels. The final evaluation uses thirty summaries of within-class test errors per baseline, one for each language and class. It involves 3,980 language-by-item prediction pairs. The underlying unit for uncertainty is the shared source item, so this number does not express 3,980 independent test observations. No source text or identifier appears in the exported numerical results.
We fit one count-based multinomial naive Bayes classifier with word features and another with character features in each language. The word representation counts runs of Unicode alphabetic characters and adjacent word bigrams. The character representation counts overlapping strings of lengths three through five in the whole normalized text, with a space added at each end. Each vocabulary is learned only from that model's training texts, and absent features at test time make no likelihood contribution. The class prediction takes the largest sum of the empirical log class prior and the count-weighted log conditional probabilities. Every feature receives one pseudocount per class, with normalizing denominators formed over the training vocabulary. Ties are resolved in the fixed label order negative, neutral, positive. This simple estimator makes the two pipelines inspectable even where the vocabulary or class rates differ by language.
McCallum and Nigam (1998) distinguish naive Bayes formulations for documents, and Lewis (1998) reviews the independence assumptions behind their use in retrieval. The overlapping character features here are dependent by design. We use the estimates to obtain a deterministic ranking of class prediction scores for each text, without interpreting these scores as calibrated posterior probabilities. Rennie et al. (2003) show how deviations from the basic text model can motivate alternative estimators. We use the unmodified count-based method so class comparisons depend only on the feature family and the fixed prior. All ten language-specific pairs were fitted before applying the mixture scenarios, and none is retrained or recalibrated when the target evaluation weights change.
For a given class, the error difference is the fraction misclassified by the character model minus the fraction misclassified by the word model, using the same texts in both fractions. Overall error under a target mixture is the weighted average of the three conditional errors. We compute the character-minus-word difference for the retained test distribution, equal class shares, and each of the three settings in which one class has weight 60% and the two others have 20% each. Lower error favors a classifier. A negative difference therefore favors character features. These are illustrative prevalence scenarios rather than forecasts for use in the ten language communities. We hold unit mistakes equally costly. This differs from introducing a higher cost for a missed negative example. Fawcett (2006) and Hand (2009) discuss aspects of how operating or scoring choices affect comparisons, and Sokolova and Lapalme (2009) review the behavior of commonly used metrics. A separate analysis could introduce task-specific costs or per-class F1, whose interpretation would require different estimands.
The mixture calculation has the conditional invariance used to reason about label shift. It assumes that class-conditional error rates of the fixed predictors in the application population would equal those observed here. Saerens et al. (2002), Lipton et al. (2018), and Alexandari et al. (2020) study ways to estimate or adapt to changed class priors for trained classifiers. Forman (2005) considers the related problem of measuring prevalence when classifiers have errors. This study uses stated mixtures and leaves all class predictions untouched. It does not estimate the actual priors in an unobserved target dataset. Moreno-Torres et al. (2012) distinguish shifts in prevalence from other forms of distribution change. Covariate-shift approaches such as Sugiyama et al. (2006) would require additional input-level evidence, while class imbalance in training presents other decisions discussed by He and Garcia (2009). The present calculation is a sensitivity analysis for one part of the evaluation problem, conditional on the observed errors.
Figure 1. Both models score the same source IDs within each language before the target classes are reweighted. Panel B fixes negative and neutral share equal to each other and lets positive prevalence vary. The line is the ten-language mean difference. The band contains pointwise item-bootstrap intervals. The indicated crossing describes the fitted curve.
Table 1 gives the fitted scenario comparisons. In the retained benchmark mixture, character-based error averages 31.46% and word-based error averages 32.44%. The difference is −0.98 percentage points, with a 95% interval from −2.51 to 0.58. Neutral-heavy evaluation gives substantially higher error for both models and the largest average advantage for character features among the moderate scenarios. Positive-heavy evaluation gives lower error for both and their smallest average difference. Both patterns follow from the higher neutral error and the lower positive error in the class-specific estimates. Each locale's scenario ranking remains the same across all of the specified moderate weights, even when the magnitude of the gap changes. Character features have the lower point estimate in eight languages under every one of these settings. The two languages with the reverse sign are Balinese and Ngaju.
Table 1. Equally weighted ten-language mean error for alternative target label mixtures.
| Target mixture | Character error (%) | Word error (%) | Character minus word (pp) | Paired 95% interval (pp) |
|---|---|---|---|---|
| Retained test counts | 31.46 | 32.44 | −0.98 | [−2.51, 0.58] |
| Balanced | 37.03 | 38.34 | −1.30 | [−3.03, 0.41] |
| Negative-heavy | 33.13 | 34.47 | −1.34 | [−3.19, 0.50] |
| Neutral-heavy | 53.18 | 55.42 | −2.24 | [−4.78, 0.18] |
| Positive-heavy | 24.79 | 25.12 | −0.33 | [−1.65, 1.04] |
Table 1 note. Both classifiers use the same 398 parallel test IDs in each language. Resampling uses 6,000 draws within gold sentiment classes. At each replicate, the same sampled source IDs are used for both models and all languages. Estimates describe fixed fits and the stated target mixtures.
The largest potential difference across mixtures for a fixed language is obtained by inspecting its class-specific differences. A weighted average cannot fall outside the smallest and largest class difference, and those two endpoints can be attained by placing all weight on the corresponding classes. Five languages have estimated class contrasts of opposite signs. This makes a ranking reversal possible somewhere in the full mixture space on the fitted errors, even though none changes sign among the four moderate scenarios. It is a statement about the shape of the estimated surface. A pure-class endpoint is a mathematical boundary and need not resemble a plausible deployment population. In Madurese, for example, the character model has an 11.26-point advantage on negative examples and equal positive error. Increasing the positive share alone can shrink its estimated advantage to a tie. In Ngaju, the word model has lower estimated error on both polar classes and matches the character model on neutral texts. Their ordering is likewise stable on the fitted surface.
At the language-average level the negative-class error difference is −1.39 points, the neutral difference is −3.65, and the positive difference is +1.13. The illustrative curve in Figure 1 crosses zero at a fitted positive share of 69.11% when the other two shares are equal. The pointwise bootstrap intervals cover zero on the positive-heavy side of the curve. They also cover zero for each moderate evaluation setting in Table 1. We therefore have a measured example of a contrasting error pattern and a fitted break-even point, with insufficient precision to describe that threshold as a population switch. The procedure adapts the bootstrap of Efron (1979) to preserve both classifier pairing and translation pairing. It does not redraw the training datasets or generalize across a new sample of languages.
The difference between the average breakdown and the language-specific cases matters when selecting a comparison to report. The ten-language curve weights language differences equally, so its fitted break-even share is a property of that convention and the assumption of equal negative and neutral shares. A report for one language could use its own three errors and different shares. The resulting curve might have a different crossing or remain on one side of zero throughout. Likewise, the parallel construction pairs the estimates across languages without providing a frequency distribution for future language use. A corpus-level result weighted by expected text volumes would answer a different question and would require that distribution to be specified separately.
Real evaluations can experience shifts in topics, translation quality, annotation practices, and the prevalence of sentiments at the same time. Domain transfer methods from Daumé III (2007), Blitzer et al. (2007), and Glorot et al. (2011) address ways to account for some of these changes. Ben-David et al. (2010) supply theory for the relationship between domains. A model intended for a new language or collection could undergo a change in class-conditional errors even if its class weights stayed fixed. Methods and conclusions would then need an external evaluation of actual target texts. The separation made here is useful because it pinpoints how much of a comparison can move under prevalence assumptions alone, while leaving prediction changes for a model and data design that can actually test them.
The translation dependency further limits the interpretation to the defined NusaX experiment. Translated positive items might be easier than the range of positives found in an independently collected target stream. More generally, documenting the coverage of low-resource languages and genres matters for interpretation, as argued by Joshi et al. (2020). Ribeiro et al. (2020) examine targeted behavioral tests that make failures visible alongside overall benchmarks. An analogous follow-on comparison would add independently collected texts by class and preserve the class-specific differences in the report. For the released benchmark studied here, the moderate scenarios yield stable fitted rankings and noticeably different gaps. This distinction is a practical outcome in its own right. When the prediction data support only a narrow range of target mixtures, the achievable strength of any classifier recommendation should reflect the uncertainty in the conditional error estimates.
The two NusaX sentiment baselines produce a consistent ordering across the specified moderate label mixtures in every language. The same errors also imply feasible ranking changes under more extreme mixtures for five languages. The distinction becomes visible once the error difference is reported by class and applied to stated weights. Any model comparison for multilingual sentiment transfer can use this measurement as a transparent sensitivity check before interpreting a single overall score as the ranking for an unknown deployment stream.