Elamur Research

L3Cube-MahaSent-MD: A Multi-domain Marathi Sentiment Analysis Dataset and Transformer Models

Paper · 2023 · Aabha Pingle, Aditya Vyawahare, Isha Joshi et al.

Summary

A Marathi sentence can express approval, criticism, or little discernible sentiment. What counts as evidence for those judgments depends in part on where the sentence appears. A film review can praise an actor or describe a misfortune in the story. A short subtitle can express agreement within a conversation. A tweet can convey disapproval through sarcasm or leave its attitude unclear without more context. L3Cube-MahaSent-MD gives researchers a way to study these differences by measuring sentiment analysis across several sources of Marathi text. The paper asks how well a classifier trained on one kind of writing works when it encounters another, and how much training on a mixture of sources helps.

The benchmark contains 60,864 examples in total, with passages labeled for positive, negative, or neutral sentiment. It extends an earlier collection of political tweets with 15,000 examples apiece from Marathi movie reviews, general Marathi tweets, and Marathi translations of television subtitles. The authors use native Marathi speakers to annotate the new collections and give each domain its own training, validation, and test partitions. They also combine the domains into a pooled corpus with equally represented sentiment classes in each partition. Keeping the original domains identifiable makes it possible to test a classifier on a different source while preserving the language and the names of the output labels.

The Marathi-adapted MahaBERT gives the highest same-domain test accuracy among the four systems evaluated on each domain. Its political-tweet score is 84.90, yet the same political-tweet specialist scores 60.60 on the subtitle test. MahaBERT-All, trained on the pooled corpus, scores 83.95 on political tweets, 79.20 on subtitles, and 80.13 on the pooled test, all on the paper’s accuracy scale. It also comes close to the general-tweet and movie-review specialists on their own tests. Those results show that the broader training set supports a single classifier across the sources covered by the benchmark. Its advantage is breadth on familiar kinds of data, while the transfer tests between specialists show how much performance can depend on the source used for training.

Deep dive: L3Cube-MahaSent-MD: A Multi-domain Marathi Sentiment Analysis Dataset and Transformer Models

L3Cube-MahaSent-MD tests how well Marathi sentiment classifiers transfer between film reviews, subtitles, and general and political tweets. · about 33 minutes to read

The problem and its context

A sentiment label depends on the text being judged

The paper treats sentiment as a property that can be assigned to a sentence or another short piece of writing. In this text classification task, the reader or classifier chooses a category for the whole example. The possible categories are positive, negative, and neutral. That simple output has applications in several settings. The paper describes using review sentiment to summarize reactions to a film, using tweets to follow reactions to an event or topic, and using the tone of subtitle segments to help people find relevant material. Each application uses a similar kind of output, but the writer’s purpose and the evidence available in the input differ.

A review is written partly to assess something. A reviewer may express an opinion directly or convey it through a description of what happens in the film. A tweet about current affairs can express a judgment about an event, a public figure, or someone else’s position. Everyday tweets can shift between topics and give the reader little space in which to reconstruct the situation. A subtitle is a small part of an exchange, and a reader may have only the words spoken in that turn. Where a classifier will be used therefore matters when choosing the examples from which it learns.

A domain is a defined source or kind of text in the benchmark. Some domains here differ in format, such as film writing and subtitle dialogue. Others share a format and differ in the way the content was selected. The political and general collections both contain tweets, but the political collection centers on current affairs and includes posts from activists and political figures. The general collection is retrieved with broad Marathi search terms. That distinction gives the paper two kinds of transfer problem. A classifier may move between visibly different forms of writing, or it may stay with the same platform and encounter a different collection of language on that platform.

The authors place the work in natural language processing for low-resource languages. The shortage at issue is suitable labeled material. A corpus can support an accurate estimate for its own source and still leave an engineer without evidence about another source. A collection that combines everything into a single file can support a broad test, but it becomes much harder to tell how much a system learned about each constituent kind of text if the constituent collections cannot be identified. MahaSent-MD is organized to support both questions. It provides separate domain tests and a combined one, with the same output categories throughout.

This setup also gives annotation an unusually prominent role. A single label per sentence sounds straightforward until a dataset has to decide how much context the annotator should use or what kinds of affect count. A description of an adverse plot event can be negative under a policy about sentence tone, even when the reviewer admires the movie. A brief spoken response can have a clear conventional meaning in isolation and a more complicated meaning within the scene. The task becomes well defined through choices about what the annotators judge and which evidence they use. Those choices then become part of what the evaluation measures.

What earlier resources made possible

The paper connects the benchmark to established uses of sentiment classification. It cites early work on machine learning for the task and points to movie reviews as a longstanding source of sentiment examples. The review setting illustrates why a collection designed around a recognizable type of writing can be valuable. Researchers can hold the kind of document relatively steady while comparing ways to infer the judgment expressed in it. The Marathi study keeps that advantage for each domain and adds tests in which the source changes. Thumbs up? Sentiment Classification using Machine Learning Techniques · Learning Word Vectors for Sentiment Analysis

The earlier Indic resources described by the authors address different parts of the data shortage. HindiMD, for example, collects Hindi tweets with keyword searches and supplies baselines for sentiment classification. The Marathi paper describes its 9,090 tweets as spanning domains within a single collection. According to the authors, the absence of separate domain divisions limits the transfer questions that can be asked with it. A broad collection can establish that a system works on the mix captured by that corpus. To distinguish learning from one domain from learning about several, researchers also need to know which examples belong to each source at training and test time.

The paper also discusses earlier multilingual and cross-lingual NLP for sentiment in Indian languages. One study used linked wordnets for experiments with Hindi and Marathi on reviews of travel destinations. Another examined sentiment in Marathi and Hindi social-media documents drawn from chats, tweets, and YouTube comments, with the text written in Romanized form. These examples make clear that there was prior work on Marathi sentiment, across more than one source and script. The particular need identified by Pingle and colleagues was for a sizeable corpus of native-script Marathi with matched sentiment categories and separable domains.

The most direct predecessor was the original L3Cube-MahaSent. The authors describe that earlier resource as containing roughly 18,378 Marathi tweets with manual sentiment judgments. It was a substantial labeled resource, and its focus was political. MahaSent-MD retains that domain as MahaSent-PT and adds sources whose collection procedures and language differ. The political data thus serve both as material for training and as a point of comparison with newly collected conversational, general social-media, and review text. The benchmark’s political subset has its own reported size, which the paper distinguishes from its description of the original release. L3Cube-MahaSent

Other Marathi resources cited in the paper illustrate the distinction between obtaining data in a language and obtaining data for a particular task. The authors mention a corpus designed for hate-speech detection and MahaNER, a resource for named entity recognition. Identifying the names of people or organizations in a sentence involves a different annotation judgment from identifying the sentiment of the sentence as a whole. A language can have resources for several such tasks and still have limited coverage within any one of them. The gap addressed by MahaSent-MD is domain coverage within Marathi sentiment classification. L3Cube-MahaNER

The paper also cites earlier work by Roccabruna and colleagues on fine-tuning across sources and domains. Fine-tuning starts with a system that has already learned from text and adjusts it on examples for the task at hand. The cited work found that joint fine-tuning on multiple sentiment corpora could improve performance relative to using a single source and domain. That result supplies the motivation for building a Marathi collection suited to the same kind of comparison. The source-specific partitions let the authors ask both whether a specialist carries its knowledge into another domain and whether joint training yields a system that works across several of them.

The method, step by step

Build separate collections before pooling them

The authors start by defining the object to be classified. In a review article, it is an individual sentence. In a subtitle file, it is a sentence or short piece of dialogue extracted from that file. In a tweet collection, it is the post retained for the dataset. All of these become examples with a single sentiment label. They remain associated with their domain while the authors prepare their separate splits. A split, or partition, assigns examples to training, validation, or testing so that the final evaluation can be reported on data set aside from training.

Collection differs by domain because the underlying materials differ. Film reviews come from Marathi publications. General tweets are gathered by searching with broad terms. Subtitles require translation into Marathi. The political collection is inherited from the previous MahaSent resource. These paths converge at the level of the classification task, where the training procedure receives a Marathi text and its sentiment category. No common collection procedure is imposed on the raw sources.

Building and evaluating L3Cube-MahaSent-MD

The steps in order.

Building and evaluating L3Cube-MahaSent-MDStep 1: Collect reviews, tweets, and subtitle files1. Collect reviews, tweets, and subtitle filesStep 2: Prepare Marathi examples from each source2. Prepare Marathi examples from each sourceStep 3: Use provisional labels to prioritize new examples3. Use provisional labels to prioritize new examplesStep 4: Apply human sentiment judgments4. Apply human sentiment judgmentsStep 5: Build separate and pooled data splits5. Build separate and pooled data splitsStep 6: Fine-tune sentiment classifiers6. Fine-tune sentiment classifiersStep 7: Test within and across domains7. Test within and across domains

Turn movie reviews into sentence examples

For MahaSent-MR, the authors identify sites that publish film reviews in Marathi in Devanagari. The paper names TV9, eSakal, Loksatta, ABP Majha, Lokmat, Saamana, and Maharashtra Times. The source item at this stage is an article on a webpage. The authors retrieve the pages with Python’s Requests module and use regular expressions to extract the review text. A regular expression is a pattern for matching strings. Here it helps pick out article content from the surrounding material on the site.

The article text is then divided at periods. Each resulting sentence is a potential example, and special characters are removed in the collection process. This choice gives the annotators something shorter than an entire review to judge. The sentiment category applies to the sentence, even if the review in which it appears would receive a different overall verdict. The evaluation consequently asks how well a classifier handles the tone of those extracted sentences. It does not use a publication’s star rating as the training target.

The annotation policy for reviews makes room for more than direct reactions to the film. Praise of an aspect of the movie can make a sentence positive. So can a favorable development in the story as reported by the reviewer. Criticism of the film and the description of an adverse incident can both make a sentence negative. A sentence that simply gives information about the film or its events can be marked neutral. The resulting categories group together several ways that favorable and unfavorable material can appear in review writing.

That policy is important for interpreting the benchmark’s unit. Imagine reading a sentence that reports a setback for a character. The policy tells the annotator to consider the negative incident even if the surrounding review would help a reader distinguish the reviewer’s view of the filmmaking from the event in the story. Conversely, a bare factual sentence can be neutral within a strongly favorable review. The paper therefore defines a finer-grained target than the critical verdict a reader might infer from the article as a whole.

Search broadly for general tweets

MahaSent-GT contains Marathi tweets in native script. The authors collect posts with the Python packages twint and snscrape. They search for Marathi stopwords, common words that can occur in many kinds of sentences. The logic is that a common term can retrieve posts about varied subjects, whereas a query naming a particular event or public figure would direct the collection towards that subject. Broad retrieval is the means by which the authors construct the general category.

The tweets are restricted to 15 words or less. This limit defines the collection as a sample of short posts even before human judgments are applied. It matters for annotation because a short tweet can leave its background implicit. A judgment can depend on recognizing which attitude is conveyed by the wording that survives collection, and the paper’s policy supplies a default when the relevant context cannot be inferred. The length limit also makes the text distribution distinct from the political collection, although both originate on Twitter.

The generic-tweet guidelines say how to handle cues beyond ordinary sentence wording. Annotators take Marathi hashtags into account and disregard English hashtags and emoticons. That policy allows a Marathi hashtag to help determine the gold label, the human-assigned category used for evaluation. As discussed below, hashtags are later removed in the reported classifier preprocessing. Annotation and preprocessing are separate stages, and in this case they can give the annotator and classifier access to different evidence.

The policy treats sarcasm as negative and tweets expressing condolences or regret as negative. Tweets whose context cannot be established are labeled neutral. Neutral therefore includes some passages whose wording supplies too little evidence for the annotator to recover the attitude. A person familiar with the original situation could read such a post differently. The policy gives annotators a reproducible decision for the isolated text they receive.

Translate and check English subtitles

MahaSent-ST is made from subtitles of the English-language television comedy Friends, using seasons 1 through 4. The authors convert subtitle files in .sub and .srt formats to plain text. The resulting material is divided into sentences for the dataset. Since the original dialogue is English, the authors translate it into Marathi with the deep-translator tool. The result is conversational material in Marathi derived from a single source series.

Humans review the translated material. The collection description says problematic outputs are discarded after manual checking. The annotation description also says annotators correct grammatical errors and leave some incorrect but grammatically well-formed translations as they are. Taken together, these details establish that checking and editing are part of the procedure and that translation discrepancies can remain in the corpus. The article’s evaluation therefore concerns the resulting Marathi text alongside the selection and annotation decisions that produced it.

Unlike the review collection procedure, the subtitle preparation retains special characters. The annotation policy also accounts for very short inputs. Annotators judge brief subtitles from the words present, independently of the longer conversation. A short affirmative answer, for example, can be positive under this rule. The procedure gives the reader a defined policy for classifying an isolated turn whose meaning within the full scene could depend on a question or remark elsewhere.

The authors use a further distinction when they assign provisional and final labels. The preliminary subtitle tags are obtained from the original English sentences. The human dataset judgments concern the Marathi examples. This puts the provisional tag on the source side of the translation step. Its role is to organize the annotation queue, while the eventual classifier is trained and evaluated on Marathi. A provisional label may accordingly be imperfect because of the sentiment procedure itself, a change introduced in translation, or the final domain-specific labeling policy.

Retain the original political source

MahaSent-PT is the political-tweet component drawn from the earlier MahaSent collection. These tweets concern current affairs and include contributions from activists and political figures with varied positions. The earlier collection was scraped with twint and manually categorized using the same sentiment category names. Its public data retain features such as hashtags, mentions, symbols, and occasional English words. The sentiment experiments apply their own preprocessing to the text they use.

The paper reports 15,864 examples in the political subset used in this benchmark. Its description of the earlier release gives roughly 18,378 tweets. These figures refer to differently defined collections in the paper, so the benchmark figures are the ones that govern the experiments here. The authors give a distinct political training and test allocation, which remains visible when the political data are compared with the new domains.

Keeping political tweets separate from generic tweets gives an informative comparison during evaluation. It is possible to train on political posts and evaluate on the general collection, then reverse which source supplies the training and test examples. Both tests concern tweets written in Marathi, yet their collection criteria and length profiles differ. The comparison can therefore reveal sensitivity within a broad format as well as sensitivity between formats such as tweets and subtitles.

Use provisional tags to guide human annotation

The main annotation procedure uses 1 for positive, -1 for negative, and 0 for neutral. These values are codes for categories. The negative code identifies an unfavorable sentiment judgment, the positive code identifies a favorable one, and the neutral code identifies the third category under the applicable domain rules. The experiment reports classification accuracy, which asks whether the predicted category exactly matches the assigned category. The codes serve as identifiers for that comparison.

The authors report manual annotation by four native Marathi speakers proficient in written Marathi. To make the work more efficient, they sort new examples using provisional sentiment tags, also called pseudo-labels. A pseudo-label in this procedure is an automatic suggestion used to order the work. MarathiSentiment supplies those suggestions for review sentences and generic tweets. For the subtitle examples, the authors use VADER, available through NLTK, to tag the original English sentences. These sources give the annotators a way to find likely positive and negative material earlier.

Ordering matters because the authors aim to build balanced sentiment collections. If annotators simply work through harvested text in its original order, they may spend substantial time labeling examples from a category that already has enough entries. Sorting by initial predictions allows the likely positive and negative examples to be examined first. The authors present this as a way to speed up annotation and avoid accumulating an excess of neutral material. Final class membership depends on the manual judgments.

The paper reports 60-70% accuracy for the provisional labels against the finalized datasets. That estimate concerns the annotation aid, not the later cross-domain results from MahaBERT. It illustrates the division of labor in the workflow. Automatic tags can support sorting even when their agreement with the finished benchmark is too limited for them to substitute for manual judgments. The paper gives a range across the final datasets and does not assign an exact preliminary score to each source.

The human agreement figure is Cohen’s kappa of 0.86. Kappa is an agreement measure that accounts for how much agreement would be expected from the raters’ patterns of category use. Its purpose here is to summarize consistency in labeling. It concerns agreement over the annotation decisions, while test accuracy concerns a classifier’s agreement with the resulting labels. The paper reports the agreement figure for the annotation effort as a whole and describes domain policies that explain what the raters were asked to judge.

Balance the labels and prepare the classifier inputs

Each new domain has 15,000 examples. Within each, 12,000 are allocated to training, 1500 to validation, and 1500 to testing. The authors describe balancing the categories through random selection of equal numbers per sentiment for the curated data. The training partition supplies the labeled examples used to fit a classifier. The validation partition is a separate set available for judging choices during development. The test partition is the basis of the final domain and cross-domain accuracy comparisons.

The merged release, MahaSent-All, combines the separate domain data. The training partition contains 48,114 examples with 16,038 examples for each sentiment. Its validation partition contains 6000 examples with 2000 of each sentiment, and its test partition contains 6750 examples with 2250 of each sentiment. This design keeps label frequencies equal in the pooled partitions. Domain representation is a separate property. The political test has 2250 examples and each of the other domain tests has 1500, so the pooled accuracy is influenced by the political test more than by any single new domain test.

The raw release and the experimental input also need to be distinguished. For the experiments on MahaSent-PT, MahaSent-GT, and MahaSent-All, the authors report removing hashtags, mentions, special symbols, and emoticons. For the separate movie and subtitle runs, they report no additional experiment-specific cleaning. Movie-review text has already undergone character removal during collection, while the subtitle collection retains special characters. The paper describes preprocessing by dataset, so the description of cleaning for the pooled corpus is relevant when interpreting comparisons between separate and combined runs.

The authors describe the dataset as publicly shared. They also identify the released domain-specific sentiment checkpoints and the joint checkpoint, including marathi-sentiment-movie-reviews, marathi-sentiment-tweets, marathi-sentiment-subtitles, and marathi-sentiment-political-tweets. The joint release is named marathi-sentiment-md. A checkpoint is the saved set of learned parameters produced by training. The names distinguish the released sentiment systems from the underlying Marathi-adapted encoder used to initialize them.

Adapt pretrained encoders to the same classification task

The experiments use pretrained transformer encoders. An encoder constructs a representation of the text that a classification layer can use to assign a sentiment category. Pretraining gives the encoder a starting point learned from text, and fine-tuning adapts that starting point with labeled sentiment examples. The paper uses the same category inventory for all domains, so the classifier can be scored on a different domain without redefining its outputs.

The broad multilingual baseline is mBERT, the multilingual form of BERT. The paper describes it as trained on text in 104 languages using masked language prediction and next-sentence prediction. In the first objective, the system learns to recover hidden portions of an input from their surroundings. In the second, it learns to make a judgment about the relationship between two sentences used in pretraining. The sentiment task adds a classification layer that maps the resulting representations to the sentiment categories. BERT

IndicBERT and MuRIL supply starting points with greater emphasis on Indian-language data. IndicBERT uses the ALBERT architecture, with pretraining on IndicCorp across 12 languages as described in the paper. MuRIL uses Indian text and incorporates translated and transliterated pairs. In a translated pair, corresponding material is expressed in different languages. In a transliterated pair, corresponding text is represented in a different script. The paper presents these pairs as training signals for learning relationships across languages and writing systems. Neither kind of pairing defines the sentiment task itself. Both are features of the initialization that precedes sentiment training. ALBERT · IndicNLPSuite · MuRIL

MahaBERT starts from multilingual BERT and is further adapted on L3Cube-MahaCorpus and other public monolingual Marathi data. The authors describe Marathi pretraining with the masked language objective on a corpus comprising 752M tokens. This account explains why the paper refers to MahaBERT as monolingual in the classification comparison: its additional adaptation concentrates on Marathi, while the earlier initialization is multilingual. For the sentiment experiment it is then fine-tuned again, this time on the manually labeled benchmark. L3Cube-MahaCorpus and MahaBERT

For the domain comparison, the authors initialize a separate MahaBERT classifier for training on each individual corpus and another for training on the pooled material. The resulting systems share the same underlying starting point and differ in the sentiment examples used for fine-tuning. Each can be evaluated on its own domain where applicable, on the other domain test sets, and on the pooled test. This turns the splits into a set of comparisons between training sources rather than a single overall benchmark score.

Experiments and results

What the test sets measure

The experiment reports accuracy on a scale whose maximum is 100. An example counts as correct when the classifier chooses the same sentiment category as the reference annotation. Accuracy is convenient for comparing systems on the same partition because they face the same examples and class decisions. It also compresses all successes and mistakes into one number. The results can establish how often a system made the correct choice overall without identifying whether errors came mainly from, for example, negative items or neutral items.

The individual domains have different amounts of material and different average sentence lengths. In MahaSent-PT, the paper reports 12,114 training examples, 1500 validation examples, and 2250 test examples. Its reported average sentence length is 26.8658. The other domain tests each contain 1500 examples, and their reported average lengths are 10.4528 for generic tweets, 6.3753 for subtitles, and 12.6323 for movie-review sentences. The pooled corpus has a reported average sentence length of 14.2630. The table gives these numbers as average sentence lengths without specifying the counting procedure.

These descriptive figures help put the accuracy comparisons in context. The political and generic collections both consist of tweets, yet their reported lengths differ along with their subject matter and collection methods. Subtitles have the shortest reported average and a policy specifically addressing brief utterances. A difference between domains may therefore reflect differences in the amount of textual evidence, the conventions for interpreting it, or both. The accuracy comparison measures the performance that results from those conditions acting together.

The baseline comparison first asks what each pretrained starting point can do when fine-tuned with data from the domain on which it is evaluated. In the transfer comparison, the underlying encoder stays fixed at MahaBERT and the source of the fine-tuning examples changes. The pooled classifier also appears alongside the specialists. Its score on an individual domain uses that domain’s test examples, while its training has already included examples from the domain. A specialist’s score on a different domain tests a different situation, because that source was absent from its supervised sentiment training.

Comparing the pretrained starting points

The generic-tweet test gives a clear view of the same-domain comparison. All four entries in the chart are trained with the generic-tweet training set and evaluated on its test set. The ranking runs from mBERT through IndicBERT and MuRIL to MahaBERT. The shared test makes that ordering directly interpretable for this benchmark. Differences among pretraining histories remain bundled together in the systems being compared.

Same-domain classifiers on the MahaSent-GT test set

MahaBERT has the highest accuracy among classifiers fine-tuned on generic tweets.

Same-domain classifiers on the MahaSent-GT test setmBERT: 70.07mBERT70.07IndicBERT: 76.06IndicBERT76.06MuRIL: 77.13MuRIL77.13MahaBERT (this paper): 78.80MahaBERT (this paper)78.80
The numbers
System or settingaccuracy %
mBERT70.07
IndicBERT76.06
MuRIL77.13
MahaBERT (this paper)78.80

MahaBERT also leads the same-domain systems on political tweets. There, mBERT has test accuracy of 80.66, IndicBERT has 84.13, and MuRIL has 84.30. The political specialist initialized from MahaBERT reaches 84.90. The relative ordering agrees with the generic-tweet test, although the score levels differ. These are accuracies against separate test sets, with different texts and collection procedures, so the common ordering across the tests is more directly interpretable than their absolute levels as a ranking of domain difficulty.

In the movie-review domain, mBERT reaches 70.53, IndicBERT reaches 74.13, and MuRIL reaches 78.00. MahaBERT’s movie specialist reaches 78.53. The leading systems have close results on this particular test. The larger separation between mBERT and the top of the table shows that the choice of pretrained starting point matters here, while the scores of the Marathi-adapted and Indian-language-focused systems make the precise ordering a narrower finding.

On subtitle test data, mBERT scores 75.26, IndicBERT scores 77.00, and MuRIL scores 78.73. The subtitle specialist from MahaBERT scores 79.07. This repeats the ordering seen in the other domains when each system is trained on the corresponding domain’s examples. The pooled classifier has a separate result on this same test and takes the lead when included in the comparison. That distinction matters when describing which system wins: the answer depends on whether training is restricted to one domain.

Across the same-domain tests, the consistent top ranking for MahaBERT gives the authors a basis for using it in the next experiment. This choice holds the underlying encoder steady while the supervised training corpus changes. It also bounds the transfer finding: the source-to-source matrix is evidence about what happens with this starting point under the fine-tuning setup used in the paper. The baseline results supply the comparison across encoders, while the transfer matrix supplies the comparison across supervised training sources.

What happens when a specialist changes domains

The political-tweet specialist has its strongest result on its home test. Its accuracy is 69.87 on generic tweets, 60.60 on subtitles, and 62.93 on movie reviews. The generic-tweet score is particularly informative because those inputs share the tweet format with the political training examples. The move from one tweet collection to the other still changes performance considerably. This shows why the platform alone is an incomplete description of the supervised training domain.

Training on general tweets produces another pattern. The generic specialist scores 70.40 on political tweets, 67.73 on subtitles, and 67.13 on movie-review sentences. Though the two tweet collections are related by platform, the directions of transfer are separate experiments. In one direction the political texts supply the training language and the generic texts supply the test cases. In the other, the training and test collections are reversed. The scores show how each trained system responds to the corresponding held-out source.

The movie-review specialist reaches 73.33 on political tweets, 66.46 on generic tweets, and 61.73 on subtitles. Its same-domain review result of 78.53 establishes that it can perform well when the test resembles its supervised training source. Its subtitle result illustrates how little that success alone says about performance on brief translated dialogue. Both benchmarks use sentence-like units and the same sentiment category names, but each supplies different textual evidence and different rules for judging some examples.

The subtitle test makes the effect of training source especially easy to see. All entries below face the same test cases, including the same reference labels for short replies. The conditions vary in which written material the classifier learned from during sentiment fine-tuning. The subtitle specialist and the pooled classifier have supervised experience with the subtitle domain, and they occupy the top positions.

MahaBERT training sources on the MahaSent-ST test set

Training that includes subtitles gives the highest subtitle accuracy.

MahaBERT training sources on the MahaSent-ST test setPolitical tweets: 60.60Political tweets60.60Movie reviews: 61.73Movie reviews61.73Generic tweets: 67.73Generic tweets67.73Subtitles: 79.07Subtitles79.07Pooled domains, MahaBERT-All (this paper): 79.20Pooled domains, MahaBERT-All (thispaper)79.20
The numbers
System or settingaccuracy %
Political tweets60.60
Movie reviews61.73
Generic tweets67.73
Subtitles79.07
Pooled domains, MahaBERT-All (this paper)79.20

The subtitle specialist also gives the strongest cross-domain results of the individual-domain systems in the comparison. Its accuracy is 75.24 on the political-tweet test, 72.80 on the generic-tweet test, and 70.33 on the review test. In each case, the comparison is with specialists from other domains that are likewise being tested away from their own training source. The subtitle-trained system is the strongest of those alternatives on each of these tests. Each domain’s own specialist still performs well on the test for which it was trained.

Reading the results by target domain answers a practical question: given a particular stream of incoming text, which training source offers the best measured performance on it? Reading the same results by training source answers a different question: given a classifier trained with a particular kind of text, where does it continue to work? These questions draw on the same scores, but they organize the evidence differently. The paper’s individual test sets let readers inspect both rather than treating movement across domains as a single undirected event.

What pooled training buys

MahaBERT-All gives 83.95 on political tweets, 77.86 on generic tweets, 79.20 on subtitles, and 77.73 on movie reviews. These scores put it close to the strongest specialist on each source, and it has the highest reported accuracy on subtitles. For political tweets, generic tweets, and reviews, the specialist trained on that same domain retains the highest reported result. The appeal of the pooled recipe is that the same trained classifier can produce a high score on each listed test without requiring a separate system for each domain.

On the pooled test, the political specialist scores 70.80, the generic specialist 70.91, the subtitle specialist 74.46, and the review specialist 70.42. MahaBERT-All scores 80.13. The pooled scores are measured over the mixed test set, where the political component has more cases than any single new domain. This aggregate puts a demand on specialists that is absent from their home tests: each must handle many examples whose source was missing during sentiment fine-tuning. The joint system has seen training material from every constituent domain.

The subtitle result is worth describing at the precision reported. The pooled score of 79.20 is higher than the subtitle specialist’s 79.07 on the same test. The paper describes the pooled system as learning effectively from the shorter structures found in subtitles. The scores establish that including the other training sources alongside subtitles was compatible with the highest reported subtitle result. The comparison changes the composition and amount of training data at once, so it leaves the particular source of that advantage open.

The authors also show sample sentences and word clouds for the newly introduced domains. The sentences help readers see the unit that is actually labeled, while the word clouds visualize frequently occurring vocabulary by class. These figures serve as a descriptive check on the corpora and make their contents easier to inspect. The numerical evidence for how well the classifiers handle the resulting data comes from the held-out tests.

What the ablations show

The paper reports no formal component ablation and instead offers comparisons across pretrained starting points and fine-tuning sources, along with descriptive analyses of the corpora.

Changing the training domain

The strongest control in the study is the set of runs that start from MahaBERT and change the domain supplying the labeled sentiment examples. With the starting encoder fixed, a researcher can compare systems on the very same test set. For example, the generic-tweet test can be held fixed while the source of the training data changes from political tweets to subtitles or movie reviews. The test’s choice of examples and its label policy remain the same for every score being compared. That makes the difference in performance attributable to the training conditions taken as a package.

The political-to-generic and generic-to-political comparisons show how much variation can remain within a single platform. Both collections preserve the broad properties of Marathi tweets. The political corpus concentrates on current affairs and draws from political figures and activists. The generic data are discovered using broadly occurring Marathi words and subject to a short-post limit. A system can therefore learn cues that bear on sentiment in one sample and encounter a different distribution of cues in the other. The comparison reveals sensitivity to the source, with topic, length, and curation all plausible contributors.

The subtitle-trained classifier is the strongest traveling specialist in the matrix. That is a result about the text and annotation conditions available here. The subtitle corpus may expose the system to conversational patterns that are useful across domains, or its labeling rules and sentence lengths may produce a training signal that transfers better within this particular suite. The paper offers no intervention that varies those factors separately. Its score matrix establishes which training source traveled best, while a more specific explanation would require evidence beyond the observed ranking.

Changing the breadth of the training material

The comparison between specialists and MahaBERT-All tests the whole choice of pooling the available corpora. It shows that a shared classifier can retain much of the in-domain accuracy of separately trained systems while scoring better on the mixed test. This is a stronger claim than saying the pooled test produces a favorable aggregate. Its constituent tests show where the aggregate comes from, including the political and review tests on which the corresponding specialist still leads and the subtitle test on which the pooled system has the highest score.

Training on the pooled corpus increases the amount of supervised material and changes the mixture of writing styles, topics, and labeling decisions represented during training. Both are part of the recipe under evaluation. The study therefore demonstrates the performance of that recipe with the available splits. It leaves open how much gain would persist if the total amount of training data were held fixed or if particular sources were left out of the mixture. Similarly, a different balance across domains could change performance even if the sentiment labels remained equally represented.

The individual-domain scores from MahaBERT-All are evidence about a system trained with experience of each of the domains it is asked to handle. The out-of-domain specialist scores are the evidence about transfer when a target domain supplies no supervised sentiment examples. That distinction makes the findings more useful. The pooled recipe addresses deployments in which labeled data from several kinds of incoming text are available. The specialist comparisons show how risky it can be to judge a new source using results obtained solely on a familiar one.

Reading the corpus analyses alongside the scores

The paper’s comparison of average lengths and its vocabulary visualizations help describe what changes across domains. They establish that the source categories correspond to observable differences in the corpus and give some intuition for why the inputs might call for different cues. A short subtitle can contain a compact expression whose sentiment is easy to label under the isolated-turn policy. A short tweet can omit essential context even when the text is similar in length. Both observations follow from the dataset construction and make it easy to see why length by itself may have limited explanatory power.

The word clouds describe frequent terms. They leave open how individual classifiers respond to those terms, how much of their accuracy depends on them, and whether a word that commonly appears in one category behaves the same way on another source. The sample sentences likewise clarify the target of annotation and the differences in text format, but they cannot establish the prevalence of particular error types. The descriptive figures complement the accuracy matrix by showing the materials that produce it.

The preliminary tag accuracy provides another comparison at an earlier stage of the project. The authors use it to argue for human work when extending sentiment resources to new domains. A provisional tagger can rank candidates with enough success to be useful in collection even if many of its judgments differ from final annotations. The reported range supports that distinction. It does not isolate the time saved by the sorting procedure or quantify how the final corpus would differ if the annotators had worked from an unranked queue.

Limitations

Boundaries the authors identify

The authors explicitly identify the weakness of specialists on unfamiliar domains. A high score on a political-tweet test says relatively little about how that classifier will handle dialogue or review sentences. The paper’s response is to supply domain-specific partitions and a pooled benchmark, together with evidence from applying the same MahaBERT starting point to each. The demonstrated scope of the pooled system is the sources included in that benchmark.

The authors also describe limits in their source material and processing. The generic tweets are short, selected through nonspecific Marathi search terms, and labeled under rules for unresolved context and sarcasm. The subtitles come from a single television series and are machine translated before manual review. The annotation account allows grammatically sound translations to remain even when they are incorrect. These are explicit qualifications on what the examples contain. They matter wherever translation fidelity or conversation context affects a sentiment judgment.

The comparison between provisional tags and final judgments is a further limit the authors bring out directly. Existing sentiment classifiers provide enough information to help triage examples, but their reported accuracy against the finished data leaves substantial scope for human correction. The method addresses this by keeping manual decisions as the dataset target. The finished benchmark consequently incorporates the adopted annotation guidelines as well as the language in the source material.

Boundaries that follow from the setup

The experiment holds the language and output label names broadly constant across sources. The meaning of those labels in particular cases can still change. Film-review annotators can assign sentiment on the basis of favorable or adverse events in the story. Subtitle annotators can mark a short affirmative response positive using its isolated wording. A generic tweet can become neutral because its context cannot be recovered. A cross-domain score can thus reflect differences in what a label calls for as well as differences in vocabulary and style. The study measures their combined effect.

Some information available at annotation can also be absent at evaluation. Marathi hashtags count as evidence in the generic-tweet labeling policy, while the preprocessing for the tweet experiments removes hashtags. If a human judgment depends mainly on a Marathi hashtag, the corresponding label can be harder to recover from the cleaned text. The paper supplies both policies but gives no separate analysis of examples affected in this way. How frequently this occurs and which categories it affects remain open.

The chosen sources bound what each domain represents. Review sentences are taken from the named Marathi sites and split at periods, which yields a test of the resulting sentence units. The political collection reflects the accounts and current-affairs material inherited from the earlier corpus. The general collection reflects its search terms and post-length limit. The subtitle collection reflects a translated comedy series and the procedures used to check the translations. Testing on these partitions establishes results for those sampled distributions. Other publications, sources of dialogue, collection periods, and writing in Romanized Marathi fall beyond the benchmark described here.

The construction also changes the frequency of the classes compared with the raw harvested material. Balancing is useful when the goal is to give each sentiment equal representation. In the pooled tests, it allows the overall score to reflect performance across neutral, positive, and negative examples without letting a more common class dominate by design. The accuracy of a classifier on a stream with different class frequencies remains a separate question. Benchmark balance says how the evaluation was constructed, while the paper’s description of candidate sorting indicates that the source text could present a different mixture.

Grouped independence is another question left open by the split description. A review article is broken into sentences, and subtitle episodes supply many pieces of dialogue. The paper gives counts for the partitions without specifying whether entire articles or episodes are assigned together. If related sentences from the same larger source occur in different partitions, a test on individual sentences can be easier than a test on wholly new articles or episodes. The reported results support the given splits. They do not quantify performance under a split designed specifically to hold out each larger source item.

The training comparisons offer limited support for causal explanations of the encoder rankings. The pretrained starting points differ in their training languages, text sources, and objectives, among other aspects described by the paper. MahaBERT’s consistent same-domain lead supports choosing it in this experimental comparison. Isolating how much of that lead comes from Marathi-specific adaptation would require matching the other relevant conditions. The score table compares the available systems as wholes.

The pooled experiment has a similar interpretive boundary. More domains also mean more labeled training examples in the reported setup. Pooling includes each target domain in training, and the pooled corpus has its own reported preprocessing. The result provides direct evidence for one jointly trained system handling several familiar sources. Its applicability to a domain absent from all fine-tuning data would require a separate experiment, such as withholding a source completely from pooled training and using it only for testing.

Finally, the published result tables give accuracy without uncertainty estimates or class-specific scores. Close values such as 79.20 and 79.07 on the subtitle test establish the observed order on that test. The paper gives no repeated-run evidence about whether the order is stable across training runs. Likewise, an overall score cannot reveal whether a system regularly confuses negative and neutral text or makes its mistakes across all categories. The reported kappa of 0.86 provides a corpus-level view of annotation agreement, but the publication gives no corresponding breakdown by source or difficult label distinction. The benchmark supports comparisons of overall accuracy more directly than explanations of individual errors.

What came after

Marathi resources beyond sentiment

The record for MahaSQuAD places it among the works that cite MahaSent-MD. Its title frames it as work on linguistic divides involving Marathi. The identifiable connection is the concern with resources for Marathi language technology. MahaSent-MD makes that concern concrete for sentiment by collecting several separately testable text sources. The citation record does not establish that MahaSQuAD reused those sources, followed the annotation policy, or used the sentiment scores in its own evaluation.

Changing how Marathi text is presented to a classifier

Representation-Aware Prompting for Zero-Shot Marathi Text Classification identifies another direction for Marathi classification. Its title names IPA, Romanization, and repetition as ways of representing the input in prompts. The International Phonetic Alphabet, or IPA, is a writing system for representing speech sounds. Romanization represents text in the Latin script. Repetition changes how frequently material is presented. Zero-shot classification refers to attempting the task without fitting a classifier on labeled examples for that task.

The relationship visible from the title and citation is a shift in which part of classification receives attention. MahaSent-MD varies the written sources supplying labeled examples and measures the results of supervised adaptation. The later work foregrounds how Marathi text is presented at the point of classification. These are related questions because both concern the conditions under which a classifier can use the information in Marathi text. The citation establishes the connection between the papers, while the later work’s title leaves unspecified which MahaSent-MD partitions, if any, it used and what results it obtained on them.

Cite

Cite as Aabha Pingle, Aditya Vyawahare, Isha Joshi, Rahul Tangsali and Raviraj Joshi. 2023. L3Cube-MahaSent-MD: A Multi-domain Marathi Sentiment Analysis Dataset and Transformer Models. Proceedings of the 37th Pacific Asia Conference on Language, Information and Computation.

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

@inproceedings{pingle2023l3cube,
  title = {{L3Cube-MahaSent-MD: A Multi-domain Marathi Sentiment Analysis Dataset and Transformer Models}},
  author = {Aabha Pingle, Aditya Vyawahare, Isha Joshi, Rahul Tangsali and Raviraj Joshi},
  booktitle = {Proceedings of the 37th Pacific Asia Conference on Language, Information and Computation},
  year = {2023},
  url = {https://aclanthology.org/2023.paclic-1.28/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/pingle-2023-l3cube-mahasent-md-multi-domain/