---
title: "BnSentMix — paper by Alam et al. (2025) — summary and ideas"
description: "BnSentMix builds a Bengali-English sentiment benchmark with automated filtering, human annotation, and comparisons across classification…"
canonical: "https://research.elamur.ai/free/en/papers/alam-2025-bnsentmix-diverse-bengali-english-code/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/alam-2025-bnsentmix-diverse-bengali-english-code/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / BnSentMix: A Diverse Bengali-English Code-Mixed Dataset for Sentiment Analysis

# BnSentMix: A Diverse Bengali-English Code-Mixed Dataset for Sentiment Analysis

Paper · 2025 · Sadia Alam, Md Farhan Ishmam, Navid Hasin Alvee et al.

**Authors:** [Sadia Alam](https://md.research.elamur.ai/free/en/authors/sadia-alam/), [Md Farhan Ishmam](https://md.research.elamur.ai/free/en/authors/md-farhan-ishmam/), [Navid Hasin Alvee](https://md.research.elamur.ai/free/en/authors/navid-hasin-alvee/), [Md Shahnewaz Siddique](https://md.research.elamur.ai/free/en/authors/md-shahnewaz-siddique/), [Md Azam Hossain](https://md.research.elamur.ai/free/en/authors/md-azam-hossain/) and [Abu Raihan Mostofa Kamal](https://md.research.elamur.ai/free/en/authors/abu-raihan-mostofa-kamal/) · **Year:** 2025 · **Venue:** Proceedings of the First Workshop on Language Models for Low-Resource Languages · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the First Workshop on Language Models for Low-Resource Languages · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2025.loreslm-1.4/)
- [PDF](https://aclanthology.org/2025.loreslm-1.4.pdf)

## What it is about

BnSentMix builds a Bengali-English sentiment benchmark with automated filtering, human annotation, and comparisons across classification approaches. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

People do not always keep their languages separate when writing online. A comment may combine English words with Bengali expressed through the Latin alphabet, or attach a Bengali ending to an English word. Such writing creates a particular challenge for [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/): identifying whether a writer expresses approval, disapproval, neither, or a combination. Recognizing the alphabet is not enough to identify the language, and recognizing individual words is not enough to recover the opinion. BnSentMix addresses this problem by constructing a public Bengali-English sentiment dataset from several kinds of online interaction.

The dataset contains 20,000 samples collected from Facebook comments, YouTube comments, and product reviews on e-commerce platforms. Its annotation scheme distinguishes positive, negative, neutral, and mixed sentiment. The mixed category matters because a writer can praise one aspect of something while criticizing another; treating the whole message as neutral would lose that distinction. The authors begin with over 3 million pieces of user-generated writing, clean the material, and apply an automated filter intended to retain Bengali-English content. Their filtering procedure uses a separately trained word classifier and a threshold over its decisions. Among the approaches compared for this component, mBERT achieves detection accuracy of 94.56% and an F1 score of 0.9403.

Human [annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) follows filtering. Each retained sample receives independent judgments from different annotators, with disagreements sent to another annotator for resolution. The project employs 64 paid annotators and reports Cohen’s kappa of 0.86 on a repeated annotation exercise involving 250 samples. The final collection is divided into 14,000 training examples, 3,000 validation examples, and 3,000 test examples. The authors release the code and dataset under CC BY 4.0 and state that identifying personal information has been removed.

The experiments compare conventional classifiers, recurrent neural approaches, and pretrained transformer approaches. The paper highlights English BERT, reporting sentiment accuracy of 69.5% and F1 of 68.8%. Its detailed results support BERT as the strongest reported test F1 system, with a score of 0.688, but do not support the claim that it also has the highest test accuracy: XLM-RoBERTa and BanglaBERT each have accuracy of 0.698, while BERT has 0.695. This distinction matters because the contribution is a benchmark and a set of reference results, rather than evidence that a particular architecture uniformly solves the task.

BnSentMix makes realistic variation more accessible to research on [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/). Its value lies in bringing together different sources, retaining informal spelling, introducing a mixed-sentiment category, and documenting an automated collection component alongside human judgments. Its limits are equally consequential. Cleaning removes emojis and non-ASCII material, mixed sentiment accounts for only 9.2% of the dataset, and the experiments do not isolate how source diversity, filtering decisions, or individual linguistic phenomena affect sentiment performance. The resource establishes a useful testing ground, while leaving the causes of many successes and failures unresolved.

### Ideas worth borrowing

Separate collection decisions from task decisions. A system that decides whether text belongs in a corpus has a different responsibility from one that predicts the text’s sentiment. BnSentMix trains and evaluates a language-content filter before comparing sentiment classifiers. This separation makes it possible to inspect the collection mechanism independently, rather than treating every downstream error as a failure of sentiment interpretation. The same principle applies to document retrieval, specialized terminology collections, and domain-specific [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/).

Collect across communicative settings. Product reviews and social-media comments give writers different reasons to express opinions. Combining sources can broaden the kinds of language encountered, even when the target task stays the same. The reusable idea is to design a corpus around variation in communicative purpose, rather than merely collecting more examples from a convenient location. Such breadth should subsequently be checked through source-specific analysis; collection diversity alone does not establish generalization.

Represent conflicting evaluations explicitly. A text containing both praise and criticism is different from a text that expresses neither. Adding mixed sentiment prevents the annotation scheme from forcing that distinction into an unsuitable category. This idea extends to feedback analysis, document interpretation, and systems that must preserve disagreement within an account. The important design question is whether the output categories retain the distinctions needed by later reasoning.

Preserve realistic variation deliberately. The authors remove selected kinds of noise but leave typing and grammatical irregularities uncorrected. Their purpose is to avoid creating an artificially polished task. The broader lesson is to distinguish inconvenient variation from information that falls outside the intended scope. Normalization should have a stated purpose, and its consequences should be examined rather than assumed harmless.

Use independent judgments with explicit adjudication. Initial annotation and disagreement resolution are separate operations in BnSentMix. This provides a practical way to obtain a final label while acknowledging that interpretation can differ between readers. Agreement measurement adds another perspective: it asks how consistently the task can be performed, rather than only whether every record has a label. The approach transfers to linguistic analysis, evidence review, and rule validation.

Compare broad alternatives before explaining a winner. The benchmark includes simple classifiers alongside recurrent and transformer approaches. That breadth reveals both competitive conventional baselines and an unexpected advantage for English BERT on test F1. A useful engineering habit follows: test plausible alternatives before making assumptions from an architecture’s size, language coverage, or reputation. Explanations of why one approach wins still require controlled evidence.

Report the metric that supports the claim. BERT’s test F1 and test accuracy do not give the same ranking. Keeping those results separate prevents a broad statement about “best performance” from concealing a task-dependent tradeoff. This is useful wherever several measurements describe different aspects of success, especially with uneven label frequencies. A clear benchmark states what was measured, on which split, and what the chosen metric leaves unanswered.

### How Mova uses it

Mova is a small, transparent language system written in Rust. Its documented core parses English into dependency structures, reads those structures into frames, and maintains a world from which it answers questions with reasons. Bengali-English sentiment understanding is not established by that scope. The connections below are proposals assessed against Mova’s documented mechanisms; they do not claim that BnSentMix has already been incorporated or that any transfer has produced a measured benefit. Where the available evidence establishes a general mechanism but not this application, the status reflects that narrower distinction.

Idea: Separate corpus eligibility from semantic interpretation. Where: Data Filtering and Code-mix Detection Results. Area: data. Mova: частково є (tools/sources and tools/dictindex separate source discovery and eligibility from later dictionary admission). A Bengali-English collection route could retain a distinct record explaining why a sample entered the corpus, independently of any sentiment judgment. The paper supplies a concrete example of evaluating the upstream filter separately. Mova would still need to measure its own eligibility errors and their downstream effects.

Idea: Assemble evidence from different communicative settings. Where: Data Sourcing and Figure 3. Area: data. Mova: частково є (tools/dictindex stores source credits and source-domain metadata across configured corpora). A future sentiment collection could distinguish review language from conversational comments instead of flattening everything into an undifferentiated store. This could help reviewers notice source-specific vocabulary and interpretation habits. Whether broader collection improves Mova’s answers would require an evaluation designed around those sources.

Idea: Preserve opposing evaluations as opposing evaluations. Where: BnSentMix Dataset and Figure 1. Area: pragmatics. Mova: нове. Mova could represent approval and criticism attached to different aspects of an entity, while deriving a mixed judgment only when both are supported. This is a proposed extension; existing frames and world states do not establish sentiment composition of this kind. Why Mova: Preserving the conflict would let later reasoning explain an opinion without replacing it with a misleading neutral summary.

Idea: Give neutral and mixed different proof obligations. Where: BnSentMix Dataset. Area: reasoning. Mova: нове. A neutral decision could require that no supported evaluation was found, whereas a mixed decision could require evidence for evaluations with opposing polarity. These are proposed operational definitions, not rules demonstrated by the authors or capabilities established for Mova. Why Mova: Different evidence requirements would make two superficially similar output labels inspectable and reduce unexplained category choices.

Idea: Retain informal spelling when it belongs to the task. Where: Data Cleaning. Area: data. Mova: частково є (the English core and French-specific processing already distinguish linguistic handling from corpus preparation). Mova could preserve a source form alongside any normalized lookup form, allowing a dictionary worker to inspect naturally occurring variants. The paper motivates leaving spelling and grammar irregularities intact, but provides no isolated measurement of that choice. Mova should therefore test robustness rather than infer it from preservation alone.

Idea: Record what cleaning removes. Where: Algorithm 1 and Data Cleaning. Area: data provenance. Mova: частково є (tools/sources records provenance, while tools/dictindex retains exact source sentences and immutable source versions). A preprocessing record could identify whether punctuation was collapsed or non-ASCII content removed before analysis. This would extend existing source-bound practice to individual transformations. It would help explain failures caused by altered input without claiming that the paper itself supplies such transformation records.

Idea: Treat emojis as a scope decision rather than disposable noise. Where: Data Cleaning. Area: pragmatics. Mova: нове. The paper removes emojis, so it cannot establish their contribution to its sentiment results. Mova could instead preserve them in a separate observation channel and compare interpretation with and without that channel. Why Mova: A transparent system benefits from knowing whether a judgment depended on textual words alone or on additional expressive material.

Idea: Distinguish script from language. Where: Introduction and Code-Mixing in Bengali. Area: multilingual processing. Mova: нове. A future multilingual reader should avoid classifying every Latin-script token as English. BnSentMix makes that distinction central because Bengali words can be written using the same alphabet as English. This is a proposed extension beyond the assessed English core. Why Mova: Reliable dictionary lookup and language routing require evidence about language identity, not merely character appearance.

Idea: Represent language mixing inside a word. Where: Introduction and Figure 1. Area: morphology. Mova: частково є (en::derive and the documented morphology machinery provide explicit word-formation mechanisms). The paper’s Movietar example suggests a future analysis that preserves an English base and a Bengali possessive element within one written token. Existing derivation support does not establish this cross-language analysis. A controlled lexical or morphological extension would need appropriate Bengali evidence and its own regression checks.

Idea: Keep unstated material separate from observed tokens. Where: Introduction and Figure 1. Area: semantic representation. Mova: частково є (prag frames distinguish interpreted roles, and Frame::evid retains selected evidential distinctions). The paper notes that a fuller rendering can contain words absent from the original mixed text. Mova could mark any reconstructed relation as inferred rather than pretending that an explicit token supplied it. Existing evidential marking offers a relevant precedent, but does not demonstrate recovery of omitted Bengali-English material.

Idea: Distinguish target-language coverage from third-language exclusion. Where: Data Filtering. Area: evaluation. Mova: частково є (the hybrid-system contract retains unsupported or ambiguous requests instead of inventing an operation). A future language filter should separately explain evidence for Bengali, evidence for English, and evidence that another language is present. The paper identifies third-language contamination as a collection problem, but its displayed threshold is not a complete exclusion proof. Mova could turn those conditions into separately inspectable checks.

Idea: Make aggregation thresholds explicit. Where: Algorithm 2. Area: statistics. Mova: вже є (layers routing records coverage scores and a decision threshold). The paper aggregates word classifications before accepting text. Mova already has the general mechanism of an explicit threshold with a routing explanation. Applying the same discipline to corpus eligibility would make boundary decisions reviewable. The paper’s chosen threshold should not be imported as a universal setting; its suitability for another collection is unknown.

Idea: Test the threshold rather than merely documenting it. Where: Algorithm 2 and Code-mix Detection Results. Area: evaluation. Mova: частково є (self-play and other documented changes use held-out checks and regression gates). A future collection experiment could compare threshold choices while keeping the evaluation material fixed. BnSentMix supplies a threshold but no threshold ablation. Mova’s existing evaluation discipline is relevant, although no measured threshold study for this task is established.

Idea: Separate annotation from adjudication. Where: Data Annotation. Area: data quality. Mova: частково є (treeagree preserves rule-based disagreements, and tools/enrich separates proposals, review, staging, and admission). A sentiment annotation workflow could retain the original judgments and the adjudicated outcome as different records. The paper demonstrates why these stages have different purposes. Mova’s existing review boundaries support the general design, but they do not amount to an implemented human sentiment-annotation process.

Idea: Measure agreement before treating labels as stable evidence. Where: Data Annotation. Area: statistics. Mova: вже є (treeagree hint reports Cohen’s kappa and Fleiss’ kappa, with sentence-level resampling for its agreement analysis). BnSentMix reinforces the value of agreement reporting for interpretive tasks. Mova already has relevant statistics for parser witnesses. Extending them to sentiment annotation would require defining the annotation unit, annotator pairing, and sampling procedure instead of transferring a reported agreement value across tasks.

Idea: Examine the categories hidden by aggregate agreement. Where: Data Annotation and Limitations. Area: evaluation. Mova: нове. Mova could report disagreement patterns separately for mixed, neutral, positive, and negative judgments when developing a sentiment task. The authors’ aggregate kappa does not show which distinctions caused difficulty. Why Mova: Category-level disagreement would help determine whether a weak rule reflects a difficult linguistic distinction, insufficient evidence, or an unstable annotation convention.

Idea: Audit rare categories separately. Where: Limitations and Figure 4. Area: evaluation. Mova: частково є (prag evaluation already reports behavior by field and confidence grouping). A future sentiment evaluation could expose mixed-category errors instead of allowing common labels to dominate the report. The paper identifies mixed-sentiment scarcity as a limitation but does not provide the needed category analysis. Existing detailed evaluation is a useful foundation, not evidence that this specific audit has been built.

Idea: Keep inexpensive reference approaches in the comparison. Where: Baseline Models and Machine Learning Models. Area: engineering evaluation. Mova: частково є (the native core already uses explicit rules, learned parameters, and perceptron methods). BnSentMix motivates evaluating a transparent statistical baseline before adopting a more elaborate component. For Mova this could mean comparing dictionary features and explicit composition rules with a learned classifier. The benchmark does not establish that Mova’s preferred mechanisms would achieve comparable sentiment performance.

Idea: Test language specialization empirically. Where: Transformer-based Models and Table 4. Area: evaluation. Mova: частково є (the English and French paths have language-specific processing and separate measurements). A component’s advertised language coverage should not substitute for testing on the actual writing form. The paper’s results make this especially clear for romanized Bengali mixed with English. Mova could use matched evaluation sets to compare routing and lexical coverage, without assuming that a language-specific component must perform best.

Idea: Evaluate upstream success and downstream success separately. Where: Code-mix Detection Results and Performance Evaluation. Area: evaluation. Mova: вже є (docs/hybrid-system.md distinguishes transport success, admitted observations, and task outcomes). Successful filtering does not establish correct sentiment interpretation, just as a successful parse does not establish intended-task understanding. Mova already states this separation at its capability boundaries. A corpus experiment should preserve it by reporting detection results and semantic-task results as different claims.

Idea: Keep validation and test claims distinct. Where: Dataset Statistics and Table 4. Area: evaluation. Mova: вже є (the documented assessment protocol separates development decisions from release test access). BnSentMix’s split-specific results demonstrate why a headline needs to identify the evaluated split. Mova should continue associating every improvement claim with its selection procedure and held-out evidence. The relevant transfer is reporting discipline, not a new training mechanism.

Idea: Resolve metric-dependent rankings explicitly. Where: Table 4 and Performance Evaluation. Area: statistics. Mova: частково є (en rules-audit reports several parsing and tagging measures, while prag evaluation provides field-specific diagnostics). Mova could identify the selected primary metric and preserve alternative rankings in a benchmark receipt. BnSentMix’s accuracy and F1 results show why “best” needs qualification. No additional sentiment result for Mova follows from that observation.

Idea: Preserve metric aggregation definitions. Where: Evaluation Metrics and Table 4. Area: statistics. Mova: нове. A future multicategory report should state how F1 is combined across categories and how class frequencies affect the result. The paper names the metric but leaves this aspect insufficiently specified. Why Mova: Explicit aggregation would make benchmark results reproducible and prevent apparent improvements caused by a change in reporting convention.

Idea: Use learning curves as diagnostics, not causal explanations. Where: Training Loss Analysis and Figure 5. Area: analysis. Mova: частково є (training and self-play retain experiment journals and gate proposed changes). Mova could keep learning trajectories with the corresponding held-out outcomes when adjusting learned parameters. The paper’s training-loss discussion can suggest where to inspect further, but a falling training loss does not demonstrate better unseen performance. Existing journals provide a place to retain that distinction.

Idea: Treat explanations of an architectural advantage as hypotheses. Where: Recurrent Neural Networks and Transformer-based Models. Area: scientific reasoning. Mova: вже є (the source-bound evidence contract distinguishes observations, proposals, and established application scope). The authors suggest explanations involving long dependencies and pretraining language composition. Mova can preserve such explanations as candidates for investigation rather than admitting them as demonstrated facts. This follows its existing distinction between a recorded result and a justified causal claim.

Idea: Check whether source diversity survives evaluation. Where: Data Sourcing and Dataset Statistics. Area: evaluation design. Mova: нове. A future experiment could reserve a source for evaluation or report performance separately by source, while maintaining explicit provenance. The paper combines sources but does not report this kind of generalization test. Why Mova: Such a check would show whether a rule or dictionary addition travels across communicative settings rather than fitting one collection.

Idea: Bind preprocessing and annotation to a source version. Where: Data Cleaning, Data Annotation, and Code & Data Availability. Area: data provenance. Mova: вже є (tools/dictindex requires immutable source versions and new epochs for changed indexed material; tools/enrich checks source fingerprints). BnSentMix’s multistage construction illustrates why a released label should refer to the exact text that was judged. Mova already has mechanisms for preserving that relationship in its source-bound workflows, although no BnSentMix import is established.

Idea: Keep personal-information removal reviewable. Where: Code & Data Availability. Area: data governance. Mova: частково є (tools/sources and tools/dictindex retain provenance and source-specific rights information). If Mova uses public comments as linguistic evidence, it could record that privacy screening occurred without retaining the removed identifiers. The authors state that identifying information was removed, but do not establish a procedure reusable without further design. Provenance tracking alone does not prove successful anonymization.

Idea: Treat annotation working conditions as part of data quality. Where: Ethical Statement. Area: annotation practice. Mova: нове. A future human review process could document compensation, workload expectations, breaks, and disagreement handling alongside the resulting labels. The paper describes such arrangements but does not isolate their effect on agreement. Why Mova: Transparent review conditions would make the production of human evidence easier to assess, while avoiding unsupported claims about how much any particular arrangement improves accuracy.

Idea: Retain unresolved implementation details as unresolved. Where: Algorithms 1 and 2, Dataset Statistics, and Table 4. Area: reproducibility. Mova: вже є (source-bound groupants and experimental worker contracts retain assumptions, failures, and explicit implementation limits). The paper contains details that do not fully align, including length handling and the accuracy ranking. Mova’s relevant practice is to preserve these discrepancies rather than silently invent a harmonized procedure. This supports reviewable implementation without asserting more than the source establishes.

### The problem and its context

#### The writing form is part of the difficulty

The paper concerns a familiar kind of multilingual writing: people draw on different languages while composing a single message. Its introduction distinguishes switching between words inside a sentence from mixing elements within a word. These are not interchangeable challenges. Sentence-internal switching requires an interpreter to connect material from different languages. Word-internal mixing additionally requires it to identify meaningful pieces that do not necessarily coincide with spaces.

Bengali-English writing adds another complication because Bengali may appear in romanized form. A reader therefore encounters English and Bengali expressed through the same alphabet. A language-identification procedure cannot simply associate Latin characters with English and Bengali characters with Bengali. The paper places this issue within [multilingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/), but its target is a particular written practice rather than multilingual text in general.

The example Movietar captures the distinction clearly. The authors analyze the ending tar as contributing a possessive meaning to an English base. The surface item is a single written word, yet its interpretation involves elements associated with different languages. A collection method that relies on whole-word membership in a conventional English list could misread its composition. A sentiment system might also fail if it recognizes the English base while overlooking what the attached material contributes.

The authors further note that a fuller rendering can contain material not explicitly present in the mixed expression. This observation points beyond vocabulary coverage. Understanding may require recovering a relation that readers infer rather than read directly from an overt word. The paper does not formalize a general account of such inference, but the example explains why a cleaned sequence of recognizable tokens does not automatically provide a complete interpretation.

#### Why sentiment analysis needs a suitable collection

Sentiment analysis is framed as useful for applications involving customer responses, public discussion, and online opinion. These uses depend on interpreting the way people actually write. A system evaluated on carefully separated languages or standardized prose may face a different task when applied to informal mixed-language comments.

The authors describe substantial prior research on sentiment in individual languages. Their related-work discussion includes English, Russian, German, and Norwegian, as well as Indian-language and Bengali studies. They also identify multilingual sentiment research. The gap they emphasize is therefore not a general absence of sentiment analysis, nor an absence of Bengali research. It is the lack of a sufficiently broad and accessible benchmark for Bengali-English mixed writing.

Their principal Bengali comparison is the dataset attributed to Mandal and colleagues. The comparison table describes it as having 5k samples, sentiment annotation with 3 labels, and material from a single source. The authors also identify its lack of public availability as a barrier. A private collection can support an individual experiment, but makes it harder for others to repeat a comparison under matching conditions.

BnSentMix responds through scale, public release, additional source types, and an expanded sentiment scheme. These are related but distinct contributions. More examples can support training; more sources can broaden observed usage; public access can enable comparisons; and a mixed category can preserve a distinction that the other categories do not express. None of these properties, on its own, guarantees that the final collection represents every important Bengali-English setting.

#### What earlier work had attempted

The paper places sentiment alongside other tasks studied on code-mixed material. Its discussion includes language identification and [part-of-speech tagging](https://md.research.elamur.ai/free/en/topics/part-of-speech-tagging/), as well as translation and emotion recognition. It also mentions research on hate speech and speech synthesis. These references establish that mixed-language text is not treated as a concern confined to sentiment.

The authors describe earlier use of augmentation and specialized word representations. In the Bengali discussion, they mention work that uses back-transliteration, converting romanized Bengali into Bengali script before further processing. They also cite sentiment experiments using small private collections or multilingual settings. BnSentMix takes another route: it builds a task-specific public collection while working with cleaned Latin-script material.

For collection, the authors report difficulty with existing identification tools, including langdetect and a Bengali phonetic parser. Their account attributes the difficulty to spelling variation and the intricacy of mixed forms. This motivates their learned filtering component. The paper does not provide a matched numerical comparison against those tools, so their reported limitations should be understood as motivation instead of a quantified demonstration of how much the new filter improves over each alternative.

The resulting contribution is primarily infrastructural. It makes a particular writing form easier to investigate with a shared task and common data. The benchmark comparisons establish starting points, while the corpus construction describes how the authors move from a large pool of public writing to a smaller labeled resource.

### The method, step by step

#### From public writing to a labeled benchmark

The construction process has several stages with different responsibilities. Collection obtains candidate material. Cleaning changes its form and removes material outside the chosen scope. Filtering tries to determine whether it belongs to the target language setting. Annotation supplies the sentiment judgment. Evaluation then asks how well classifiers can reproduce those judgments on held-out examples.

Building and evaluating BnSentMix The steps in order.

These stages should not be understood as a single measurement. The detector’s accuracy concerns its own classification task. Annotator agreement concerns consistency in human judgment. Sentiment test performance concerns prediction on the final dataset. Each stage supports a different claim about the resource.

#### Collecting candidate material

The authors gather writing from YouTube, Facebook, and e-commerce websites. They use the YouTube API for comments, Facepager for Facebook material, and Selenium for product reviews. Facebook collection covers public posts, pages, and groups. The initial pool contains over 3 million samples.

The sources are selected for active participation and varied linguistic contributions. The practical motivation is straightforward: online opinion appears in different settings, and collecting only one setting would restrict what the benchmark contains. Nevertheless, the paper does not specify an evaluation in which one platform is withheld from training. Its multisource construction should therefore be understood as broader collection coverage, not demonstrated robustness to an unfamiliar platform.

The paper illustrates source composition in Figure 3. It does not provide a complete textual account of the individual source quantities. As a consequence, the overall collection size is available, but a precise source-by-source numerical reconstruction is not supported by the accompanying description.

#### Cleaning while leaving informal language intact

The cleaning procedure excludes samples containing external URLs and describes removing texts with four words or fewer. It also removes unwanted characters, non-ASCII content, repeated whitespace, and expressive material such as emojis. Repeated punctuation is collapsed rather than retained in its original intensity.

Algorithm 1 gives a more operational description. It lowercases text, retains selected punctuation marks while removing other special characters, reduces repeated punctuation, removes non-ASCII characters, and simplifies spacing. It then capitalizes the initial letter following a period. The retained punctuation includes question marks, commas, exclamation marks, and periods.

The authors explicitly leave typing and grammatical errors uncorrected. Their intention is that the resulting task should still resemble practical informal writing. This creates an important distinction: the collection is normalized, but it is not converted into fully standardized prose. Some variation survives by design, while other potentially meaningful signals are removed.

The prose and algorithm do not align perfectly in how they describe capitalization. The prose presents a distinction concerning English words at sentence beginnings, whereas the algorithm applies lowercasing to the input generally and then restores capitalization after periods. A faithful implementation would need to choose an exact operational rule and document it. The paper’s overall intent is clearer than every detail of its specification.

There is also a length inconsistency. The cleaning discussion excludes texts with four words or fewer, while the dataset statistics report a minimum word count of 4. Algorithm 2 rejects a candidate only when its processed word count is below 4. These statements do not establish one unambiguous length boundary. They should remain visible as a reproducibility limitation instead of being reconciled through an invented explanation.

#### Training a word-level collection filter

The filtering component begins with a separate collection of 100k words. The authors combine material from Dakshina, an English word-frequency dataset hosted on Kaggle, and Mandal and Singh’s language-identification work. They describe the collection as balancing Bengali, English, and Bengali-English mixed words.

The purpose is to recognize relevant language material in spite of romanization and mixed word formation. This is a different task from deciding whether a sentence expresses a positive or negative opinion. Its supervision concerns the language-related status of words, not their sentiment.

The authors compare mBERT, XLM-RoBERTa, and BanglishBERT for this component. Each pretrained approach undergoes [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) on the detection data. The strongest reported detector is then used within the corpus-filtering procedure.

The description combines a collection containing several kinds of words with a displayed algorithm that uses binary output labels. Algorithm 2 increments its Bengali-related counter when the predicted class is 1. The exact mapping from the described word categories to that binary target is not fully explained. This matters because “contains Bengali material,” “is Bengali,” and “is itself code-mixed” are related but different classification targets.

#### Turning word decisions into a text decision

Algorithm 2 processes a list of sentences. It splits each sentence into words, preprocesses each word, and ignores words that become empty. For every surviving word, it increases a total counter and obtains the classifier’s preferred output. A second counter increases when that output is the designated class.

The aggregation rule is:

```
b_percent = b_count / w_count
```

Here, b_percent is the share of processed words assigned to the designated Bengali-related class. The quantity b_count counts those assignments, while w_count counts all processed words that survive preprocessing. These are predictions produced by the detector, not independently verified linguistic counts.

After the minimum-length check, the algorithm accepts the candidate when b_percent reaches at least 0.3. Otherwise it rejects it. The decision is therefore a threshold over accumulated word-level evidence, rather than a single sentence-level prediction.

The displayed procedure has an important boundary. It does not explicitly require evidence of English as well as Bengali. A high proportion of Bengali-classified words can satisfy the threshold without proving that both languages are present. The prose says that purely romanized Bengali and third-language material are concerns, but the visible aggregation rule does not independently establish that those concerns have been eliminated.

The authors also state that sentences containing words outside Bengali and English are excluded, giving Hindi as an example. The displayed algorithm does not show a separate third-language branch. This leaves the exact implementation of that exclusion insufficiently specified.

#### Defining and assigning sentiment

The final sentiment scheme uses positive, negative, neutral, and mixed categories. Mixed sentiment is intended for a message whose different parts communicate opposing evaluations. Its inclusion recognizes that the absence of a single overall polarity is not equivalent to the absence of sentiment.

Each sample receives independent annotations from different people. If those judgments differ, another annotator determines the final label. The paper describes this as a way to obtain an interpretation that is not tied solely to one reader’s reaction.

The project recruits 64 annotators. They have at least a high-school education, described as Grade 12 equivalence, and familiarity with digital communication. They are paid hourly. The ethical discussion also states that compensation exceeds the regional minimum wage and describes workload arrangements, scheduled breaks, and refreshments.

For agreement assessment, annotators label the same 250 samples again. The authors report Cohen’s kappa of 0.86. Kappa is an agreement statistic that accounts for agreement expected from the label distributions, rather than reporting only how frequently judgments coincide. The paper presents this value as evidence of substantial agreement, but gives limited information about how the many annotators were paired or combined for the calculation.

#### Preparing the benchmark experiments

The final dataset uses a [70 : 15 : 15] division across training, validation, and testing. The corresponding sample counts are 14,000, 3,000, and 3,000. Training supplies examples from which the classifiers learn. Validation provides a separate development reference. The test split supplies the final reported comparison.

The benchmark includes 11 approaches spanning conventional classification, recurrent processing, and pretrained transformers. The paper reports a training batch size of 32 and use of the Adam optimizer. Its stated learning rate is 1E−5 for Logistic Regression, RNN, and LSTM, while the BERT-family setting is 1.5E−6.

Computation uses NVIDIA Tesla P100 hardware with 16GB of memory. Epoch durations are reported as ranging from 8 to 13 minutes. The authors say that most hyper-parameters follow defaults and that pretrained implementations come from Huggingface. However, the conventional classifiers’ text features and several architecture-specific settings are not described in enough detail to reconstruct every comparison from the article alone.

### Experiments and results

#### What the collection contains

The released collection has 20,000 unique sentences and a unique word count of 37,734. The word-count statistics give a mean of 11.65 and a maximum of 368. Character lengths have a mean of 62.77, with a maximum of 1985 and a minimum of 14.

These statistics show that the benchmark includes substantial variation in text length. They do not reveal how difficult the longer items are, whether length correlates with mixed sentiment, or whether different platforms contribute different length patterns. Those would require analyses beyond the reported descriptive statistics.

Figure 4 presents the sentiment composition. The numerical class proportion emphasized in the limitations is mixed sentiment at 9.2%. This is important because a classifier can perform reasonably on common labels while remaining weak on the category introduced to capture internally conflicting opinions.

The paper’s evaluation uses accuracy and F1. Accuracy measures how frequently the predicted category matches the reference category. F1 combines precision and recall, which describe different aspects of prediction quality. In a multicategory setting, however, the way these quantities are averaged matters. The paper does not clearly identify the averaging convention for its aggregate F1 values.

#### The collection filter

The language-detection comparison favors mBERT on both reported measures. Its F1 is 0.9403. XLM-RoBERTa has F1 of 0.8985, while BanglishBERT has 0.8961. The accuracy comparison is shown below.

Bengali-English detection accuracy on the detection evaluation mBERT leads the reported detection comparison.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| XLM-RoBERTa | 89.60 |
| BanglishBERT | 90.56 |
| mBERT (this paper) | 94.56 |

The paper interprets this result as evidence that mBERT handles the target language variation effectively. That interpretation is plausible within the evaluated task, but the experiment does not isolate which property produces the advantage. It does not separately measure intra-word mixing, spelling variation, or third-language contamination.

The detection evaluation is also not an end-to-end audit of the entire collected pool. The paper does not report the composition of every rejected group or a detailed human examination of the final filter’s false acceptances and false rejections. Its reported accuracy supports a component comparison; it should not be stretched into proof that every retained comment belongs to the intended language setting.

#### Sentiment classification on the test split

The test results place the strongest transformer approaches relatively close together on aggregate accuracy, while the basic recurrent approach performs much worse. The following chart retains the paper’s decimal accuracy values.

BnSentMix test accuracy across selected baselines The highlighted BERT setting does not have the highest test accuracy.

**The numbers**

| System or setting | accuracy |
| --- | --- |
| RNN | 0.401 |
| SVM | 0.660 |
| Logistic Regression | 0.667 |
| LSTM | 0.670 |
| DistilBERT | 0.672 |
| BanglishBERT | 0.686 |
| mBERT | 0.694 |
| BERT (this paper) | 0.695 |
| XLM-RoBERTa | 0.698 |
| BanglaBERT | 0.698 |

The star identifies the setting highlighted by the paper, rather than overriding the ranking visible in the chart. The authors describe BERT as strongest on accuracy and F1, but the test-accuracy column does not support the accuracy part of that statement. This is a reporting discrepancy, not a reason to discard the benchmark.

The test F1 ranking does favor BERT. Its score is 0.688, compared with 0.684 for mBERT. XLM-RoBERTa and BanglaBERT each have 0.669, while BanglishBERT also has 0.669. DistilBERT reaches 0.668.

The difference in ranking illustrates why the metric definition matters. A system can match a larger proportion of labels overall while producing a less favorable balance under the reported F1 calculation. Without a clear averaging specification and category-level results, the detailed source of that difference remains uncertain.

BERT’s test precision is 0.683 and its reported recall is 0.694. The latter is not identical to its listed accuracy of 0.695. The article does not explain that small internal discrepancy. It reinforces the need to preserve the table’s measures as written rather than assuming that every column follows an unstated common calculation.

#### Conventional and recurrent baselines

Among the conventional classifiers, Random Forest has test accuracy of 0.648 and F1 of 0.641. Logistic Regression has F1 of 0.639, while SVM has 0.648. These are useful reference points because the benchmark does not restrict comparison to elaborate pretrained systems.

The authors suggest that SVM performs comparably to BanglishBERT. That is a qualitative characterization of their results, not an exact equality. The test values favor BanglishBERT on both accuracy and F1. The practical point is that a conventional classifier remains a meaningful baseline; the paper does not provide runtime or memory comparisons establishing a complete resource-performance tradeoff.

The recurrent comparison is more pronounced. RNN has test F1 of 0.375, whereas LSTM has 0.663. The authors attribute the weaker RNN result to difficulties involving long dependencies and gradient behavior. Those mechanisms are offered as an explanation, but the experiment does not vary dependency length or measure gradient behavior directly.

LSTM’s result also warns against treating all recurrent approaches as interchangeable. The benchmark contains a weak basic recurrent baseline and a substantially stronger gated recurrent alternative. The paper establishes the observed performance distinction under its settings, while leaving detailed architectural and optimization causes unresolved.

#### Validation and learning behavior

On validation, XLM-RoBERTa and mBERT each have accuracy of 0.726, while BERT has 0.727. BERT’s validation F1 is 0.717; the corresponding mBERT value is 0.719. Thus even before considering the test split, the strongest setting depends on the measure being discussed.

Figure 5 tracks training loss across 15 epochs. The authors report that the approaches generally settle before the final epoch, with LSTM showing some indication that further training could help. They also describe most BERT-family approaches as settling relatively early, with DistilBERT behaving differently.

Their practical recommendation is that 5-8 epochs are suitable for many of these settings to limit overfitting. The figure supports discussion of training dynamics, but it does not by itself identify the checkpoint with the best unseen performance. Training loss describes fit to training data; the relationship to validation and test behavior needs separate evidence.

### What the ablations show

The paper reports no controlled ablation that isolates the contribution of a corpus-construction choice or a specific linguistic feature.

#### Architecture comparisons are informative but not isolating

The benchmark’s broad comparison is useful because it establishes that the task behaves differently under different approaches. English BERT leads on reported test F1, mBERT is close on that measure, and the simple recurrent baseline is much weaker than LSTM. These findings provide practical starting points for later experiments.

They do not establish why those differences arise. The systems differ in pretraining, architecture, vocabulary handling, and potentially other settings. A comparison in which several properties change together cannot identify which property causes the observed ranking.

The authors hypothesize that the limited representation of Bengali in multilingual pretraining reduces its benefit. They also suggest that English pretraining helps with English material in the mixed text. These are possible interpretations of the benchmark, but the paper does not test them by changing Bengali exposure while holding the rest of the system fixed.

Likewise, the RNN explanation invokes long-range dependencies and gradient difficulties without a targeted experiment. The appropriate conclusion is narrower: LSTM performs better under the reported setup. The benchmark does not independently measure the proposed mechanism.

#### The filtering comparison leaves the pipeline open

The detector experiment compares alternative pretrained approaches for the same general collection responsibility. It shows that the mBERT setting performs best on the reported detection evaluation. That is a meaningful controlled comparison at the level of component selection.

However, there is no reported experiment that removes the filter and measures the resulting sentiment collection, or that compares different aggregation thresholds. There is also no isolated test of whether whole-sentence classification would outperform the word-based procedure. The selected filter is evaluated, but the entire design is not decomposed into contributions.

This distinction matters because a collection filter changes the population that reaches annotation. A conservative decision rule could improve apparent cleanliness while excluding unusual valid examples. A permissive rule could increase coverage while admitting unwanted material. Detection accuracy alone does not describe all of these consequences.

#### The dataset choices remain hypotheses about usefulness

The authors motivate multiple sources as a way to obtain diverse language. Yet they do not compare a single-source collection with a matched multisource collection. As a result, the paper establishes that the dataset was assembled broadly, not the size of a performance benefit caused by that breadth.

The mixed label is similarly well motivated but not evaluated against an alternative annotation scheme. There is no experiment showing how the same items behave when mixed sentiment is collapsed into another category. Its value is conceptual and practical: it retains an intended distinction. The reported results do not quantify the benefit of that decision.

Leaving spelling errors untouched also lacks an isolated comparison. The authors’ robustness motivation is reasonable, but there is no matched experiment against corrected text. The paper therefore offers several useful design decisions whose individual effects remain unmeasured.

#### Learning curves provide a different kind of analysis

The training-loss figure adds temporal information instead of a structural ablation. It shows whether fitting continues and whether optimization appears to settle within the observed training period. That helps identify candidates for further investigation.

It cannot show which language phenomenon has been learned, why an error persists, or whether a lower loss improves rare-category recognition. Those questions require error analysis, category-level reporting, or targeted evaluation sets. The paper’s own call for further sentiment-specific error analysis is consistent with this remaining gap.

### Limitations

#### Limitations explicitly acknowledged by the authors

The authors identify class imbalance as a limitation. Mixed sentiment represents 9.2% of the collection, which can make that category harder to learn and can obscure its performance within an aggregate result. They recommend more detailed error analysis by sentiment label.

This is particularly significant because mixed sentiment is one of the dataset’s distinguishing design choices. Adding a category makes the task better aligned with certain messages, but does not ensure that the resulting benchmark has enough examples to evaluate that distinction thoroughly. The paper does not provide a mixed-category score that resolves the concern.

The authors also acknowledge that an annotator’s own sentiment can influence labeling. Independent judgments and adjudication reduce reliance on a single reader, but do not eliminate shared interpretation habits or systematic bias. The agreement exercise supplies evidence of consistency, not proof of an objective sentiment label for every message.

Their ethical statement addresses working conditions through compensation and limits on annotation burden. These are relevant descriptions of the annotation process. They are not accompanied by an experiment measuring how those arrangements affect label quality, so no quantitative benefit should be attributed to them.

#### The benchmark covers a selected form of online language

A careful reader should distinguish naturally sourced writing from unmodified writing. The collection originates in online communication, but cleaning removes non-ASCII material and emojis. It also collapses repeated punctuation. The resulting benchmark therefore does not preserve every signal available in the original message.

This matters for sentiment because expressive meaning can be carried by more than ordinary words. The paper does not measure how often cleaning changes a message’s interpretation. Its results apply to the cleaned representation, not automatically to the full range of original platform content.

The language scope is also restricted. The authors aim to exclude languages outside Bengali and English. A system evaluated on this collection is not thereby demonstrated to handle messages that mix those languages with additional ones. The related-work discussion includes other multilingual settings, but those references do not expand the scope of BnSentMix’s own evaluation.

The sources provide variety without establishing population representativeness. The paper does not demonstrate balanced coverage of all communities, topics, or varieties of Bengali-English writing. Nor does it report a temporal or platform-held-out test. Claims about performance on future or differently sourced comments would need further evidence.

#### Several construction details remain underdetermined

The detector’s training collection and its displayed binary prediction target are not connected in full detail. The article describes several word categories but does not explain their exact mapping to the algorithm’s output classes. It also does not clearly identify the detection evaluation’s split construction.

At sentence level, the threshold rule checks a predicted Bengali-related proportion without explicitly checking that English is present. The prose’s concern with purely romanized Bengali is therefore not completely resolved by the displayed procedure. The same applies to third-language exclusion, which is stated but not shown as a separate algorithmic operation.

The minimum-length rules are inconsistent across the cleaning discussion, filtering algorithm, and reported dataset minimum. An implementation could reasonably be built from one of those descriptions, but the article does not establish which exact boundary generated every released item.

These issues do not invalidate the existence of the resource or its reported baseline results. They limit how confidently a reader can reconstruct the collection process from the paper alone. A reproducible pipeline requires the operational decisions to agree, especially when those decisions determine what data survives.

#### The sentiment comparison does not settle all performance questions

The paper does not clearly specify how multicategory F1 is aggregated. Since the mixed category is relatively scarce, that missing detail affects interpretation. Different aggregation choices can emphasize common examples or give categories more equal influence.

No per-category precision, recall, or F1 results are reported in the main comparison. A strong aggregate score therefore does not establish competence on mixed sentiment, nor does it show whether neutral and mixed are frequently confused. The missing category analysis is more consequential than a small change in overall ranking.

The benchmark also lacks reported uncertainty estimates or a repeated-run analysis of its headline scores. It does not establish that the differences among the strongest settings are statistically reliable. The phrase “best performance” should therefore describe the listed point estimates under the reported setup, with the accuracy discrepancy explicitly preserved.

The conventional baselines are not fully specified in terms of input features and all training choices. The statement that most settings follow defaults helps describe the implementation approach, but defaults depend on the selected implementation. Without more detail, the paper’s article-level description is insufficient for exact reconstruction of every baseline.

#### Public release is valuable without proving every downstream use

The authors state that code and data are publicly available under CC BY 4.0. They also state that private information and personal identifiers have been removed. The paper does not provide a detailed audit of that removal procedure, so it should be reported as an author statement instead of an independently established guarantee.

Finally, sentiment annotation does not supply labels for hate speech, offensiveness, or abuse. The conclusion proposes those as research directions for code-mixed text. A researcher could investigate them using related collection methods, but would need appropriate task definitions and supervision. The existence of sentiment labels does not make those distinct judgments interchangeable.

### What came after

The later citation record places BnSentMix within broader discussion of mixed-language processing and alongside work on disfluent speech and explainable hate-speech detection. The available descriptions identify the citing works and their subjects, but do not establish which components of BnSentMix they reused. It would therefore be inaccurate to claim that they adopted its filtering algorithm, trained on its labels, or improved its benchmark scores without additional evidence.

[Beyond Monolingual Assumptions](https://md.research.elamur.ai/free/en/papers/sheth-2026-beyond-monolingual-assumptions-survey-code/) is a 2026 survey whose title places code-switched processing within the era of large language systems and across modalities. Its citation positions BnSentMix within a wider account of language mixing. The connection is meaningful at that level: BnSentMix supplies a concrete written-language benchmark. The citation record does not reveal the survey’s assessment of its construction choices or results.

[Bengali-English and Hindi-English Code Mixed Speech Data with Disfluencies](https://md.research.elamur.ai/free/en/papers/mitra-2026-bengali-english-hindi-english-code/) addresses a related but different kind of data. Its title identifies spoken language, language mixing, and disfluencies as central concerns. BnSentMix concerns cleaned written comments and reviews, so the relationship should not be described as a direct replication. The later work broadens the surrounding research setting towards speech, while the exact role of the BnSentMix citation remains unspecified.

[From LLM Prompts to Acoustic Baselines](https://md.research.elamur.ai/free/en/papers/mitra-2026-llm-prompts-acoustic-baselines-scalable/) is also listed in 2026. Its title describes a scalable pipeline for under-resourced, disfluent, mixed-language speech. This makes it relevant to the general problem of constructing usable resources where conventional language assumptions are inadequate. However, the available citation information does not establish whether its pipeline borrows BnSentMix’s word-level filtering, annotation scheme, or multisource collection design.

[BanHADEX](https://md.research.elamur.ai/free/en/papers/raquib-2026-banhadex-explainable-hate-speech-detection/) concerns explainable hate-speech detection in Bangla using human-annotated explanations. Its subject connects with the original paper’s suggestion that code-mixed research could extend beyond sentiment. Nonetheless, a citation and a thematic relationship are not evidence that BanHADEX was built from BnSentMix or directly implements that suggestion. Its target judgment is different, and the supplied later-work information does not describe a methodological dependency.

These citations establish continued relevance across neighboring research areas. They do not establish a measured succession of improved BnSentMix systems. The durable contribution visible in the paper itself remains the public sentiment resource, its documented collection strategy, and the questions its comparisons leave open about filtering, linguistic variation, annotation, and evaluation.

## Cite

Cite as Sadia Alam, Md Farhan Ishmam, Navid Hasin Alvee, Md Shahnewaz Siddique, Md Azam Hossain and Abu Raihan Mostofa Kamal. 2025. BnSentMix: A Diverse Bengali-English Code-Mixed Dataset for Sentiment Analysis. Proceedings of the First Workshop on Language Models for Low-Resource Languages.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{alam2025bnsentmix,
  title = {{BnSentMix: A Diverse Bengali-English Code-Mixed Dataset for Sentiment Analysis}},
  author = {Sadia Alam, Md Farhan Ishmam, Navid Hasin Alvee, Md Shahnewaz Siddique, Md Azam Hossain and Abu Raihan Mostofa Kamal},
  booktitle = {Proceedings of the First Workshop on Language Models for Low-Resource Languages},
  year = {2025},
  url = {https://aclanthology.org/2025.loreslm-1.4/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
