Bridging Linguistic Complexity: Sentiment Analysis of Tamil Code-Mixed Text Using Meta-Model
Paper · 2025 · Anusha M D Gowda, Deepthi Vikram and Parameshwar R Hegde
Summary
A political comment can express a clear attitude even when its author switches languages or relies on sarcasm. A classifier has to recover that attitude from the words the writer chose and decide which label the task calls for. Gowda and colleagues study this problem using Tamil code-mixed comments from X, formerly Twitter. Their benchmark distinguishes categories such as Opinionated, Sarcastic and Substantiated alongside Positive, Negative and Neutral. The task is a form of sentiment analysis.
The authors compare ways of reading a comment and ways of combining the resulting predictions. They prepare the text as sequences of word indices, use pretrained Tamil FastText vectors to represent words and train a standalone Long Short-Term Memory network alongside recurrent and convolutional hybrids. They then use the predictions from these systems as inputs to a separate classifier. This procedure, called stacking, lets the final classifier learn how to use the outputs of the underlying systems. The paper compares logistic regression, a decision tree and a random forest for that role.
The reported development results favor the random forest stack. It achieved accuracy of 0.99 on development data, while the LSTM+GRU and CNN+GRU hybrids achieved 0.31 and 0.28, respectively. The hybrid results also reveal differences that overall accuracy conceals. LSTM+GRU recovered more of the Neutral examples, while CNN+GRU retrieved more of the Sarcastic examples. The class-level results show how often those predictions were right as well as how frequently the systems found comments assigned to each category.
The strongest development result carried little assurance about the final evaluation. The random forest stack achieved accuracy of 0.1333 on the test set. The authors interpret the fall as evidence of overfitting and point to the uneven distribution of labels. The paper documents a large gap between development and test performance. Its results establish the random forest’s advantage in the reported development comparison, while the test score leaves the generalization of that advantage in doubt.
Deep dive: Bridging Linguistic Complexity: Sentiment Analysis of Tamil Code-Mixed Text Using Meta-Model
Gowda and colleagues compare recurrent classifiers and stacked predictions for sentiment in mixed-language Tamil political posts. · about 32 minutes to read
The problem and its context
What the classifier must decide
The paper starts from the use of social media as a source of opinions. People write about everyday activities, react to services and products, and express expectations about public events. The same stream of comments can therefore contain statements about what happened, evaluations of it and predictions about what might follow. Sentiment analysis tries to identify an attitude expressed in that material. The authors discuss this more general motivation before concentrating on comments about Tamil politics.
The introduction treats Twitter as a particularly interesting setting for the task. It describes a medium where people can follow accounts without a reciprocal arrangement, where messages have historically been short and where hashtags help readers gather posts about a common subject. The benefit for a researcher lies in the volume and topical organization of the material. At the level of an individual comment, brevity also means that the attitude can depend on a small amount of wording. A system that classifies the comment has to work with the evidence its input preserves.
Code mixing adds a question about how words are represented. The paper uses the term for text in which languages are mixed within the material being classified. A classifier that relies on a vocabulary and a set of pretrained word representations has to find useful entries for the forms that people actually write. A comment can contain several useful cues even if only some of its words have usable pretrained representations. The authors’ method deals with that uncertainty at the input stage and then asks which sequence architecture can make better use of the resulting features.
The benchmark also makes the classification decision broader than a simple choice of favorable or unfavorable attitude. Positive and Negative are categories, but the system can also answer Opinionated, Sarcastic, Neutral, Substantiated or None of the Above. Some names refer to the direction of an attitude. Others refer to the way a comment expresses a position or to its relation to the available categories. The task requires a single label for a comment, so the challenge includes learning to reproduce distinctions made by the benchmark’s annotations. Linguistic annotation
That matters when interpreting a correct prediction. A system receives credit when it selects the recorded class. It is being evaluated on agreement with the benchmark’s categories at the level of individual comments. The authors’ experiment consequently addresses a particular kind of text classification. The general motivation concerns public attitudes, but the measured outcome is the fraction of examples classified according to the task’s labeling scheme, along with class-by-class measures of agreement.
The paper raises uneven label frequencies as another part of the problem. A supervised classifier has more opportunities to learn from examples of a common class. A less frequent class can contribute a smaller share of the training decisions even when it is an important part of the label inventory. The same unevenness affects how a result looks after evaluation. A score over all comments gives a common class more influence through the number of examples it contributes. A class-level analysis can expose poor recovery of a category that made little difference to aggregate accuracy.
What earlier systems used as evidence
In the paper’s historical account, conventional sentiment classifiers often began by counting words or short sequences of words. A bag-of-words representation records which words occur and how often, setting aside where those words occur in the sequence. An n-gram retains a short sequence as a feature. TF-IDF weights terms using their frequency in an item and their prevalence across the collection. The paper discusses these representations in connection with systems such as Naive Bayes, support vector machines and random forests.
The authors describe those methods as facing difficulties with complex meaning and large collections. The choice of input representation is central to that account. A classifier operating on word counts receives direct information about which terms are present. A short sequence feature gives it some local order. A recurrent network can carry information forward while processing the sequence, so the representation of a word can be informed by earlier words. The value of that ability depends on what the network learns from its training examples.
The literature review also discusses earlier efforts to supply a richer representation before classification. It describes work on airline sentiment that used document embeddings with a range of conventional classifiers. A document embedding is a numerical representation of a whole text, as opposed to a separate vector for each word. The paper presents this as an example of how feature construction and the final decision can be assigned to distinct stages. Its review also mentions airline sentiment work with word vectors and recurrent networks, where the distinctions were between Positive, Neutral and Negative.
Those earlier applications give context for the Tamil experiment because they share the basic idea of classifying attitudes in short social posts. Their domains, representations and category schemes vary. The studies summarized in the review therefore illustrate design choices available to the authors. The Tamil political benchmark supplies the setting in which the new systems are actually compared.
What the hybrids and the stack add
One line of earlier work combines components that process language in different ways. As the paper describes it, Tan and colleagues combined RoBERTa’s pretrained text encoding with an LSTM, a recurrent architecture intended to retain information across a sequence. They also used GloVe representations in a data augmentation procedure that increased the presence of underrepresented classes. That example joins an architectural change with a change in the material used for training. Those decisions address different points in the pipeline. An encoder changes the features available to the classifier, while augmentation changes which examples the classifier encounters.
The review gives another example in Sherin and colleagues’ work, which combined a bidirectional LSTM and a GRU with a fuzzy emotion extractor and an optimization method. The authors discuss this as part of a wider effort to combine sequence processing with additional mechanisms for identifying sentiment. They also report concerns from that line of work about the range of emotions covered and the difficulty of scaling the approach. Taken together, these accounts explain why the authors explore hybrids and why the computational demands of a hybrid matter to their interpretation.
The present study uses two meanings of combination. A hybrid joins neural components within a single classifier. Features pass from one component to another on the way to a sentiment prediction. Stacking joins systems after each has produced a prediction. The stack can then learn regularities in their outputs, including circumstances in which the evidence they supply is complementary. The paper treats that final stage as another supervised classification problem, with predictions serving as features.
These choices give the study a more specific question than whether an elaborate architecture can classify Tamil comments. It asks how much performance can be obtained from sequential processing, from combining local and sequential processing, and from learning a decision over their outputs. The reviewed work supplies reasons for trying all three. The answer still depends on the distribution of labels and on how the development and test evaluations are conducted.
The method, step by step
The pipeline begins with a comment and its assigned category. It cleans the comment, turns the remaining words into numerical inputs and sends those inputs to the neural classifiers. Each classifier produces its own sentiment output. The stacking stage takes those outputs together and learns to predict the recorded category from them. During training, the labels supply the target for both kinds of classifier. During prediction, the stack works with outputs computed from the new comment.
From a Tamil comment to a stacked prediction
The steps in order.
Cleaning the comment and encoding the target
User mentions, Tamil stopwords, punctuation marks, and numeric values are all removed by the authors. A user mention identifies or addresses an account. A stopword is a word included on a list of terms the preprocessing procedure discards. The intention is to remove material the authors consider unnecessary for classification and reduce the variety of forms passed to later stages. The paper describes the preprocessing as a common stage before the neural classifiers produce their predictions.
Every removal is also an information decision. Once punctuation is deleted, the classifier has access to the remaining words and their order, with punctuation absent from that sequence. When a stopword is removed, words that were separated by it can become adjacent in the input. This matters especially for the convolutional classifier, which looks at nearby positions. The paper evaluates systems operating on the cleaned representation, so their reported behavior includes any consequences of the cleaning choices.
The next step breaks the remaining text into words. This is tokenization, where a token is a unit the procedure passes on for numerical encoding. Here, the authors describe those units as words. The Keras tokenizer maps the words to numerical indices. An index identifies a vocabulary entry. The index itself has no intended measurement of sentiment or meaning. It provides an address through which the network can obtain the word’s feature vector.
The same preparation stage encodes category labels as one-hot vectors. Each category has a position in the vector. The position for the assigned category is active and the other positions are inactive. That representation gives a learning procedure an explicit target for a comment. It can produce a score for each position and compare those scores with the position that the training label activates.
The preprocessing description illustrates the target with Positive, Negative and Neutral. The architecture and results specify the wider experiment more fully. The listed output layers with 7 units correspond to the benchmark’s 7 classes, and the classification report includes the other labels as well. The distinction matters because the kinds of errors a system can make depend on the alternatives available at its output. A prediction of Opinionated for a comment labeled Negative is an error under the same decision rule as a prediction of Positive for that comment.
The authors pad the indexed sequences to a length of 100 tokens. Padding gives the network inputs of a uniform size by filling otherwise unused positions. This is a computational property of the input. The length specifies the array the network receives, while the comments themselves can contain different amounts of text. The paper gives the target length and leaves details such as the placement of padding and the handling of longer comments unspecified. Those details are separate from the architectural question of how the networks process the sequence they receive.
Looking up the word vectors
The word index connects each token to the next stage, an embedding matrix. The authors build this matrix with pretrained Tamil FastText vectors. In an embedding matrix, a row contains the numerical features associated with a word index. Looking up the sequence of indices yields a sequence of vectors in the same order. The representation preserves the identity associated with each index through its corresponding row and allows later layers to operate on numerical features. Word embeddings
Pretraining gives the system word representations that were obtained before training on the political sentiment labels. The word lookup and the sentiment decision perform different jobs. The lookup supplies a starting description of a word, and the recurrent or convolutional layers learn to use the resulting sequence for the benchmark’s categories. Receiving a pretrained vector therefore does not assign sentiment to the word or to its comment. That decision is learned from the labeled task data.
The paper assigns zero vectors to words missing from the pretrained embeddings. For such a word, the initial row contains zeros across the feature dimensions. Several words can consequently begin with the same vector when their embeddings are unavailable. Any distinctions available to the network then depend on factors such as their surroundings and whether the embeddings can change during training. The paper does not specify whether the embedding weights are frozen, so the zero-vector rule establishes the initialization without settling how those rows behave later.
This choice also gives a concrete meaning to vocabulary coverage. A token recognized by the Keras tokenizer can still lack a matching pretrained vector. The tokenizer and the embedding lookup are different operations, and success at the first does not establish success at the second. In code-mixed comments, the paper’s choice of Tamil embeddings makes that distinction particularly relevant. The experiment provides the handling rule for missing vectors, while the results do not give the fraction of tokens to which the rule applied.
Reading the sequence with LSTM
One of the underlying classifiers uses Long Short-Term Memory, abbreviated LSTM. It is a type of recurrent neural network. A recurrent layer processes inputs in sequence and carries a state from one position to the next. That state gives an earlier input a route to affect how later inputs are represented. An LSTM uses gates to regulate what incoming information changes the state and what stored information is retained or exposed.
For the Tamil classifier, the paper places a pretrained embedding layer before an LSTM layer with 128 units. The units are components of the recurrent layer’s internal representation. They describe its capacity to construct features from the sequence and have a different role from the output units assigned to categories. Processing the word vectors in order gives the recurrent layer a way to use information beyond a single word as it builds a representation for classification.
The authors also describe dropout and a dense layer with 64 units. Dropout is a training regularizer that temporarily suppresses some activations. It is intended to reduce reliance on particular internal features. A dense layer combines the features it receives through learned connections. Here the dense layer uses a rectified linear activation, or ReLU, which retains positive activations and sets negative ones to zero.
The final output has 7 units with softmax activation. Softmax converts the underlying scores into a set of non-negative values that sum to a whole, allowing them to be read as a distribution over the output classes. Selecting the class with the greatest value yields a label for the comment. Whether those values turn out to be reliable estimates of confidence is a separate empirical question. In this study the reported evaluation centers on the resulting classifications.
The standalone LSTM also supplies one of the inputs to the stack. This is its clearest documented role in the final experiment. The paper specifies how it is built and identifies it among the sources of predictions, while the detailed performance table focuses on the two hybrids and the random forest stack. Its inclusion in the design widens the evidence available to the final classifier beyond the outputs of the hybrid architectures.
Combining two recurrent layers
The LSTM+GRU hybrid sends the embedded sequence through an LSTM and then a Gated Recurrent Unit, or GRU. A GRU is another recurrent architecture. Like an LSTM, it carries information through successive positions and uses gates to regulate updates. The authors describe the GRU as having a simpler structure and fewer parameters. That description concerns the recurrent unit. Adding a GRU layer to the LSTM creates a deeper sequence-processing route for the hybrid as a whole.
The LSTM has 128 units and the GRU has 64 units. The order is part of the design. The GRU works on features produced by the LSTM, so the second recurrent layer can process a sequence that has already been transformed from the original embedding representation. Both stages can use order, but they do so at different levels of representation. That is the particular sense in which the architecture combines two approaches to sequence processing.
The hybrid applies dropout at a rate of 0.2 and uses a dense layer with 64 units and ReLU. It ends with a softmax output for predicting the category. Its input still comes from the pretrained embedding layer, so the first recurrent layer receives word vectors built from the same preprocessing choices discussed above. The paper’s rationale is that the two recurrent components can capture different aspects of the ordered input. The reported evaluation measures the resulting classifier as a whole.
The GRU layer is an architectural addition with an identifiable function, but that function is distinct from an observed performance benefit. A stacked recurrent representation can in principle retain information useful to the classification decision. The experiment supplies evidence about how well a classifier built that way performed on particular splits and classes. Identifying a benefit from the extra recurrent layer itself would require a comparison that isolates that change.
Adding a local feature detector
The CNN+GRU hybrid uses a convolutional neural network, abbreviated CNN, to produce local features and a GRU to process ordered information. In text, a convolution can examine short spans of adjacent positions. It applies the same learned filter across the sequence, so a useful configuration of nearby features can be detected wherever it occurs. The paper’s reference to local or spatial features has this meaning in a text sequence. The positions in question are positions in the input, with neighboring positions providing a context for a filter.
The paper specifies a one-dimensional convolution with 128 filters and kernel size 5. A filter is a learned detector that produces its own pattern of responses along the sequence. The kernel size gives the width of input over which a response is computed. Since preprocessing has already removed some items, that width applies to positions in the processed representation. The convolution operates along the sequence dimension, which is the reason for calling it one-dimensional.
The description also names an embedding layer and max pooling among the front-end components. Max pooling retains the strongest response within a region, making a local signal available in a more compact representation. The paper identifies the components and their roles more clearly than it specifies their full ordering and the pooling settings. Its architectural account presents a local feature extraction stage and a recurrent stage that uses the resulting sequence.
The GRU in this hybrid has 128 units. Dropout is used for regularization, and a dense softmax output has 7 units. The paper gives no dropout rate for this hybrid in its architectural description. The GRU’s width also differs from the GRU in LSTM+GRU. Accordingly, the two hybrids vary in both the type of feature extraction before the GRU and the size of the recurrent layer that follows. That matters when comparing their scores. Each score belongs to the complete architecture as evaluated.
Learning from the predictions
Once the neural classifiers generate outputs, the stacking stage puts those outputs together for each comment. A feature vector is an ordered collection of the numerical inputs supplied to a classifier for a single example. Here the features are derived from predictions. In the paper’s diagram, each underlying classifier has its own prediction, and those predictions form a new instance for the higher-level decision. The same comment underlies each component of that instance.
This assembly has an important alignment requirement. All entries in the stacked vector must correspond to the same comment. During training, they must also be paired with the target label for that comment. The final classifier can then learn how the joint prediction pattern relates to the task’s categories. For example, a difference between two upstream outputs can become informative if the training data associate that pattern with a particular label. The paper describes the construction in terms of predictions and leaves open whether each classifier contributes a chosen label or a full set of class scores.
Logistic regression is one of the ways the authors make the final decision. In this application, it learns a linear relationship between the stacked features and the class scores. The training labels determine how to weight the features for classification. A decision tree uses a different approach. It learns a succession of tests on the input features, leading to a prediction based on the path taken through the tree. Conditions on multiple upstream outputs can therefore shape its decision.
The random forest combines multiple decision trees. Each tree makes a decision using the stacked features, and the forest aggregates decisions from across the trees. The authors compare these alternatives with predictions from the same named sources, namely the standalone LSTM, LSTM+GRU and CNN+GRU. The comparison concerns how the final rule uses the evidence already produced by the neural classifiers.
There are two separate fits in this procedure. First, the neural classifiers learn to predict the sentiment labels from the text representations. Then the stacking classifier learns to predict those labels from the neural outputs. For the second stage, it matters whether the upstream predictions were generated on examples used to fit the corresponding neural classifier or on examples held apart from that fit. The paper states that it trained the final classifiers on the stacked predictions. It does not specify a fold-by-fold procedure for generating those predictions or identify all the data boundaries between the two fits. The implementation is reported as available on GitHub.
Experiments and results
The data and the comparison
The authors use the shared-task collection of political comments in Tamil from X. The collection is described as containing 4,352 training samples and 544 test samples. The paper’s label-distribution table provides counts by class for the training and test partitions. A separate development evaluation plays an important role in the results, because the authors use it to identify the strongest submissions. The reported dataset description does not give a separate development sample count or a development distribution by label.
The training counts in the distribution table illustrate the unevenness of the task. Opinionated is listed with 1,361 training examples and Sarcastic with 790. Neutral is listed with 637 and Positive with 575. The authors list 412 examples for Substantiated, 406 for Negative and 17 for None of the Above. These are reported training counts for the named classes and convey the relative availability of examples across the categories.
The test table gives 153 examples for Opinionated and 115 for Sarcastic. It lists 84 for Neutral and 69 for Positive. Substantiated has 52 and Negative has 51. None of the Above has 20. That last category has a larger listed count in the test partition than in the training partition. Across both partitions, the distribution shown in the table is strongly uneven, with Opinionated having the most listed examples.
The neural alternatives provide the underlying comparison. The standalone LSTM supplies a recurrent architecture without the GRU or convolution used in the hybrids. The results table gives detailed figures for LSTM+GRU and CNN+GRU. The paper also describes trials with all of the stacking classifiers, but it reports the detailed metrics of the selected random forest and does not give a corresponding set of scores for logistic regression and the decision tree. The paper’s claim that the forest did best among the final classifiers is therefore a reported selection outcome, with the numerical comparison concentrated on the selected system and the two hybrids.
The authors describe the random forest and the two hybrids as their strongest development performers and say they submitted these systems to the competition. That is the context for the hybrid accuracies of 0.31 and 0.28 in the results table. The prose specifically gives the random forest’s test accuracy. A complete set of corresponding test accuracies across all alternatives is absent, so the available results support a development ranking of the reported systems and a separate test outcome for the forest.
How to read the measures
Accuracy is the fraction of all evaluated comments assigned their recorded class. It is useful for summarizing total agreement with the labels. In a dataset with uneven class frequencies, its contribution from a class depends on how many examples of that class are present. Good predictions on a frequent category can therefore contribute substantially to accuracy, even when the classifier recovers few examples from another category.
Precision and recall answer different questions about a particular class. Precision asks how often comments predicted as that class actually carry the class label. Recall asks how frequently comments carrying the label are recovered by the classifier. A system can have high precision and low recall if it issues a class prediction selectively and misses many of the true examples. It can also achieve higher recall while accepting more erroneous predictions under the same label. These measures describe the combined outcome of a system’s predictions and the benchmark annotations.
F1 combines precision and recall using their harmonic mean, which gives weight to the lower of the two values. A class with weak recall receives a low F1 even when its precision is stronger. The paper reports both macro averages and weighted averages. A macro average gives each class the same influence. A weighted average gives greater influence to classes with more true examples. For class-level F1, those averages are calculated over the individual class F1 scores.
The paper’s results table distinguishes the overall accuracy row from its macro-average rows. The prose loosely describes the random forest’s development figure as macro-average accuracy. In the table, the development accuracy is 0.99 and the macro-average F1 is also 0.99. The values happen to agree at the reported precision. The labels on the rows still matter, because overall accuracy and the equally weighted average of class F1 have different meanings.
The development results
The random forest stack achieved development accuracy of 0.99. In the same reported comparison, LSTM+GRU achieved 0.31 and CNN+GRU achieved 0.28. The forest therefore leads the development results by a wide margin, and the recurrent hybrid has the higher accuracy of the two neural architectures for which the paper gives detailed scores.
Accuracy of the reported systems on Tamil political sentiment development data
The random forest stack leads the development comparison, followed by the recurrent hybrid.
The numbers
| System or setting | accuracy |
|---|---|
| CNN+GRU | 0.28 |
| LSTM+GRU | 0.31 |
| Random forest stack (this paper) | 0.99 |
The forest’s class-level development report is strong across the label set. For Neutral, precision, recall and F1 are each 1.00. Opinionated has precision of 1.00, recall of 0.98 and F1 of 0.99. Sarcastic also has precision of 1.00, with recall of 0.96 and F1 of 0.98. These scores describe agreement on development examples, where predictions for those classes were generally correct and most of the labeled examples were recovered.
For Positive, the random forest’s development precision, recall and F1 are each 0.99. Substantiated has precision of 0.99 and recall of 1.00, with F1 of 0.99. Negative has precision of 0.97 and recall of 1.00, with F1 of 0.98. None of the Above has precision of 1.00 and recall of 0.98, with F1 of 0.99. The macro-average and weighted-average development F1 for the stack are both 0.99.
The LSTM+GRU class results are much more uneven. On the development report, Neutral has precision of 0.47, recall of 0.80 and F1 of 0.59. Positive has precision of 0.32, recall of 0.59 and F1 of 0.42. For Substantiated, precision is 0.26, recall is 0.33 and F1 is 0.29. Negative has precision of 0.31, recall of 0.30 and F1 of 0.30. The reported macro F1 for the hybrid on development data is 0.24, and its weighted F1 is 0.25.
For Sarcastic, LSTM+GRU records development precision of 0.14, recall of 0.06 and F1 of 0.08. The development precision, recall and F1 reported for Opinionated are all 0.00. The report also gives 0.00 for all three measures on None of the Above. Those rows show no correctly recovered examples at the precision of the table. They do not establish whether the classifier avoided those outputs entirely or used them unsuccessfully. A count of predictions by class would resolve that distinction.
CNN+GRU has a different distribution of strengths. Its development precision for Neutral is 0.80 and its recall is 0.43, giving F1 of 0.56. For Positive, precision is 0.61, recall is 0.30 and F1 is 0.40. On both categories, the CNN+GRU predictions have higher precision and lower recall than the LSTM+GRU predictions. The recurrent hybrid’s higher F1 on these categories reflects the balance between those measures.
The CNN+GRU development report gives 0.11 precision, 0.21 recall and 0.14 F1 for Sarcastic. Opinionated has 0.02 precision, 0.12 recall and 0.03 F1. Substantiated has 0.14 precision, 0.19 recall and 0.16 F1, while Negative has 0.19 precision, 0.24 recall and 0.21 F1. For None of the Above, the report gives 0.04 precision, 0.50 recall and 0.07 F1. The last row shows how recovering a share of true examples can coexist with frequent false positives among the comments assigned to that class.
CNN+GRU has a development macro F1 of 0.23 and weighted F1 of 0.33. LSTM+GRU comes ahead on accuracy and macro F1, while CNN+GRU comes ahead on weighted F1. The decision about which hybrid did better therefore depends on the measure. Accuracy counts all correct labels, whereas weighted F1 summarizes class-level balances of precision and recall with greater weight on classes with more examples.
Macro F1 for the two hybrids on Tamil political sentiment development data
The recurrent hybrid has the higher equally weighted average of class F1 scores.
The numbers
| System or setting | macro F1 |
|---|---|
| CNN+GRU | 0.23 |
| LSTM+GRU (this paper) | 0.24 |
The test result
The random forest’s accuracy on the test set is 0.1333. That score is the paper’s main evidence about how the selected stack performed on held-out comments. The development accuracy of 0.99 describes the setting in which the method appeared strongest. The test accuracy describes its performance on the final partition. Both are relevant to the evaluation because the paper’s practical aim is to classify comments beyond the development examples.
The paper associates the decline with overfitting. In this context, a classifier overfits when it learns regularities that help on the data used to build or select it and yield substantially weaker performance on held-out data. The reported gap is consistent with that explanation. Diagnosing its source would require information about the way upstream predictions were generated, the examples used in the second-stage fit and the distribution and types of errors on test.
The test score also changes what the numerical comparison can establish. The results give a development advantage for the random forest stack. To show an advantage over either hybrid on test, the comparison would need the hybrid’s score on that same test partition under the same metric. The paper’s detailed hybrid results and its explicit random forest test result answer different parts of the evaluation question. The test result shows the selected stack’s weak generalization in this experiment.
What the ablations show
The paper reports no component-removal ablation. Its analyses compare complete architectures and examine their class-level performance. That distinction matters for a method with several linked choices. The results combine the effects of the representation, the network that processes it, the way predictions are made and, in the stacked system, the rule that combines those predictions. An ablation would change a specific part of that setup while holding the others fixed as far as possible.
Where the hybrids differ
The closest architectural comparison in the detailed results is between LSTM+GRU and CNN+GRU. Both have a recurrent component based on a GRU, yet they deliver different inputs to that component and use different GRU widths. The LSTM+GRU architecture uses an upstream LSTM with 128 units and a GRU with 64 units. The CNN+GRU architecture includes convolution and pooling and uses a GRU with 128 units. The comparison therefore tells how these two implementations perform as systems. Isolating the effect of local convolutional features would require matching the rest of their setup more closely.
Their results show differences both in the classes they recover and in the precision of those recoveries. The development examples labeled Neutral are particularly revealing. LSTM+GRU has recall of 0.80 and precision of 0.47 for that class. CNN+GRU has recall of 0.43 and precision of 0.80. For Positive, the tendency is similar. LSTM+GRU recovers a larger fraction of the labeled examples, while a larger fraction of CNN+GRU’s Positive predictions are correct.
For Sarcastic, CNN+GRU has the higher development recall and F1. Its precision on the same class is lower than LSTM+GRU’s. The table therefore supports a claim about recovery of labeled examples, with a tradeoff in the reliability of a Sarcastic prediction. It gives no direct account of which features of sarcasm the convolution or the recurrent layers detected. That would require examining the actual cases along with the predictions.
The weak results on Opinionated and None of the Above show another difference. LSTM+GRU reports zeros for precision and recall for both classes. CNN+GRU has positive recall for both, along with low precision. That means the second hybrid correctly classified some examples in categories where the first shows no successful recovery in the reported metrics. Its None of the Above recall of 0.50 sits alongside precision of 0.04. As a result, the higher recall for that class comes with substantial error among comments assigned the label.
These differences are compatible with the rationale for stacking. Distinct classifiers can provide different evidence because they make different errors in aggregate. The class metrics leave an important step unresolved, however. They do not show which individual examples each classifier gets right or whether correct predictions overlap. To demonstrate complementarity at the example level, the analysis would need the joint pattern of agreement and disagreement on the same comments.
The standalone LSTM gives the experimental design another point of reference. A directly comparable numerical result would help assess the contribution of adding a GRU to a recurrent network. The paper provides the standalone architecture and uses its predictions in the stack, while the detailed table gives the two hybrids. The quantitative comparison therefore cannot attribute the recurrent hybrid’s development performance to adding the GRU rather than to other details of the complete system.
What the stacking comparison isolates
At the level of the proposed design, the stacking comparison varies the final classifier while keeping the named sources of input predictions the same. Logistic regression combines the prediction features through learned linear scores. A decision tree can condition decisions on sequences of feature tests. A random forest aggregates decisions across trees. This is the part of the experiment that most directly addresses how the same kinds of input predictions should be combined.
The authors say the random forest gave the best result among the stacking alternatives. The detailed development report then shows very high precision and recall for nearly every class under that selection. Numerical scores for the decision tree and logistic regression would be needed to assess the size of the forest’s advantage over those alternatives, whether the advantage held across labels, and how stable the selection might be. The reported finding is that the forest was the developmental choice.
The comparison between the hybrids and the random forest also changes the information available to the final decision. A hybrid predicts with its own representation of the text. The stack sees predictions from all the underlying systems, including the standalone LSTM. Because the stack receives a bundle of outputs, the development results leave open which upstream classifier supplied the most useful information. No run drops an individual prediction source or reports a forest trained from a restricted subset of the sources.
The authors’ broader analysis emphasizes class imbalance and overfitting. The distribution table demonstrates that the available categories occur at different frequencies, while the development and test results document a gap for the selected stack. Showing whether imbalance caused that particular gap would require a controlled change in how the classes are represented during training or evaluation. The paper proposes methods for addressing imbalance in future work. Its observed class differences and split differences describe the problem those methods would need to address.
Limitations
The limits the authors identify
The authors identify overfitting as a central limitation. Their development procedure found a random forest stack with accuracy of 0.99, but the final test accuracy was 0.1333. They connect the poor generalization to the uneven label distribution and argue that the classifiers can learn patterns biased towards common classes. The class distribution supports concern about unequal opportunities to learn each category. The experimental design does not separately estimate the effect of class imbalance on the test result.
The authors also identify computational demands. The pipeline fits several neural classifiers, obtains their predictions and fits a final classifier on top. The hybrids themselves combine layers that carry out different processing operations. The paper describes this as more complicated to train and run. It provides architectural settings but gives no timing, resource measurements or direct comparison of computational cost across the systems. The cost limitation is therefore qualitative.
Another stated limit is the omission of transformer and attention architectures from the experiment. The authors suggest investigating BERT as a possible alternative. They also propose changes to regularization and validation, including augmentation and cross-validation. Cross-validation rotates the examples used for fitting and evaluation across partitions. In this setting it could provide a broader view of how sensitive a reported result is to the choice of development examples.
The conclusion also mentions SMOTE and focal loss as options for addressing imbalance. SMOTE is an oversampling approach that produces synthetic examples from existing minority-class examples in a feature space. Focal loss changes the training objective so that easily classified examples exert less influence. The paper proposes these as avenues to investigate. It reports no result for either intervention, and dropout is already present in the specified neural architectures. The suggestions about regularization concern improving how the systems generalize beyond that implementation.
What the evaluation leaves unresolved
The most important uncertainty about the setup is the boundary between training the neural classifiers, fitting the stack and measuring development performance. The paper explains that predictions from the neural classifiers serve as features for the second stage. It describes the development set as the basis for selecting submissions. A full account would also specify which comments were used to train each underlying classifier, which predictions were used to train the stack and which stacked examples were reserved for scoring it.
One distinction is between predictions on comments a neural classifier saw during its own training and predictions on comments held out from that fit. If the final classifier trains on the former, it may encounter patterns of confidence or agreement that differ from the ones available at test time. A related question is whether the reported development evaluation uses examples separate from those used to fit the stack. Reusing examples in that way would make the development score answer a different question from a held-out evaluation. The paper’s description leaves the exact procedure unresolved, so neither form of reuse can be inferred from the score alone.
The data description makes this uncertainty consequential. It names training and test sizes and gives counts for each listed class in those partitions. There is no corresponding description of how the development examples were chosen or distributed across classes. This limits comparisons across splits. A reader can see which development classes had higher or lower precision and recall, but cannot tell from the table how often each class occurred there or how many individual decisions produced each rounded metric.
The test reporting adds a further limit. Overall accuracy gives the proportion of successful test predictions, with each example contributing equally. It does not say which class the forest predicted most often, which label it recovered best or where it frequently confused one category with another. A test confusion matrix or test precision and recall by class would help distinguish failure concentrated in a small subset of categories from broad failure. The reported class-level success on development cannot supply that information for the test set.
The absence of a complete test comparison also limits what the paper can say about stacking as an approach. The stack is the strongest option on the reported development metrics. Its test accuracy indicates poor generalization of the selected system. The relative test effectiveness of the hybrids and of the other stacking alternatives remains open. This distinction is particularly important because a method for combining predictions can be useful only to the extent that its learned relationships among the predictions persist on new examples.
The comparison uses absolute scores for the neural and stacked classifiers, without a reported reference that always predicts a common class or a simpler feature-based classifier fitted on the same split. Such a comparison would put the accuracy values in the context of the label distribution and separate the effects of elaborate feature extraction from the ability to exploit category frequency. The training and test counts are available as descriptive data, but the paper’s evaluation does not provide those reference scores.
What the representation and labels leave unresolved
The preprocessing procedure makes the experiment more specific than its broad motivation. It evaluates words that remain after deleting punctuation, numerical values, Tamil stopwords and user mentions. The paper does not test an otherwise matched system that keeps any of these elements. Consequently, the results cannot establish whether the deletions improved the sentiment signal, discarded useful evidence or had different effects across classes. Sarcastic performance is a relevant example because the evaluation establishes how often the label was recovered and leaves the role of individual textual cues unmeasured.
The word representation creates another uncertainty. Missing entries receive zero vectors, yet the paper gives no coverage breakdown for token forms in the comments. A coverage analysis would show how frequently a comment’s feature sequence depends on missing entries and whether the issue is concentrated in particular kinds of writing. Without that information, the results evaluate one concrete treatment of code-mixed text and leave the consequences of its vocabulary coverage unknown.
The task labels also deserve care when interpreting broad claims about linguistic complexity. The paper names the categories, gives their counts and uses them as classification targets. It does not provide enough information about the annotation rules to reconstruct how ambiguous comments were assigned. For instance, a reader knows that Sarcastic and Negative are separate outputs, but cannot determine from the results what rule annotators followed when both characteristics were present in a comment. Predictions are evaluated against the assigned label, so ambiguity in a label boundary can matter even when a classifier recognizes a genuine attitude.
The scope of the dataset places a final boundary on the finding. The authors examine Tamil political comments on X, using a particular label scheme and a particular preparation pipeline. The scores describe those conditions. The experiment supplies no direct evidence about comments from other domains, about a different set of sentiment labels or about the performance of the same pipeline on other language mixtures. Within the benchmark, the most direct result is the divergence between the development and test accuracy of the selected random forest.
What came after
The Overview of the Shared Task on Sentiment Analysis in Tamil and Tulu cites Gowda and colleagues’ study. The overview’s stated subject is a shared evaluation for sentiment analysis in Tamil and Tulu. Gowda and colleagues’ experiment concerns the narrower setting of political comments in Tamil. The citation connects that experiment to a discussion of sentiment evaluation with a wider language scope.
The connection is documented at the level of citation. It remains unclear whether the overview used the earlier work to motivate the task, to discuss related approaches or to inform a specific evaluation decision. In particular, the citation does not establish that the shared task adopted the random forest stack, reused the political comment data or replicated the development and test comparison. The documented follow-on is a reference to the Tamil study in an overview of sentiment evaluation covering Tamil and Tulu.
Cite
Cite as Anusha M D Gowda, Deepthi Vikram and Parameshwar R Hegde. 2025. Bridging Linguistic Complexity: Sentiment Analysis of Tamil Code-Mixed Text Using Meta-Model. Proceedings of the Fifth Workshop on Speech, Vision, and Language Technologies for Dravidian Languages.
@inproceedings{gowda2025bridging,
title = {{Bridging Linguistic Complexity: Sentiment Analysis of Tamil Code-Mixed Text Using Meta-Model}},
author = {Anusha M D Gowda, Deepthi Vikram and Parameshwar R Hegde},
booktitle = {Proceedings of the Fifth Workshop on Speech, Vision, and Language Technologies for Dravidian Languages},
year = {2025},
doi = {10.18653/v1/2025.dravidianlangtech-1.18},
url = {https://doi.org/10.18653/v1/2025.dravidianlangtech-1.18}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/gowda-2025-bridging-linguistic-complexity-sentiment-analysis/